Dancing The Samba (part 1) - Building Blocks (
Page 3 of 8 )
The
first order of business to install Samba on the Linux box you plan to use as a
server. Drop by the official Samba Web site at
http://www.samba.org/ and get yourself the
latest stable release of the software (this tutorial uses Samba
2.2.5).
Once you've downloaded the source code archive to your Linux
server (mine is named "olympus.melonfire.com"), log in as "root"
$ su -
Password: ****
and extract the source to a temporary directory.
$ cd /tmp
$ tar -xzvf /home/me/samba-2.2.5.tar-gz
Next, configure the package using the provided "configure"
script,
$ cd /tmp/samba-2.2.5
$ ./configure
and compile and install it.
$ make
$ make install
Unless you specified a different path to the "configure"
script, Samba will have been installed to the directory
"/usr/local/samba".
You can verify this by doing a quick directory scan
of that directory - here's what you should see.
$ ls -l /usr/local/samba
drwxr-xr-x 2 root root 4096 Sep 17 17:31 bin
drwxr-xr-x 3 root root 4096 Sep 17 18:43 lib
drwxr-xr-x 6 root root 4096 Sep 17 17:24 man
drwxr-xr-x 2 root root 4096 Sep 17 17:31 private
drwxr-xr-x 6 root root 4096 Sep 17 17:24 swat
drwxr-xr-x 3 root root 4096 Sep 18 12:01 var
Once you've got Samba installed, the next step is to
configure it to work for your system. Let's look at that next.