Linux From Scratch

Gerard Beekmans

This book describes the process of creating a Linux system from scratch from an already installed Linux distribution, using nothing but the sources of software that are needed.


Dedication

This book is dedicated to my loving and supportive wife Beverly Beekmans.

Table of Contents
Preface
Foreword
Who would want to read this book
Who would not want to read this book
Organization
Part I - Introduction
Part II - Installation of the LFS system
Part III - Appendixes
I. Part I - Introduction
1. Introduction
How things are going to be done
Book version
Acknowledgments
Changelog
Mailing lists and archives
Contact information
2. Important information
About $LFS
How to download the software
How to install the software
Download the bootscripts
Download the LFS Commands
II. Part II - Installing the LFS system
3. Packages that need to be downloaded
Introduction
Packages that need to be downloaded
4. Preparing a new partition
Introduction
Creating a new partition
Creating a file system on the new partition
Mounting the new partition
Creating directories
5. Preparing the LFS system
Introduction
Install all software as user root
Installing Bash
Installing Binutils
Installing Bzip2
Installing Diffutils
Installing Fileutils
Installing GCC
Installing Grep
Installing Gzip
Installing Linux Kernel
Installing Make
Installing Mawk
Installing Patch
Installing Sed
Installing Sh-utils
Installing Tar
Installing Texinfo
Installing Textutils
Creating passwd and group files
Copying old NSS library files
Mounting $LFS/proc file system
6. Installing basic system software
Introduction
About debugging symbols
Creating $LFS/root/.bash_profile
Entering the chroot'ed environment
Installing Glibc
Creating devices
Installing Man-pages
Installing Findutils
Installing Mawk
Installing Ncurses
Installing Vim
Installing GCC
Installing Bison
Installing Less
Installing Groff
Installing Man
Installing Perl
Installing M4
Installing Texinfo
Installing Autoconf
Installing Automake
Installing Bash
Installing Flex
Installing File
Installing Libtool
Installing Bin86
Installing Binutils
Installing Bzip2
Installing Ed
Installing Gettext
Installing Kbd
Installing Diffutils
Installing E2fsprogs
Installing Fileutils
Installing Grep
Installing Gzip
Installing Lilo
Installing Make
Installing Modutils
Installing Patch
Installing Procinfo
Installing Procps
Installing Psmisc
Installing Sed
Installing Sh-utils
Installing Shadowpwd
Installing Sysklogd
Installing Sysvinit
Installing Tar
Installing Textutils
Installing Utillinux
Removing old NSS library files
Configuring essential software
7. Creating system boot scripts
Introduction
How does the booting process with these scripts work?
Creating directories
Creating the rc script
Creating the rcS script
Creating the functions script
Creating the checkfs script
Creating the halt script
Creating the loadkeys script
Creating the mountfs script
Creating the reboot script
Creating the sendsignals script
Creating the setclock script
Creating the sysklogd script
Creating the template script
Setting up symlinks and permissions
8. Making the LFS system bootable
Introduction
Creating the /etc/fstab file
Installing a kernel
Making the LFS system bootable
Rebooting the system
9. Setting up basic networking
Introduction
Installing Netkit-base
Installing Net-tools
Creating the /etc/init.d/localnet boot script
Creating the /etc/sysconfig/network file
Creating the /etc/hosts file
Creating the /etc/init.d/ethnet script
Final reboot
10. The End
The End
III. Part III - Appendixes
A. Package descriptions
Introduction
Bash
Binutils
Bzip2
Diffutils
Fileutils
GCC
Grep
Gzip
Linux kernel
Make
Mawk
Patch
Sed
Shellutils
Tar
Texinfo
Textutils
Glibc
MAKEDEV
Man-pages
Findutils
Ncurses
Vim
Bison
Less
Groff
Man
Perl
M4
Autoconf
Automake
Flex
File
Libtool
Bin86
Ed
Gettext
Kbd
E2fsprogs
Lilo
Modutils
Procinfo
Procps
Psmisc
Shadow Password Suite
Sysklogd
Sysvinit
Util Linux
Netkit-base
Net-tools
B. Resources
Introduction
Books
HOWTOs and Guides
Other
C. Official download locations
Official download locations