User Tools

Site Tools


install_samba4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

install_samba4 [2020/04/10 17:38]
install_samba4 [2020/04/10 17:38] (current)
Line 1: Line 1:
 +** Install Samba4 **
 +
 +There are a few steps to install Samba4:
 +
 +  - Build Samba by yourself. Download the latest tarball from the official [[http://​ftp.samba.org/​pub/​samba/​stable/​|Samba Web Site]] or [[http://​softlib.uclv.edu.cu/​Samba| UCLV Repository]]
 +  - Install from your distribution package manager. In this case the latest version can be found on backports repositories (Debian)
 +  - Install from SerNet Enterprise Samba package. You need to register in [[http://​www.enterprisesamba.com/​samba/​|Sernet Enterprise Web Site]] and follow the instructions. Another way is follow the instructions in [[reposwiki#​samba4_sernet|Samba4 Sernet Repository Wiki]] to configure the repository and [[install_samba4#​install_samba4_from_sernet|install Samba4 from Sernet Repository]].
 +
 +===== Build Samba =====
 +  * Download the latest stable tarball form [[http://​ftp.samba.org/​pub/​samba/​stable/​|Official Website]] or [[http://​softlib.uclv.edu.cu/​softlib/​Software/​Samba/​| UCLV Repository]]
 +  * Unpack the tarball
 +<​code>​
 + # tar -zxvf samba-4.x.x.tar.gz
 +</​code>​
 +  * Enter to directory
 +<​code>​
 + # cd samba-4.x.x
 +</​code>​
 +  * Type the following commands
 +<​code>​
 + # ./configure --enable-debug --enable-selftest
 + # make
 +</​code>​
 +
 +The above command will setup Samba to install in "/​usr/​local/​samba"​.
 +
 +If you want to install Samba in a different directory, then you should use the - -prefix option to configure. Too the availables options in '​./​configure':​
 +<​code>​
 + # ./configure --help
 +</​code>​
 +
 +We recommend using '- -enable-debug - -enable-selftest'​ for Samba is that it will include extra debug information that will help us diagnose problems in case of failures, and will also allow you to run our selftest make test to validate that Samba can behave correctly on your platform. Both of these are however, entirely optional.
 +
 +To install Samba, run the following command in your samba directory:
 +<​code>​
 + # make install
 +</​code>​
 +
 +===== Add Samba binaries location to $PATH variable: =====
 +<​code>​
 + # nano ~/.bashrc
 +</​code>​
 +
 +At the end add:
 +<​code>​
 + ​PATH=$PATH:/​usr/​local/​samba/​bin/:/​usr/​local/​samba/​sbin/​
 +</​code>​
 +
 +Apply the changes:
 +<​code>​
 + # cd ~
 + # .  .bashrc
 +</​code>​
 +
 +===== Upgrading a source version =====
 +
 +To upgrade to the latest Samba version from a previous Samba release, you must first download the latest tarball.Then stop all samba process that are running. Once you have obtained the latest version, simply run the following commands:
 +<​code>​
 + # cd samba-4.x.x
 + # ./configure --enable-debug --enable-selftest
 + # make
 + # make install
 +</​code>​
 +
 +**//​Note://​** Please use the same '​./​configure'​ options as before to retain full functionality.
 +
 +===== Install Samba4 from SerNet =====
 +
 +To install Samba4 using SerNet packages, you must to [[reposwiki#​samba4_sernet|configure your "​sources.list"​]],​ then install Samba4:
 +
 +<​code>​
 + # apt-get install sernet-samba-ad
 +</​code>​
 +
  
install_samba4.txt ยท Last modified: 2020/04/10 17:38 (external edit)