Linux From Scratch

Version 3.3

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 the software that we use.


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
Acknowledgments
How things are going to be done
Conventions used in this book
Book version
Mirror sites
Changelog
Mailing lists and archives
News server
FAQ
Contact information
2. Important information
About $LFS
How to download the software
How to install the software
Which Platform?
How to ask for help
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
5. Preparing the LFS system
Introduction
Why do we use static linking?
Install all software as an unprivileged user
Creating directories
Installing Bash-2.05a
Installing Binutils-2.12
Installing Bzip2-1.0.2
Installing Diffutils-2.8
Installing Fileutils-4.1
Installing Gawk-3.1.0
Installing GCC-2.95.3
Installing Grep-2.5
Installing Gzip-1.2.4a
Installing Linux Kernel-2.4.18
Installing Make-3.79.1
Installing Patch-2.5.4
Installing Sed-3.02
Installing Sh-utils-2.0
Installing Tar-1.13
Installing Texinfo-4.1
Installing Textutils-2.0
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
Changing ownership of the LFS partition
Creating the /etc/mtab symlink
Installing Glibc-2.2.5
Creating devices (Makedev-1.4)
Installing Man-pages-1.48
Installing Findutils-4.1
Installing Gawk-3.1.0
Installing Ncurses-5.2
Installing Vim-6.1
Installing GCC-2.95.3
Installing Bison-1.34
Installing Less-374
Installing Groff-1.17.2
Installing Man-1.5j
Installing Perl-5.6.1
Installing M4-1.4
Installing Texinfo-4.1
Installing Autoconf-2.53
Installing Automake-1.6
Installing Bash-2.05a
Installing Flex-2.5.4a
Installing File-3.37
Installing Libtool-1.4.2
Installing Bin86-0.16.2
Installing Binutils-2.12
Installing Bzip2-1.0.2
Installing Ed-0.2
Installing Gettext-0.11.1
Installing Kbd-1.06
Installing Diffutils-2.8
Installing E2fsprogs-1.27
Installing Fileutils-4.1
Installing Grep-2.5
Installing Gzip-1.2.4a
Installing Lilo-22.2
Installing Make-3.79.1
Installing Modutils-2.4.15
Installing Netkit-base-0.17
Installing Patch-2.5.4
Installing Procinfo-18
Installing Procps-2.0.7
Installing Psmisc-20.2
Installing Reiserfsprogs-3.x.1b
Installing Sed-3.02
Installing Sh-utils-2.0
Installing Net-tools-1.60
Installing Shadow-4.0.3
Installing Sysklogd-1.4.1
Installing Sysvinit-2.84
Installing Tar-1.13
Installing Textutils-2.0
Installing Util-linux-2.11o
Installing LFS-Bootscripts-1.9
Removing old NSS library files
Configuring essential software
7. Setting up system boot scripts
Introduction
How does the booting process with these scripts work?
Configuring the setclock script
Do I need the loadkeys script?
Configuring the sysklogd script
Configuring the localnet script
Creating the /etc/hosts file
Configuring the network script
8. Making the LFS system bootable
Introduction
Creating the /etc/fstab file
Installing linux-2.4.18
Making the LFS system bootable
9. The End
The End
Get Counted
Rebooting the system
III. Part III - Appendixes
A. Package descriptions and dependencies
Introduction
Autoconf
Automake
Bash
Bin86
Binutils
Bison
Bzip2
Diffutils
E2fsprogs
Ed
File
Fileutils
Findutils
Flex
Gawk
GCC
Gettext
Glibc
Grep
Groff
Gzip
Kbd
Linux kernel
Less
LFS-Bootscripts
Libtool
Lilo
M4
Make
MAKEDEV
Man
Man-pages
Modutils
Ncurses
Netkit-base
Net-tools
Patch
Perl
Procinfo
Procps
Psmisc
Reiserfsprogs
Sed
Shadow Password Suite
Sh-utils
Sysklogd
Sysvinit
Tar
Texinfo
Textutils
Util Linux
Vim
B. Resources
Introduction
Books
HOWTOs and Guides
Other