|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||
|
Hour 3: Obtaining the Latest Source |
|||||||||||||||||
|
Now that you've determined that you need to get that latest Samba distribution, where do you go? The first place to start is to point your Web browser to http://samba.org (see Figure 3.1). This page contains links to all the Samba mirror Web sites and the FTP mirrors as well.
Figure
3.1
List of mirrors for http://samba.org.
If you are using HTTP to download the Samba distribution, first select the mirror closest to you. When you arrive at the mirror site home page, select the download link. The resulting page, which is shown in Figure 3.2, should have a link to download a file named samba-latest.tar.gz.
If you prefer to browse and see what is available, you can obtain a directory listing of files that can be downloaded (see Figure 3.3). Again you should see a file named samba-latest.tar.gz. If not, simply look for the samba-#####.tar.gz with the highest version number. The process of finding the latest distribution archive via FTP is similar to browsing the directory listing through HTTP.
Figure
3.2
Samba download page.
Figure
3.3
Folder listing of download archives from the Samba Web site.
After you have downloaded the distribution, change to a good temporary directory where you won't overwrite anything when you extract the source files. I use a directory named ~/src as a working directory for compiling source code. If I want to save anything after I'm finished, I move the files to a more permanent location. To extract the files, you need a working version of GNU gzip and tar. If the file you download is named, for example, samba-latest.tar.gz, the following command will extract the files for you:
gzip -dc samba-latest.tar.gz | tar xvf -
Although the directory tree might change from time to time, three directories are common to all versions thus far:
|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||
|
Hour 3: Obtaining the Latest Source |
|||||||||||||||||
|
© Copyright Macmillan USA. All rights reserved.