Refer to the installation method here, if there is no network.
Http://blog.chinaunix.net/space.php? Uid = 20715874 & Do = Blog & cuid = 733101
Usually there is a network, so there is no need to be so troublesome. Then let's start with ^_^.
--------------------------------------------------------------------
Host OS: Windows 7.
Guest OS: centos 5.7
Virtual Machine: VMWare Player 4 build.
Connection Type: Nat
--------------------------------------------------------------------
Open terminal:
# Yum install samba
# Yum install system-config-samba
# Setup disabled SELinux // This is to prevent external access to centos from being blocked by SELinux.
|-Security level enabled // modify
|-Customize-> allow inconing-> modify samba
# System-config-sabma
|-Preference-> Samba users-> Add User-> example:
|-Preference-> server settings-> basic-> Workgroup: workgroup
|-Preference-> server settings-> basic-> Security: encrypt passwards: Yes
|-Add share-> access-> only allow access to specific users: *** (username)
|-Basic:
#/Etc/init. d/SMB start samba
Now you can access it.
#/Sbin/ifconfig (to obtain the address dynamically allocated by the current virtual machine, you can set a static IP address for the virtual machine)
Take a look at Inet ADDR: 192.168.72.128
Return to winodws OS and enter
\ 192.168.72.128
OK. Successful access is as follows:
PS:
Extension 1: folder permission issues <-you can use chmod 777 *** to modify them!
Extension 2: Samba file configuration problems <-# vi/etc/samba/smb. conf
Extension 3: Add Samba to auto-start <-# vi/etc/TPD/custom. conf
I just got started with the network. I hope I can help anyone who needs it. ^_^