Linux From Scratch (LFS) is a project that provides you with step-by-step instructions for building your own customized Linux system entirely from source. http://www.linuxfromscratch.org/lfs/

DJ Lucas ed20c2dd12 Moved cleanfs immediately after mountfs and removed the timestamp maker for stale files. %!s(int64=16) %!d(string=hai) anos
appendices 55b3f62449 Add GMP & MPFR package dependencies, and remove Mktemp dependencies. Fixes #2218. %!s(int64=17) %!d(string=hai) anos
bootscripts ed20c2dd12 Moved cleanfs immediately after mountfs and removed the timestamp maker for stale files. %!s(int64=16) %!d(string=hai) anos
chapter01 9d25a897d2 Remove tab characters %!s(int64=16) %!d(string=hai) anos
chapter02 293164a560 Corrected the instruction to untar the E2fsprogs tarball in Section 2.3, thanks to William Immendorf for pointing out the error %!s(int64=17) %!d(string=hai) anos
chapter03 863beeaa47 Fixed perl configuration so it knows the vendor library location. %!s(int64=16) %!d(string=hai) anos
chapter04 b06ca361a4 Updated book sources to use DocBook-XML DTD 4.5 %!s(int64=18) %!d(string=hai) anos
chapter05 182d5d3e50 Text changes in several places in Chapters 5 and 6. %!s(int64=16) %!d(string=hai) anos
chapter06 182d5d3e50 Text changes in several places in Chapters 5 and 6. %!s(int64=16) %!d(string=hai) anos
chapter07 53eeda098e Removed literal use of the greek character 'alpha' due to error in rendered PDF. %!s(int64=17) %!d(string=hai) anos
chapter08 c26ddbf2c4 Make title of fstab entry for /dev/shm consistent with kernel documentation %!s(int64=17) %!d(string=hai) anos
chapter09 b06ca361a4 Updated book sources to use DocBook-XML DTD 4.5 %!s(int64=18) %!d(string=hai) anos
images 192ac089b9 Import the admonition graphics from the DocBook-XSL package. %!s(int64=18) %!d(string=hai) anos
prologue 56ca3a5fa6 Added a note to the Host System Requirements that the %!s(int64=17) %!d(string=hai) anos
stylesheets c9af9c626f Tweak the appearance of notes in the book's html %!s(int64=17) %!d(string=hai) anos
udev-config 649b4eeda2 typo and thinko fix %!s(int64=17) %!d(string=hai) anos
INSTALL 0d8c5d4aa4 Fixed ambiguity in INSTALL. %!s(int64=20) %!d(string=hai) anos
Makefile fbb442ea34 More tweaking of Makefile validate rule %!s(int64=17) %!d(string=hai) anos
README 05e94658c6 Updated README and INSTALL. %!s(int64=20) %!d(string=hai) anos
aux-file-data.sh 1c4800743d Moved bootscripts and udev-config to BOOK %!s(int64=17) %!d(string=hai) anos
general.ent 863beeaa47 Fixed perl configuration so it knows the vendor library location. %!s(int64=16) %!d(string=hai) anos
index.xml 12bc33686f Add udev rules as an appendix %!s(int64=17) %!d(string=hai) anos
make-aux-files.sh 1c4800743d Moved bootscripts and udev-config to BOOK %!s(int64=17) %!d(string=hai) anos
obfuscate.sh 05d60cedcd Added a versose flag and other fixes to the Makefile. %!s(int64=18) %!d(string=hai) anos
packages.ent bd509e15ae Update to tcl-8.5.5 %!s(int64=17) %!d(string=hai) anos
patches.ent 863beeaa47 Fixed perl configuration so it knows the vendor library location. %!s(int64=16) %!d(string=hai) anos
process-scripts.sh abcee477f0 Change book build scripts to specify bash, not sh %!s(int64=17) %!d(string=hai) anos
tidy.conf 58f10f85ed HTML Tidy's newline detection appears to be broken. Force LF line endings assuming people are rendering on a Linux box %!s(int64=20) %!d(string=hai) anos

README

LFS Book README

This document is meant to instruct the user on how to convert the book's XML
source to other formats (e.g. HTML, PDF, PS and TXT). First, if you have not
already done so, please read the INSTALL file for instructions on how to install
the required software. If you have already completed the steps outlined in the
INSTALL file, then continue reading for examples how to convert these files into
various other formats.

XML to XHTML:
-------------
make BASEDIR=/path/to/output/location


XML to single file XHTML (nochunks):
------------------------------------
make BASEDIR=/path/to/output/location nochunks


XML to TXT
----------
Follow the instructions for nochunks and then run:
lynx -dump /path/to/nochunks >/path/to/output


XML to PDF:
-----------
make BASEDIR=/path/to/output/location pdf