Linux From Scratch Article Index for
Linux
Website Links For
Linux
 

Information About

Linux From Scratch




Linux From Scratch ('''LFS''') is the name of a book written by Gerard Beekmans and others. In that book the reader is given instructions on how to build a Linux system from Source . The book is available freely from the Linux From Scratch website and is currently in version 6.1.1. To keep LFS small and focused, the '' Beyond Linux From Scratch '' book was created which presents instructions on how to further develop the basic Linux system that was created in LFS.

Linux From Scratch is a way to install a working Linux system by building all components of it manually. This is, by design, much more labour-intensive than installing a pre-built distribution (see Linux Distribution ). The idea is that installing the individual packages one-by-one will lead to an understanding of the internals of a working Linux system. In addition, of course, compiling all of the Software specifically for the system on which it will run tends to result in smaller and faster programs. Finally, it is easier to customize the installed packages when each is installed manually – "Your distro, your rules".


PROCEDURE

A clean GUI environment to work in. First a Toolchain must be compiled consisting of the tools used to compile LFS like Gcc , Glibc , Binutils and other necessary utilities. Then the Root Directory must be changed (using Chroot ) to the toolchain's Partition to start building the final system. One of the first packages to compile is Glibc ; after that, the toolchain's Linker must be adjusted to Link against the newly built Glibc , so that all other packages that will make up the finished system can be linked against it as well. During the Chroot phase, Bash 's hashing feature is turned off and the temporary toolchain's bin directory moved to the end of PATH. This way the newly compiled programs come first in PATH and the new system builds on its own new components.


SEE ALSO