This course will become read-only in the near future. Tell us at if that is a problem.


Scripts and sources

You have three tasks here: Download the environment tarball from the Scripts section, download all your Sources, and read through the rest of this task to see if you need anything else depending on your environment.


I've copied in some scripts from the CLFS book and the internet, and written a couple myself, which a friend of mine at has graciously hosted here:

You'll want to untar that right into your home directory, like this:

tar jxvf clfs.tar.bz2
rm -v clfs.tar.bz2


Here's all those files individually. Everything belongs under ~/clfs, so the books subdirectory is ~/clfs/books.

In the book subdirectory:

In the scripts subdirectory (the tarball above has some Easter eggs in this directory as well):

In the sources directory:

In the specs directory:


In this section, you'll grab all your source code from the internet. Think of the source code packages as the bricks you'll be snapping together to make Linux. To get all the source code packages from the CLFS book at once, we can use the downloads.txt file in the link above (which is just a bunch of links if you'd rather download things manually) from a bash shell like this:

mkdir -p ~/clfs/sources
cd ~/clfs/sources
wget -i downloads.txt
mkdir -pv ../clfs/patches
mv *.patch ../clfs/patches

If you don't have wget, you can find generic instructions that will work in any build environment for building and installing it from source in wget's page in the CBLFS book, here:



The source for the Neal Stephenson essay that contains the "Hole Hawg" excerpt can be found here:


Windows users will want to download and install these three programs right away:

  1. - you'll want to install mingw-get. I recommend installing to C:/mingw
  2. - you'll want to run the setup.exe, and install the core system. I recommend installing to C:\cygwin
  3. - I recommend installing to its default location

You'll want to keep these pages up in your browser for reference:

And in case you didn't download it yet, you'll need the source code for ncurses handy right away,

If you want to be able to read EXT-2 filesystems natively from windows, you'll also want to grab one or the other of these programs (but not both) and install it:


Once you've downloaded everything, now would be a good time to back up everything you downloaded.

Diskutera uppgift