Download Schroder - Linux Networking Cookbook (O

Transcript
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.gz
Uncompress the tarball into a directory where you have write permissions, like in
your home directory:
$ gunzip -d samba-3.0.25a.tar.gz
310
|
Chapter 11: Single Sign-on with Samba for Mixed Linux/Windows LANs