星期三 六月 25, 2008

Run Windows Programs in OpenSolaris 2008.05

Authorhongbingfeng

       Emailbfhong@gmail.com


   Under Opensolaris ,we can run Linux program by many way,such as zone and so on .Actually Opensolaris can aslo run Windows Programs.


The article introduce wine and use wine to run Windows Programs in Opensolaris 2008.05.


Tools:     OpenSolaris 2008.05


               Wine 1.0-rc1

[Read More]

星期六 五月 24, 2008

Share Files btween OpenSolaris 2008.05 on VMWare and Windows

OpenSolaris2008.05 is the new edition  of the Solaris Indiana program.we can install it in disks,either we can aslo install and experience it on virtual mathine,such as Vmware,Virtual Box. The installtion process can be seen :


http://www.unix-center.net/opensolaris/getting_started.html#3_7


By practice,the article sum-up and introduce some kinds of methods which can implement file sharing between OpenSolaris 2008.05 on VMWare and windows .


Hosts   :   Windows XP


Virtual Mathine: Vmware 6.0


Guest:    OpenSolaris 2008.05



FirstTransmit files using FTP by Configuing FTP server in solaris


The process as follows:


     1.first,login as root,or use su switch to root


    2. examine ftp serve open or not


       #svcs -l network/ftp


fmri         svc:/network/ftp:default


name         FTP server


enabled      true


state        online


next_state   none


    3.If ftp serve is close,use the method open it as follow ,and examine state.


       # svcadm enable /network/ftp


    4.after turn on the ftp service,we aslo need congfigue the ftp users, which were includes /etc/ftpd/ftpusers file. The users in this file are unusable for ftp. That is,mark ‘#’is usable,or is forbid. So ,if we want to make one user usable ,we only need to mark ‘#’ in front it.We change the root is usable.If we want to add the new ftp user,we can reference solaris order how to add user. If we want to display the user which have already exist,we can add it the file ,mark # in front of the user name.


    5 obtain OpenSolaris IP,use #ifconfig –a


    6.After setting the account ,we can connect OpenSolaris in Windows by ftp.The username is ftp account and password in OpenSolaris.If you use the right root accout and password,but show is error, reference follow.


    7.if you use the right root account and password, but show the user name or password is error,maybe the reason that OpenSolaris 2008.05 is unallowed root login default. You can using common acount to login ,and then switch to root by su, the implement as follow:


   # rolemod -K type=normal root


And that you can use the root account.


 


SecondUsing smaba client to connect the share documents in Windows


Process as follow:


1.Use root logining or use su switch to root


       2.open samba client , order as follow:


       #svcadm enable svc:/network/smb/client:default


       #svcs -l  /network/smb/client check the client state


3.Suppose Windows  IP   is 192.168.1.109,sharing a  ‘Soft’ directory ,and then use follow order:


       #mount -F smbfs  //192.168.1.109/Soft /mnt


       Password:     enter your current account password in Windows


       # cd /mnt


       # ls


       And then you can see the share directory of Windows.


 


Reference:


       http://www.unix-center.net/opensolaris/getting_started.html#3_7


       http://www.itwenku.com/linux/1/53039.htm


 


You can find the article in Chinese by the link:

http://developers.sun.com.cn/blog/functionalca/entry/vmware%E4%B8%8A%E5%AE%9E%E7%8E%B0opensolaris_2008_05%E4%B8%8Ewindows%E4%B9%8B%E9%97%B4%E7%9A%84%E6%96%87%E4%BB%B6%E5%85%B1%E4%BA%AB

星期日 三月 30, 2008

Windows on Solaris10 && Repair Grub

Problem:


1.      We install Solaris b79 first and install Windows later in the lab, but the MBR was destroyed and the Grub does not work.


2.      Only one PC in the lab has CD-ROM and others does not have.


Solutions:


1.      Solution of PC with CD-ROM


1)     Prepare a Solaris X86 CD or DVD. Set up the machine boot from CD-ROM.


2)     Enter “c” into the grub in the grub form.


3)     Find the installed Solaris with following methods:


grub>find /platform/i86pc/multiboot


(hd0,1,a)--------------------output


OR:  grub>find /boot/grub/menu.lst


       (hd0,1,a)--------------------output


4)     Set the output to root device


grub>root (hd0,1,a)
Filesystem type is ufs, partition type 0xbf


5)     Set the boot and archive files and boot from grub


grub>kernel /platform/i86pc/kernel/unix
grub>module /platform/i86pc/boot_archive
grub>boot


So we can boot Solaris X86 from grub.


6)     After logining to Solaris, steup grub as root, and reboot


#cd /usr/sbin
#installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d0s0


Output:


Updating master boot sector destorys existing boot managers (if any)
Continue (y/n)? y
stage1 written to partition 1 sector 0 (abs 31455270)
stage2 written to partition 1, 233 sectors starting at 50 (abs 31455320)
stage1 written to master boot sector


#reboot


7)     Successful….


2.      Solution of PC without CD-ROM


1) Set the Solaris partition active in Windows


   Find the partition Which Solaris installed and set it active.


2    2) Reboot the computer. Because the MBR has been changed, the Windows cannot be boot. But after it we can enter the grub.


3) After entering the grub, we can adopt the solution above from the third step to the seventh step. And we can relax after installed the grub again.


See: http://developers.sun.com.cn/blog/BingfengHong/entry/solaris10_x86_windows%E5%8F%8C%E7%B3%BB%E7%BB%9Fgrub%E5%BC%95%E5%AF%BC%E4%BF%AE%E5%A4%8D%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88

About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 四月 2014
星期日星期一星期二星期三星期四星期五星期六
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
今天