There are a few steps to install Samba4:
# tar -zxvf samba-4.x.x.tar.gz
# cd samba-4.x.x
# ./configure --enable-debug --enable-selftest # make
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':
# ./configure --help
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:
# make install
# nano ~/.bashrc
At the end add:
Apply the changes:
# cd ~ # . .bashrc
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:
# cd samba-4.x.x # ./configure --enable-debug --enable-selftest # make # make install
Note: Please use the same './configure' options as before to retain full functionality.
To install Samba4 using SerNet packages, you must to configure your "sources.list", then install Samba4:
# apt-get install sernet-samba-ad