diff --git a/chapter06/config-glibc.xml b/chapter06/config-glibc.xml index 58369f33a..afafb6c73 100644 --- a/chapter06/config-glibc.xml +++ b/chapter06/config-glibc.xml @@ -55,3 +55,36 @@ by running: +   + + +Configuring Dynamic Loader + +By default, the dynamic loader +(/lib/ld-linux.so.2) searches through /lib and /usr/lib for dynamic libraries that are needed +by programs when you run them. However, if there are libraries in +directories other than /lib and +/usr/lib, you need to add them to +the /etc/ld.so.conf file for the dynamic +loader to find them. Two directories that are commonly known to contain +additional libraries are /usr/local/lib and /opt/lib, so we add those directories to the +dynamic loader's search path. + +Create a new file /etc/ld.so.conf by running the +following: + +cat > /etc/ld.so.conf << "EOF" +# Begin /etc/ld.so.conf + +/usr/local/lib +/opt/lib + +# End /etc/ld.so.conf +EOF + + + diff --git a/chapter06/config-ldso.xml b/chapter06/config-ldso.xml deleted file mode 100644 index 522fd0431..000000000 --- a/chapter06/config-ldso.xml +++ /dev/null @@ -1,31 +0,0 @@ - -Configuring Dynamic Loader - -By default, the dynamic loader -(/lib/ld-linux.so.2) searches through /lib and /usr/lib for dynamic libraries that are needed -by programs when you run them. However, if there are libraries in -directories other than /lib and -/usr/lib, you need to add them to -the /etc/ld.so.conf file for the dynamic -loader to find them. Two directories that are commonly known to contain -additional libraries are /usr/local/lib and /opt/lib, so we add those directories to the -dynamic loader's search path. - -Create a new file /etc/ld.so.conf by running the -following: - -cat > /etc/ld.so.conf << "EOF" -# Begin /etc/ld.so.conf - -/usr/local/lib -/opt/lib - -# End /etc/ld.so.conf -EOF - - - diff --git a/chapter06/config-shadowpwd.xml b/chapter06/config-shadowpwd.xml index 265851254..bb10363b5 100644 --- a/chapter06/config-shadowpwd.xml +++ b/chapter06/config-shadowpwd.xml @@ -1,3 +1,5 @@ +   + Configuring Shadow Password Suite This package contains utilities to modify users' passwords, add diff --git a/chapter06/config-sysklogd.xml b/chapter06/config-sysklogd.xml index 37ca8fbdd..95d5f5820 100644 --- a/chapter06/config-sysklogd.xml +++ b/chapter06/config-sysklogd.xml @@ -1,3 +1,5 @@ +   + Configuring Sysklogd Create a new file /etc/syslog.conf by running the diff --git a/chapter06/config-sysvinit.xml b/chapter06/config-sysvinit.xml index bea7a2806..79e273bfb 100644 --- a/chapter06/config-sysvinit.xml +++ b/chapter06/config-sysvinit.xml @@ -1,3 +1,5 @@ +   + Configuring Sysvinit Create a new file /etc/inittab by running the diff --git a/chapter06/config-vim.xml b/chapter06/config-vim.xml index 39aea4b4a..8c92a5063 100644 --- a/chapter06/config-vim.xml +++ b/chapter06/config-vim.xml @@ -1,3 +1,5 @@ +   + Configuring Vim By default, vim runs in vi compatible mode. Some people might like this, diff --git a/chapter06/configure.xml b/chapter06/configure.xml index 88350ef17..8d891212e 100644 --- a/chapter06/configure.xml +++ b/chapter06/configure.xml @@ -1,16 +1,10 @@ -Configuring essential software +Configuring system components -Now that all software is installed, all that we need to do to get a few -programs running properly is to create their configuration files. +Now that all software is installed, all that we need to do is perform +a few configuration tasks. -&c6-cf-vim; -&c6-cf-glibc; -&c6-cf-ldso; -&c6-cf-sysklogd; -&c6-cf-shadowpwd; -&c6-cf-sysvinit; &c6-cf-keyboard; &c6-cf-utmp; &c6-cf-password; diff --git a/chapter06/e2fsprogs-inst.xml b/chapter06/e2fsprogs-inst.xml index 88abd266e..389e18d1b 100644 --- a/chapter06/e2fsprogs-inst.xml +++ b/chapter06/e2fsprogs-inst.xml @@ -4,7 +4,7 @@ Installation of E2fsprogs It is recommended to build E2fsprogs outside of the -source tree. Create the build directory: +source tree: mkdir ../e2fsprogs-build && cd ../e2fsprogs-build @@ -18,15 +18,14 @@ cd ../e2fsprogs-build ---with-root-prefix="": This option -is used because of the e2fsprogs Makefile. Some programs are essential for -system use when, for example, /usr -isn't mounted (like the e2fsck program). These programs and libraries, -therefore, belong in directories like /lib and /sbin. If this option isn't passed to -E2fsprogs's configure, the programs are placed in the /usr directory, which is not what we +--with-root-prefix="": Certain +programs (such as the e2fsck program) are considered essential programs. +When, for example, /usr isn't +mounted, these essential program have to be available. They belong in +directories like /lib and +/sbin. If this option isn't passed +to E2fsprogs's configure, the programs are placed in the +/usr directory, which is not what we want. --enable-elf-shlibs: This creates diff --git a/chapter06/lilo-inst.xml b/chapter06/lilo-inst.xml index 445e877b4..995f4c290 100644 --- a/chapter06/lilo-inst.xml +++ b/chapter06/lilo-inst.xml @@ -15,11 +15,6 @@ GRUB, which is available at . make install -It appears that compilation of this package fails on certain machines -when the -g compiler flag is used. If you can't compile -Lilo at all, you should try to remove the -g value from -the CFLAGS variable in the Makefile file. - At the end of the installation, a message will appear stating that /sbin/lilo has to be executed. This is pointless because the /etc/lilo.conf file isn't present yet. We will diff --git a/chapter06/patch-inst.xml b/chapter06/patch-inst.xml index cbd59252e..ac7423d34 100644 --- a/chapter06/patch-inst.xml +++ b/chapter06/patch-inst.xml @@ -5,8 +5,7 @@ Prepare Patch to be compiled: -CPPFLAGS=-D_GNU_SOURCE \ -    ./configure --prefix=/usr +CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr Continue with compiling the package: diff --git a/chapter06/shadowpwd-inst.xml b/chapter06/shadowpwd-inst.xml index 4fbd05c89..2cd239541 100644 --- a/chapter06/shadowpwd-inst.xml +++ b/chapter06/shadowpwd-inst.xml @@ -11,8 +11,8 @@ be found at . Prepare Shadow to be compiled: -./configure --prefix=/usr \ -    --libdir=/usr/lib --enable-shared +./configure --prefix=/usr --libdir=/usr/lib \ +    --enable-shared Continue with compiling the package: diff --git a/chapter06/shadowpwd.xml b/chapter06/shadowpwd.xml index cc8b60fc3..f6238c0b1 100644 --- a/chapter06/shadowpwd.xml +++ b/chapter06/shadowpwd.xml @@ -8,5 +8,6 @@ Estimated required disk space: &shadow-compsize; &aa-shadowpwd-shortdesc; &aa-shadowpwd-dep; &c6-shadowpwd-inst; +&c6-cf-shadowpwd; diff --git a/chapter06/sysklogd.xml b/chapter06/sysklogd.xml index aba692da0..53b5028cc 100644 --- a/chapter06/sysklogd.xml +++ b/chapter06/sysklogd.xml @@ -8,5 +8,6 @@ Estimated required disk space: &sysklogd-compsize; &aa-sysklogd-shortdesc; &aa-sysklogd-dep; &c6-sysklogd-inst; +&c6-cf-sysklogd; diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index 4d96ca325..69826f4d5 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -8,5 +8,6 @@ Estimated required disk space: &sysvinit-compsize; &aa-sysvinit-shortdesc; &aa-sysvinit-dep; &c6-sysvinit-inst; +&c6-cf-sysvinit; diff --git a/chapter06/tar-inst.xml b/chapter06/tar-inst.xml index 098a0b8a7..a2842f35e 100644 --- a/chapter06/tar-inst.xml +++ b/chapter06/tar-inst.xml @@ -14,8 +14,8 @@ gzip files. Prepare Tar to be compiled: -./configure --prefix=/usr \ -    --libexecdir=/usr/bin --bindir=/bin +./configure --prefix=/usr --bindir=/bin \ +    --libexecdir=/usr/bin Continue with compiling the package: diff --git a/chapter06/vim.xml b/chapter06/vim.xml index a0c61878f..22ef51928 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -9,5 +9,6 @@ Estimated required disk space: &vim-compsize; &aa-vim-alt; &aa-vim-dep; &c6-vim-inst; +&c6-cf-vim;