Linux From Scratch

Gerard Beekmans - Main document

Michael Peters - Apple PowerPC additions

This book describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the sources of software that we need


Dedication

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

Table of Contents
Preface
1. Introduction
What's this all about?
Co-authors
New versions
Changelog
Mailinglists
lfs-discuss
lfs-announce
linux
How to subscribe?
How to unsubscribe?
Contact information
2. Conventions used in this book
About $LFS
How to download the software
How to install the software
3. Packages you need to download
Mandatory packages for Intel systems
Mandatory packages for PPC systems
Optional packages for Intel systems
Optional packages for PPC systems
4. Preparing the new system
How we are going to do things
Creating a new partition on Intel systems
Creating a new partition on PPC systems
Creating a ext2 file system on the new partition
Mounting the new partition
Creating directories
Copying the /dev directory
5. Making the LFS system bootable
Installing Sysvinit
Configuring Sysvinit
Creating passwd & group files
Installing the Bash shell
Adding an entry to LILO
Testing the system
6. Installing a kernel
Note on ftp.kernel.org
Configuring the kernel on Intel systems
Configuring the kernel on PPC systems
Updating LILO
Testing the system
7. Installing basic system software
About debugging symbols
Preparing the LFS system for installing basic system software
Installing Binutils
Installing Bzip2
Installing Diffutils
Installing Fileutils
Installing GCC on the normal system if necessary
Installing GCC on the LFS system
Installing Glibc
Installing Grep
Installing Gzip
Installing Make
Installing Sed
Installing Shell Utils
Installing Tar
Installing Textutils
Installing Util-Linux
Installing Pmac-utils (PPC systems only)
Installing basic system software
Remounting partition and activating swap
Installing GCC
Installing Bison
Installing Mawk
Installing Findutils
Installing Termcap
Installing Ncurses
Installing Less
Installing Perl
Installing M4
Installing M4
Installing Texinfo
Installing Autoconf
Installing Automakme
Installing Bash
Installing Flex
Installing Binutils
Installing Bzip2
Installing Diffuitls
Installing E2fsprogs
Installing File
Installing Fileutils
Installing Grep
Installing Groff
Installing Gzip
Installing Ld.so
Installing Libtool
Installing Linux86
Installing Lilo
Installing Make
Installing Shell Utils
Installing Shadow Password Suite
Installing Man
Installing Modutils
Installing Procinfo
Installing Procps
Installing Psmisc
Installing Sed
Installing Start-stop-daemon
Installing Sysklogd
Installing Sysvinit
Installing Tar
Installing Textutils
Installing Vim
Installing Util-Linux
Removing old NSS library files
Configuring the software
Configuring Glibc
Configuring Lilo
Configuring Sysklogd
Configuring Shadow Password Suite
Configuring Sysvinit
Creating the /var/run/utmp file
8. Creating system boot scripts
Preparing the directories and master files
Creating the reboot script
Creating the halt script
Creating the mountfs script
Creating the umountfs script
Creating the sendsignals script
Creating the checkroot script
Creating the sysklogd script
Creating the setclock script (PPC systems only)
Setting up symlinks and permissions
Creating the /etc/fstab file
9. Setting up basic networking
Installing Netkit-base
Installing Net-tools
Creating the /etc/init.d/localnet bootscript
Setting up permissions and symlink
Creating the /etc/hostname file
Creating the /etc/hosts file
Creating the /etc/init.d/ethnet file
Setting up permissions and symlink
Testing the network setup
Testing the system
10. Installing network daemons
Setting up SMTP
Creating groups and users
Creating directories
Installing Sendmail
Configuring Sendmail
Installing Procmail
Creating the /etc/init.d/sendmail script
Setting up permissions and symlinks
Setting up FTP
Creating groups and users
Installing ProFTPD
Creating the /etc/init.d/proftpd script
Setting up permissions and symlinks
Setting up Telnet
Installing telnet daemon + client
Creating the /etc/inetd.conf configuration file
Creating the /etc/init.d/inetd script
Setting up permissions and symlinks
Setting up PPP
Configuring the kernel
Creating group
Installing PPP
Creating /etc/resolv.conf
Creating /etc/ppp/peers/provider
Creating the /etc/chatscripts/provider file
11. Installing network clients
Installing Email clients
Installing Mailx
Installing Mutt
Installing Fetchmail
Installing FTP client
Installing HTTP client
Installing Telnet client
Installing PPP clients
12. Installing X Window System
Installing X on Intel systems
Installing X on PPC systems
Installing the Xpmac server (PPC systems only)
Creating /etc/ld.so.conf
Creating necessary symlinks
Adding /usr/X11/bin to the $PATH environment variable
Configuring X on Intel systems
Configuring X on PPC systems
Installing WindowMaker
Installing libPropList
Installing libXpm
Installing libpng
Installing libtiff
Installing libjpeg
Installing libungif
Installing WindowMaker
Updating dynamic loader cache
Configuring WindowMaker
A. Resources
Books
HOWTOs and Guides
Other