Compile and install samba-3.5.6.

Source: Internet
Author: User

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

?
12 MakeMake Install

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.