In order to develop PHP extensions and take into account the daily use of software on windows, we decided to set up a Samba server on the client (Linux) To synchronize the project folder...
Below is a simple configuration under X-server...
Install and configure Samba in centos and share it with Windows
Http://blog.csdn.net/qzier_go/article/details/6857519
The following is how to configure the terminal environment:
--------------------------------------------------------------------
Host OS: Windows 7.
Guest OS: centos 5.7
Virtual Machine: VMWare Player 4 build.
Connection Type: Nat
--------------------------------------------------------------------
In terminal:
# Yum install samba
# Setup disabled SELinux // This is to prevent external access to centos from being blocked by SELinux.
|-Security level enabled // modify
|-Customize-> allow inconing-> Samba // modify
Modify NetBIOS Name
# Vim/etc/samba/LmHosts
127.0.0.1 centos5.7
Configure the main Samba configuration file.
# Vim/etc/samba/smb. conf
... #============================ Global settings ============ = [Global]... workgroup = workgroup; Server String = Samba server version % vnetbios name = centos5.7hosts allow = 127. 192.168.0 .; enable local and class c cidr blocks... #============================ share definitions ======... [SRC] Comment = SRC share from centos5.7 Path =/tmp/lnpp; shared Linux directory public = Yes writeable = Yes
Now the simple configuration of smb. conf is complete. Let's continue...
# Mkdir/tmp/samba # Creating shared folders
# Chown-r nobody/tmp/lnpp # No one belongs to the folder
# Chmod 777/home/samba # Anyone can rwx
Set Logon account:
# Smbpasswd-a root # user (Root) is the original user of the system
#
Chkconfig -- level 235 SMB on# Random start setting
Start:
# Service SMB restart
Next, open the file browser in win7.In the address bar, enter "\ 192.168.0.132" (guest host address), and enter the account password to access...
Now you can access it. The first link requires multiple clicks, but try to create a new file and edit it on Linux...
PS:
Improvement notes
1. Because it is a local machine, there is almost no estimate of any permission issues. The user is root;
2. Samba File Permission mask;
3. Character settings and so on;
4. NetBIOS name;
5. SELinux port access configuration
At the same time, I accidentally found the article on X-server.ArticleI have reprinted it at linuxidc and kept the ID number, But I Have watermark it with linuxidc. I have not pasted the original chain yet. Please respect the original author as much as possible.
Install and configure Samba in centosEnjoy
Http://blog.csdn.net/qzier_go/article/details/6857519
Http://www.linuxidc.com/Linux/2012-02/53985.htm
In fact, it is still hydrological, and backup also hopes to help useful people ..
We have established an lnpp group. Welcome to join us (QQ Group No.: 213572677)
Reference:
Http://hi.baidu.com/cmtu_net/blog/item/5eb0c9fb88499d244f4aead6.html
Http://linux.vbird.org/linux_server/0370samba.php#server_user
Https://writer.zoho.com/public/6b6a49b6dcbb8205336873dd09e1b3517a451cd1e1176acb29ac6183f6c6c0976db04614eed231e5