11.2. Compiling Samba from Source Code
Problem
Your Linux distribution did not compile support for all the options you need into Samba (see the previous recipe), so you need to rebuild it from scratch and ensure that it has everything you need built-in. Or, you just prefer source installations.
Solution
Follow these steps.
First, make sure you have the necessary development tools installed on your system. Debian users need:
build-essential
autoconf
autogen
libkrb5-dev
krb5-user
gnugpg
Fedora users need:
autoconf
autogen
krb5-workstation
krb5-libs
krb5-devel
gnugpg
The command yum groupinstall
'Development Tools' installs all of the basic Linux
development tools that you need for a source build on Fedora.
Obtain the Samba source code tarball from samba.org, the signature file, and the GPG key. Verify the filenames before downloading, making sure you have the latest stable versions:
$ wget http://us1.samba.org/samba/ftp/samba-3.0.25a.tar.asc
$ wget http://us1.samba.org/samba/ftp/samba-pubkey.asc
$ wget http://us1.samba.org/samba/ftp/samba-3.0.25a.tar.gzUncompress the tarball into a directory where you have write permissions, like in your home directory:
$ gunzip -d samba-3.0.25a.tar.gzImport the GPG key into your GPG keyring:
$ gpg --import samba-pubkey.asc
gpg: key F17F9772: public key "Samba Distribution Verification Key <samba-bugs@samba.
org>" imported
gpg: Total number processed: 1
gpg: imported: 1Then, verify the uncompressed tarball:
$ gpg --verify samba-3.0.25a.tar.asc gpg: Signature made Wed ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access