1. Prepare the compiling environment GCC;
2. Download sambaSource code:
Http://www.samba.org/samba/ftp/samba-latest.tar.gz
3. decompress the source code
|
Tar -Tzxf samba-latest.Tar. GZCD Samba-3.5.6 |
4. Configuration
1). Find the configure file
|
Find .-Name configureCD Sours3. |
2). Configuration
?
| 1 |
./Configure -- Prefix =/Usr/local/smaba |
5. Compile
?
6. Copy the configuration file
|
CP Examples/SMB. Conf. Default/Usr/local/samba/lib/SMB. Conf |
7. Configure the Dynamic Link Library:
|
Vim/Etc/LD. So. conf. d/Samba. Conf |
Enter/usr/local/samba/lib, and save and close.
Run ldconfig
Note:
The ldconfig command is mainly used in the default search directory (/lib and/usr/lib) and dynamic library configuration.
Find the shared dynamic link library (lib *. So *) in the directory listed in/etc/lD. So. conf *),
Create a dynamic MountProgram(LD. So) the required connection and cache file ).
8. Add and activate a user
|
/Etc/samba/smbpasswd-a Steven/Etc/samba/smbpasswd-E Steven |
9. test whether the installation is successful.
|
CD /Usr/local/samba/bin./Testparm |
If no error is returned, the installation is successful.
10. Start and execute the following commands
| |
Cd /usr/local/samba/sbin . /nmbd -D . /smbd -D service SMB start |