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
First.Transmit 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.
Second.Using 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