The TAR package installs the Samba server and its associated configuration

Source: Internet
Author: User

First, the installation of Samba Server software:

    1. Download the installation package (HTTPS://DOWNLOAD.SAMBA.ORG/PUB/SAMBA/SAMBA-3.2.25.TAR.GZ) to the official website of Samba.

    2. Unzip the package using the TAR command:

      $ TAR-ZXVF samba-3.2.25.tar.gz

    3. Enter the source directory (after 3.4.x for the Source3 directory):

      $ CD Samba-3.2.25/source

    4. If you do not have a configure script in the source directory, you need to build it with the following command (requires Autogen support), and if so, you can ignore this step:

      $ sudo./autogen.sh

    5. To build binaries, such as special requirements for configuration, you can add the appropriate parameters after the command (using./configure--help to view the specific usage of the command), and the default software is installed in the /usr/lcoal/samba directory .

      $ sudo./configure

    6. Generate binary files;

      $ sudo make

      $ sudo make install

$ sudo make Installbin

Note: If you are doing an upgrade, the file name of the previous version is appended with the. Old suffix. You can perform the following command back to the previous version:

$ sudo make revert

This completes the installation of the Samba server. The following file directories are installed:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/7C/C7/wKioL1bX19PDZgPCAADkt3Z79rg888.jpg "title=" Samba_ 1.jpg "alt=" Wkiol1bx19pdzgpcaadkt3z79rg888.jpg "/>

Second, after the installation of the configuration:

1. Copy the configuration file Smb.conf.deufault to/usr/local/samba/lib and rename it to smb.conf;

$ sudo cp samba-3.2.25/examples/smb.conf.default/usr/local/samba/lib/smb.conf

2. At this point we run the server:

$ sudo/usr/local/samba/sbin/smbd-d

$ sudo/usr/local/samba/sbin/nmbd-d

We will see a prompt for the boot library error and the server will not run. This is because the tar installation did not specify the library path of the samba server that was just installed in the system's library file, and we want to add it manually (install it later in tar and remember to add the library path to the software).

3. Add a line/usr/local/samba/lib in the/etc/ld.so.conf file, and finally remember to run the Ldconfig command to update the library file, or you will not be prompted to find it.

4. Run the server now:

$ sudo/usr/local/samba/sbin/smbd-d

$ sudo/usr/local/samba/sbin/nmbd-d

The system has no error prompts.

5. Use the PS command to see if the SMBD and NMBD are present: 650) this.width=650; src= http://s4.51cto.com/wyfs02/M01/7C/CB/wKiom1bX8RWDP_ Ckaad5rynsfay347.jpg "title=" 1.jpg "alt=" Wkiom1bx8rwdp_ckaad5rynsfay347.jpg "/>

6. Use the netstat command to view the UDP137, UDP138, TCP139, TCP445 ports have been opened: 650) this.width=650; "Src=" http://s2.51cto.com /wyfs02/m00/7c/ca/wkiol1bx85esrmm_aagtcgo93a4776.jpg "title=" 5.jpg "alt=" wkiol1bx85esrmm_aagtcgo93a4776.jpg "/ >

6. Use the Pgrep command to view the process ID of the SMBD and NMBD, and possibly kill the server by using the Stop command:

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/7C/CB/wKiom1bX9RGz9KLWAAB9R-2bXBs083.jpg "title=" 6.jpg " alt= "Wkiom1bx9rgz9klwaab9r-2bxbs083.jpg"/>



This article is from the "technology Change the Future" blog, please be sure to keep this source http://zx953.blog.51cto.com/1619047/1747207

The TAR package installs the Samba server and its associated configuration

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.