Construction of Embedded Linux development environment (IV.)--samba Server construction
Linux systems: Ubuntu Server 12.04
The installation process is as follows:
1.
Installation
sudo apt-get install samba Samba-common
2.
Modify the configuration file
/etc/samba/smb.conf
[Samba]
Comment = Samba Server
browseable = yes
Path =/home/samba
printable = no
writable = yes
Write list = Apple
Samba configuration file Analysis
/ect/samba/smb.conf
There are several commonalities in configuration parameters.
(1) parameter configuration basically takes "parameter" = "value" way, if the parameter has more than one value, multiple parameters are separated by a space.
(2) When users and groups are used as parameters, the value is set with the @ character before the group name.
(3) by ";" Or "#" begins with a comment line.
(4) The square bracket identifier is indicated as a flag, such as [global] as the globally configured identity.
(5) The shared resource configuration takes precedence when the global configuration conflicts with a shared resource configuration.
(6) The keyword is not sensitive to case.
3. Create a samba Server root directory file
Mkdir-p Samba
Chmod-r 777 Samba
4.
Create Samba users
Useradd Apple
Smbpasswd-a Apple
5. Restart
Samba server
SUDO/ETC/INIT.D/SMBD restart
6.
firewall configuration
Firewall off: UFW disable
Open the Samba port: UFW allow 139;UFW allow 445;
7. Use ofsamba
Windows environments use:
\\192.168.6.210\samba
Enter the Samba user name and password for the setting
Linux environments use:
Mount//192.168.6.210/samba/mountpoint-o username=apple,password=apple123
Description: The Ubuntu 14.04 version of the Samba server was not available after installation, possibly because of samba compatibility issues , I have tested it.
This article from "Endless life, Struggle not only" blog, please be sure to keep this source http://9291927.blog.51cto.com/9281927/1789313
Construction of Embedded Linux development environment (IV.)--samba Server construction