Linux From Scratch
From Wikipedia, the free encyclopedia
| This article does not cite any references or sources. (November 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
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.3.
To keep LFS small and focused, the book Beyond Linux From Scratch (BLFS) was created which presents instructions on how to further develop the basic Linux system that was created in LFS. It introduces and guides the reader through additions to the system including networking, X, sound, printer and scanner support. Current Stable release of Beyond Linux From Scratch is 6.3 and was released on August 28 2007. This book follows-up on Linux From Scratch 6.2.
In addition to LFS and BLFS books Cross Linux from Scratch describes cross compiling and Hardened Linux From Scratch focuses on security enhancements like use of Stack-smashing protection, PaX and Address space layout randomization using grsecurity.
Linux From Scratch is a way to install a working Linux system by building all components of it manually. This is, naturally, a longer process than installing a pre-compiled Linux distribution. According to the Linux From Scratch website, the advantages to this method are a compact, flexible and secure system and the process leads to a greater understanding of the internal workings of the Linux OS. [1]
Contents |
[edit] Procedure
A clean partition and a working Linux system with a compiler and some essential software libraries are required to build LFS. Instead of installing from an existing Linux system, one can also use a Live CD (e.g., the Linux From Scratch Live CD). The LFS Live CD contains all the source packages (in the full version of the Live CD only), the LFS book, automated building tools and (except for the minimal Live CD version) an Xfce 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.
[edit] List of LFS software
This is a list of the packages included in LFS version 6.3
[edit] See also
[edit] External links
- Linux From Scratch
- DistroWatch.com: Linux From Scratch
- Interview with Gerard Beekmans
- Another interview with Gerard Beekmans
[edit] References
- LFS Project Homepage. Linux From Scratch. Gerard Beekmans (2008-03-17). Retrieved on 2008-03-17.
|
||||||||||||||||||||||||||||

