Linux From Scratch

Version 3.2-rc2

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
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
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.11.2
Installing Bzip2-1.0.1
Installing Diffutils-2.7
Installing Fileutils-4.1
Installing GCC-2.95.3
Installing Grep-2.4.2
Installing Gzip-1.2.4a
Installing Linux Kernel-2.4.17
Installing Make-3.79.1
Installing Mawk-1.3.3
Installing Patch-2.5.4
Installing Sed-3.02
Installing Sh-utils-2.0
Installing Tar-1.13
Installing Texinfo-4.0
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.47
Installing Findutils-4.1
Installing Mawk-1.3.3
Installing Ncurses-5.2
Installing Vim-6.0
Installing GCC-2.95.3
Installing Bison-1.31
Installing Less-358
Installing Groff-1.17.2
Installing Man-1.5j
Installing Perl-5.6.1
Installing M4-1.4
Installing Texinfo-4.0
Installing Autoconf-2.52
Installing Automake-1.5
Installing Bash-2.05a
Installing Flex-2.5.4a
Installing File-3.37
Installing Libtool-1.4.2
Installing Bin86-0.16.0
Installing Binutils-2.11.2
Installing Bzip2-1.0.1
Installing Ed-0.2
Installing Gettext-0.10.40
Installing Kbd-1.06
Installing Diffutils-2.7
Installing E2fsprogs-1.25
Installing Fileutils-4.1
Installing Grep-2.4.2
Installing Gzip-1.2.4a
Installing Lilo-22.1
Installing Make-3.79.1
Installing Modutils-2.4.12
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.0j
Installing Sed-3.02
Installing Sh-utils-2.0
Installing Net-tools-1.60
Installing Shadow-20001016
Installing Sysklogd-1.4.1
Installing Sysvinit-2.84
Installing Tar-1.13
Installing Textutils-2.0
Installing Util-linux-2.11n
Installing LFS-Bootscripts-1.6
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 loadkeys script
Configuring the setclock 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.17
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
Chroot
Diffutils
E2fsprogs
Ed
File
Fileutils
Findutils
Flex
GCC
Gettext
Glibc
Grep
Groff
Gzip
Kbd
Linux kernel
Less
Libtool
Lilo
M4
Make
MAKEDEV
Man
Man-pages
Mawk
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
LFS-Bootscripts
B. Resources
Introduction
Books
HOWTOs and Guides
Other