Next
Previous Contents
Linux From Scratch HOWTO
Gerard Beekmans
v1.2, 9 January 2000
This document describes the process of creating your own Linux system from scratch, using nothing but the sources of needed software.
1.
Introduction
1.1 What's this all about?
1.2 New versions
1.3 Version history
1.4 TODO
1.5 Contact info
2.
Software packages you need to download
3.
Preparing a new partition
3.1 Creating a new partition
3.2 Creating an ext2 file system on the new partition
3.3 Adding an entry to LILO
3.4 Creating directories
3.5 Copying the /dev directory
4.
Installing Sysvinit
4.1 Preparing Sysvinit
4.2 Configuring Sysvinit
4.3 Copying passwd & group files
4.4 Installing a root shell
4.5 Testing the system
5.
Installing a kernel
5.1 Note on ftp.kernel.org
5.2 Configuring the kernel
5.3 Updating LILO
5.4 Copying the new kernel source tree to $LFS
5.5 Updating symlinks
5.6 Testing the system
6.
Installing the GNU C Library
6.1 Preparing the system for the GNU C Library installation
6.2 Installing the GNU C Library
7.
Installing the GNU CC compilers
7.1 Installing GCC 2.95.2
7.2 Installing GCC 2.7.2.3
8.
Installing login utilities
8.1 Installing agetty + login
8.2 Modifying $LFS/etc/inittab
8.3 Creating the UTMP record file
8.4 Testing the system
9.
Installing Vim
9.1 Preparing the system for the Vim installation
9.2 Installing Vim
10.
Creating initial boot scripts
10.1 Preparing the directories and master files
10.2 Creating the reboot script
10.3 Creating the halt script
10.4 Creating the mountfs script
10.5 Creating the umountfs script
10.6 Creating the sendsignals script
10.7 Set file permissions and create symlinks
10.8 Creating the /etc/fstab file
10.9 Testing the system
11.
Reinstalling statically linked software
11.1 Installing the Termcap library
11.2 Installing the Readline library
11.3 Reinstalling Bash
11.4 Reinstalling Sysvinit
11.5 Reinstalling Make
11.6 Reinstalling Sed
11.7 Reinstalling Shell Utils
11.8 Reinstalling File Utils
11.9 Reinstalling + Installing Util Linux
11.10 Reinstalling Text Utils
11.11 Reinstalling Tar
11.12 Reinstalling Gzip
11.13 Reinstalling Bison
11.14 Installing Flex
11.15 Reinstalling Binutils
11.16 Reinstalling Grep
11.17 Reinstalling Mawk
11.18 Reinstalling Find Utils
11.19 Reinstalling Diff Utils
11.20 Installing Less
11.21 Reinstalling Perl
11.22 Reinstalling M4
11.23 Reinstalling Texinfo
12.
Installing the rest of the basic system software
12.1 Installing E2fsprogs
12.2 Installing File
12.3 Installing Libtool
12.4 Installing Modutils
12.5 Installing Linux86
12.6 Installing Lilo
12.7 Installing DPKG
12.8 Installing Sysklogd
12.9 Installing Groff
12.10 Installing Man-db
12.11 Installing Procps
12.12 Installing Procinfo
12.13 Installing Procmisc
12.14 Installing Shadow Password
12.15 Installing GNU C++ Library
13.
Setting up basic networking
13.1 Installing Netkit-base
13.2 Installing Net-tools
14.
Setting up Email sub system
14.1 Preparing system for Email sub system
14.2 Installing Procmail
14.3 Installing Sendmail
14.4 Installing Mailx
14.5 Creating /etc/init.d/sendmail bootscript
14.6 Setting up permissions and symlinks
14.7 Installing Mutt
14.8 Installing Fetchmail
14.9 Testing the Email sub system
15.
Installing Internet Servers
15.1 Installing telnet daemon + client
15.2 Installing Proftpd
15.3 Installing Netkit-ftp
15.4 Installing Apache
15.5 Installing Slang Library
15.6 Installing Zlib
15.7 Installing Lynx
15.8 Configuring the daemons
15.9 Configuring telnetd
15.10 Configuring proftpd
15.11 Configuring apache
15.12 Testing the daemons
16.
Installing X Window System
16.1 Creating missing symlink
16.2 Installing X
16.3 Creating /etc/ld.so.conf
16.4 Modifying /etc/man_db.config
16.5 Creating the /usr/include/X11 symlink
16.6 Creating the /usr/X11 symlink
16.7 Adding /usr/X11/bin to the $PATH environment variable
16.8 Configuring X
16.9 Testing X
17.
Installing Window Maker
17.1 Preparing the system for the Window Maker installation
17.2 Updating dynamic loader cache
17.3 Configuring WindowMaker
17.4 Testing WindowMaker
18.
Configuring system for Internet
18.1 Configuring Kernel
18.2 Creating groups and directories
18.3 Installing PPP
18.4 Creating /etc/resolv.conf
18.5 Creating the connect and disconnect scripts
18.6 Creating /etc/ppp/peers/provider
18.7 Creating /etc/chatscripts/provider
18.8 Note on password authentication
18.9 Other resources
19.
Copyright & Licensing Information
Next
Previous Contents