diff options
Diffstat (limited to 'chapter06')
68 files changed, 332 insertions, 332 deletions
diff --git a/chapter06/adjustingtoolchain.xml b/chapter06/adjustingtoolchain.xml index f3bfbea11..f26f4378c 100644 --- a/chapter06/adjustingtoolchain.xml +++ b/chapter06/adjustingtoolchain.xml @@ -12,7 +12,7 @@ source and build directories from the second pass over Binutils. Install the adjusted linker by running the following from within the <filename class="directory">binutils-build</filename> directory:</para> -<para><screen><userinput>make -C ld INSTALL=/tools/bin/install install</userinput></screen></para> +<screen><userinput>make -C ld INSTALL=/tools/bin/install install</userinput></screen> <note><para>If you somehow missed the earlier warning to retain the Binutils source and build directories from the second pass in Chapter 5 or otherwise @@ -40,11 +40,11 @@ problem here. The above command takes care of this also.</para> to the new dynamic linker. Just like earlier on, we use a sed to accomplish this:</para> -<para><screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs +<screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ $SPECFILE > newspecfile mv newspecfile $SPECFILE -unset SPECFILE</userinput></screen></para> +unset SPECFILE</userinput></screen> <para>Again, cutting and pasting the above is recommended. And just like before, it is a good idea to check the specs file to ensure the intended @@ -60,9 +60,9 @@ name of your platform's dynamic linker in the above commands. Refer back to basic functions (compiling and linking) of the adjusted toolchain are working as expected. For this we are going to perform a simple sanity check:</para> -<para><screen><userinput>echo 'main(){}' > dummy.c +<screen><userinput>echo 'main(){}' > dummy.c gcc dummy.c -readelf -l a.out | grep ': /lib'</userinput></screen></para> +readelf -l a.out | grep ': /lib'</userinput></screen> <para>If everything is working correctly, there should be no errors, and the output of the last command will be:</para> @@ -81,7 +81,7 @@ different.</para> <para>Once you are satisfied that all is well, clean up the test files:</para> -<para><screen><userinput>rm dummy.c a.out</userinput></screen></para> +<screen><userinput>rm dummy.c a.out</userinput></screen> </caution> </sect1> diff --git a/chapter06/autoconf-inst.xml b/chapter06/autoconf-inst.xml index a9122d6f6..a0d7ac9e4 100644 --- a/chapter06/autoconf-inst.xml +++ b/chapter06/autoconf-inst.xml @@ -4,21 +4,21 @@ <para>Prepare Autoconf for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/automake-inst.xml b/chapter06/automake-inst.xml index 93ff09b26..97e0452b8 100644 --- a/chapter06/automake-inst.xml +++ b/chapter06/automake-inst.xml @@ -5,24 +5,24 @@ <para>Prepare Automake for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And create a necessary symbolic link:</para> -<para><screen><userinput>ln -s automake-1.7 /usr/share/automake</userinput></screen></para> +<screen><userinput>ln -s automake-1.7 /usr/share/automake</userinput></screen> </sect2> diff --git a/chapter06/bash-inst.xml b/chapter06/bash-inst.xml index 339a670df..6f1a94e7d 100644 --- a/chapter06/bash-inst.xml +++ b/chapter06/bash-inst.xml @@ -7,28 +7,28 @@ way it is expected at times. Fix this behaviour with the following patch:</para> -<para><screen><userinput>patch -Np1 -i ../&bash-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&bash-patch;</userinput></screen> <para>Prepare Bash for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make tests</userinput></screen></para> +<screen><userinput>make tests</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And reload the newly compiled <userinput>bash</userinput> program:</para> -<para><screen><userinput>exec /bin/bash --login +h</userinput></screen></para> +<screen><userinput>exec /bin/bash --login +h</userinput></screen> </sect2> diff --git a/chapter06/basic-net.xml b/chapter06/basic-net.xml index d868d7460..1148c51b2 100644 --- a/chapter06/basic-net.xml +++ b/chapter06/basic-net.xml @@ -14,7 +14,7 @@ contains information allowing resolution of host names to IP addresses. Create a very basic one (we'll make a better one later, but Perl needs it now for doing some tests) with the following command:</para> -<para><screen><userinput>echo "127.0.0.1 $(hostname) localhost" > /etc/hosts</userinput></screen></para> +<screen><userinput>echo "127.0.0.1 $(hostname) localhost" > /etc/hosts</userinput></screen> <para>Now unpack the Lfs-Utils tarball again, as we're going to copy two necessary files from it. One is <filename>/etc/services</filename>, which is @@ -23,7 +23,7 @@ used to resolve service numbers to human-readable names, and the other is Copy them with the following command after you have entered the Lfs-Utils directory:</para> -<para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para> +<screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen> </sect1> diff --git a/chapter06/binutils-inst.xml b/chapter06/binutils-inst.xml index 7ebec5652..81312fe4c 100644 --- a/chapter06/binutils-inst.xml +++ b/chapter06/binutils-inst.xml @@ -6,7 +6,7 @@ working properly inside the chroot environment. We will again quickly check that everything is set up correctly by performing a simple test:</para> -<para><screen><userinput>expect -c "spawn ls"</userinput></screen></para> +<screen><userinput>expect -c "spawn ls"</userinput></screen> <para>If you receive the message:</para> @@ -31,17 +31,17 @@ or modifying them when building Binutils.</para> <para>The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory:</para> -<para><screen><userinput>mkdir ../binutils-build -cd ../binutils-build</userinput></screen></para> +<screen><userinput>mkdir ../binutils-build +cd ../binutils-build</userinput></screen> <para>Now prepare Binutils for compilation:</para> -<para><screen><userinput>../binutils-&binutils-version;/configure \ - --prefix=/usr --enable-shared</userinput></screen></para> +<screen><userinput>../binutils-&binutils-version;/configure \ + --prefix=/usr --enable-shared</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make tooldir=/usr</userinput></screen></para> +<screen><userinput>make tooldir=/usr</userinput></screen> <para>Normally, the <emphasis>tooldir</emphasis> (the directory where the executables end up) is set to $(exec_prefix)/$(target_alias), which expands @@ -53,7 +53,7 @@ generates code that can be executed on PowerPC machines).</para> <para>Test the results:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>The test suite notes from <xref linkend="ch05-binutils-pass2"/> are still very much appropriate here. Be sure to refer back there should you have any @@ -61,12 +61,12 @@ doubts.</para> <para>Install the package:</para> -<para><screen><userinput>make tooldir=/usr install</userinput></screen></para> +<screen><userinput>make tooldir=/usr install</userinput></screen> <para>Install the <emphasis>libiberty</emphasis> header file that is needed by some packages:</para> -<para><screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen></para> +<screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen> </sect2> diff --git a/chapter06/bison-inst.xml b/chapter06/bison-inst.xml index 39a8f98fc..7240736b1 100644 --- a/chapter06/bison-inst.xml +++ b/chapter06/bison-inst.xml @@ -6,25 +6,25 @@ <para>First we use a patch to bison, backported from CVS, which fixes a minor compilation problem with some packages:</para> -<para><screen><userinput>patch -Np1 -i ../&bison-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&bison-patch;</userinput></screen> <para>Prepare Bison for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so (and takes a long time):</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/bootscripts-inst.xml b/chapter06/bootscripts-inst.xml index 50d709d54..8b39d37e7 100644 --- a/chapter06/bootscripts-inst.xml +++ b/chapter06/bootscripts-inst.xml @@ -14,11 +14,11 @@ skip Chapter 7 when you arrive at it and move on to Chapter 8.</para> <para>Install the boot scripts:</para> -<para><screen><userinput>cp -a rc.d sysconfig /etc</userinput></screen></para> +<screen><userinput>cp -a rc.d sysconfig /etc</userinput></screen> <para>Give <emphasis>root</emphasis> ownership of the scripts:</para> -<para><screen><userinput>chown -R root:root /etc/rc.d /etc/sysconfig</userinput></screen></para> +<screen><userinput>chown -R root:root /etc/rc.d /etc/sysconfig</userinput></screen> </sect2> diff --git a/chapter06/bzip2-inst.xml b/chapter06/bzip2-inst.xml index 2679231a4..87d8c361f 100644 --- a/chapter06/bzip2-inst.xml +++ b/chapter06/bzip2-inst.xml @@ -5,8 +5,8 @@ <para>Prepare Bzip2 for compilation with:</para> -<para><screen><userinput>make -f Makefile-libbz2_so -make clean</userinput></screen></para> +<screen><userinput>make -f Makefile-libbz2_so +make clean</userinput></screen> <para>The <emphasis>-f</emphasis> flag will cause Bzip2 to be built using a different <filename>Makefile</filename> file, in this case the @@ -16,22 +16,22 @@ against it.</para> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And install the shared <userinput>bzip2</userinput> binary into the <filename class="directory">/bin</filename> directory, then make some necessary symbolic links, and clean up.</para> -<para><screen><userinput>cp bzip2-shared /bin/bzip2 +<screen><userinput>cp bzip2-shared /bin/bzip2 cp -a libbz2.so* /lib ln -s ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so rm /usr/bin/{bunzip2,bzcat,bzip2} mv /usr/bin/{bzip2recover,bzless,bzmore} /bin ln -s bzip2 /bin/bunzip2 -ln -s bzip2 /bin/bzcat</userinput></screen></para> +ln -s bzip2 /bin/bzcat</userinput></screen> </sect2> diff --git a/chapter06/changingowner.xml b/chapter06/changingowner.xml index ae956d53a..e7ff8b12e 100644 --- a/chapter06/changingowner.xml +++ b/chapter06/changingowner.xml @@ -22,7 +22,7 @@ system. Alternatively, you can (and the book assumes you do) assign the contents of the <filename class="directory">/tools</filename> directory to user <emphasis>root</emphasis> by running the following command:</para> -<para><screen><userinput>chown -R 0:0 /tools</userinput></screen></para> +<screen><userinput>chown -R 0:0 /tools</userinput></screen> <para>The command uses "0:0" instead of "root:root", because chown is unable to resolve the name "root" until the password file has been created.</para> diff --git a/chapter06/chroot.xml b/chapter06/chroot.xml index e843c058e..25fc85295 100644 --- a/chapter06/chroot.xml +++ b/chapter06/chroot.xml @@ -16,12 +16,12 @@ example.</para> <para>Become <emphasis>root</emphasis> and run the following command to enter the chroot environment:</para> -<para><screen><userinput>chroot $LFS /tools/bin/env -i \ +<screen><userinput>chroot $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ - /tools/bin/bash --login</userinput></screen></para> + /tools/bin/bash --login</userinput></screen> -<para><screen><userinput>set +h</userinput></screen></para> +<screen><userinput>set +h</userinput></screen> <para>The <userinput>-i</userinput> option given to the <userinput>env</userinput> command will clear all variables of the chroot diff --git a/chapter06/config-glibc.xml b/chapter06/config-glibc.xml index 0700099d0..0926f560a 100644 --- a/chapter06/config-glibc.xml +++ b/chapter06/config-glibc.xml @@ -10,7 +10,7 @@ to be set up.</para> <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the following:</para> -<para><screen><userinput>cat > /etc/nsswitch.conf << "EOF"</userinput> +<screen><userinput>cat > /etc/nsswitch.conf << "EOF"</userinput> # Begin /etc/nsswitch.conf passwd: files @@ -30,18 +30,18 @@ rpc: db files netgroup: db files # End /etc/nsswitch.conf -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>To find out what time zone you're in, run the following script:</para> -<para><screen><userinput>tzselect</userinput></screen></para> +<screen><userinput>tzselect</userinput></screen> <para>When you've answered a few questions about your location, the script will output the name of your time zone, something like <emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>. Then create the <filename>/etc/localtime</filename> file by running:</para> -<para><screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para> +<screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen> <para>The meaning of the option:</para> @@ -81,14 +81,14 @@ dynamic loader's search path.</para> <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the following:</para> -<para><screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput> +<screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput> # Begin /etc/ld.so.conf /usr/local/lib /opt/lib # End /etc/ld.so.conf -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> </sect2> diff --git a/chapter06/config-keyboard.xml b/chapter06/config-keyboard.xml index c020719e4..b8b85398a 100644 --- a/chapter06/config-keyboard.xml +++ b/chapter06/config-keyboard.xml @@ -9,7 +9,7 @@ change it.</para> <filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename> symlink by running the following command:</para> -<para><screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen></para> +<screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen> <para>Of course, replace <filename>path/to/keymap</filename> with the path and name of your keyboard's map file. For example, if you have a Dutch keyboard, @@ -24,8 +24,8 @@ kernel), as then the bootscript that normally sets up your keymap isn't run.</pa kernel source. You will have to repeat this command whenever you unpack a new kernel:</para> -<para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ - /usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen></para> +<screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ + /usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen> </sect2> diff --git a/chapter06/config-shadowpwd.xml b/chapter06/config-shadowpwd.xml index a5e667b2c..d3373cde3 100644 --- a/chapter06/config-shadowpwd.xml +++ b/chapter06/config-shadowpwd.xml @@ -13,12 +13,12 @@ shadowed passwords.</para> <para>To enable shadowed passwords, run the following command:</para> -<para><screen><userinput>/usr/sbin/pwconv</userinput></screen></para> +<screen><userinput>/usr/sbin/pwconv</userinput></screen> <para>And to enable shadowed group passwords, run the following command:</para> -<para><screen><userinput>/usr/sbin/grpconv</userinput></screen></para> +<screen><userinput>/usr/sbin/grpconv</userinput></screen> <para>Under normal circumstances, you won't have created any passwords yet. However, if returning to this section to enable shadowing, you should reset any diff --git a/chapter06/config-sysklogd.xml b/chapter06/config-sysklogd.xml index 95d5f5820..72bc83a62 100644 --- a/chapter06/config-sysklogd.xml +++ b/chapter06/config-sysklogd.xml @@ -5,7 +5,7 @@ <para>Create a new file <filename>/etc/syslog.conf</filename> by running the following:</para> -<para><screen><userinput>cat > /etc/syslog.conf << "EOF"</userinput> +<screen><userinput>cat > /etc/syslog.conf << "EOF"</userinput> # Begin /etc/syslog.conf auth,authpriv.* -/var/log/auth.log @@ -17,7 +17,7 @@ user.* -/var/log/user.log *.emerg * # End /etc/syslog.conf -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> </sect2> diff --git a/chapter06/config-sysvinit.xml b/chapter06/config-sysvinit.xml index 79e273bfb..8b1d9f887 100644 --- a/chapter06/config-sysvinit.xml +++ b/chapter06/config-sysvinit.xml @@ -5,7 +5,7 @@ <para>Create a new file <filename>/etc/inittab</filename> by running the following:</para> -<para><screen><userinput>cat > /etc/inittab << "EOF"</userinput> +<screen><userinput>cat > /etc/inittab << "EOF"</userinput> # Begin /etc/inittab id:3:initdefault: @@ -32,7 +32,7 @@ su:S016:once:/sbin/sulogin 6:2345:respawn:/sbin/agetty tty6 9600 # End /etc/inittab -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> </sect2> diff --git a/chapter06/config-vim.xml b/chapter06/config-vim.xml index 8c92a5063..48a5a05ff 100644 --- a/chapter06/config-vim.xml +++ b/chapter06/config-vim.xml @@ -7,14 +7,14 @@ but we have a high preference to run vim in vim mode (else we wouldn't have included vim in this book, but the original vi). Create the <filename>/root/.vimrc</filename> by running the following:</para> -<para><screen><userinput>cat > /root/.vimrc << "EOF"</userinput> +<screen><userinput>cat > /root/.vimrc << "EOF"</userinput> " Begin /root/.vimrc set nocompatible set bs=2 " End /root/.vimrc -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> </sect2> diff --git a/chapter06/coreutils-inst.xml b/chapter06/coreutils-inst.xml index 7ef5a0a09..1b52c5e8b 100644 --- a/chapter06/coreutils-inst.xml +++ b/chapter06/coreutils-inst.xml @@ -7,28 +7,28 @@ broken, in that the <userinput>-p</userinput> switch always returns "unknown". The following patch fixes this behaviour for Intel architectures:</para> -<para><screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen> <para>We do not want Coreutils to install its version of the <userinput>hostname</userinput> program, because it is inferior to the version provided by Net-tools. Prevent its installation by applying a patch:</para> -<para><screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen> <para>Now prepare Coreutils for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>The <userinput>su</userinput> program from Coreutils wasn't installed in Chapter 5 because it needed <emphasis>root</emphasis> privilege to do so. We're going to need it in a few moments for the test suite. Therefore we work around the problem by installing it now:</para> -<para><screen><userinput>make install-root</userinput></screen></para> +<screen><userinput>make install-root</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. However, this particular test suite makes @@ -38,40 +38,40 @@ choose not to run the test suite, skip down to "Install the package". The following commands will prepare us for the test suite. Create two dummy groups and a dummy user name:</para> -<para><screen><userinput>echo "dummy1:x:1000" >> /etc/group +<screen><userinput>echo "dummy1:x:1000" >> /etc/group echo "dummy2:x:1001:dummy" >> /etc/group -echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen></para> +echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen> <para>Some tests are meant to run as <emphasis>root</emphasis>:</para> -<para><screen><userinput>make check-root</userinput></screen></para> +<screen><userinput>make check-root</userinput></screen> <para>The remainder of the tests are run as the <emphasis>dummy</emphasis> user:</para> -<para><screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen></para> +<screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> <para>Remove the dummy groups and user name:</para> -<para><screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen></para> +<screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And move some programs to their proper locations:</para> -<para><screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin +<screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin mv /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin mv /usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} /bin mv /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su,test} /bin mv /usr/bin/{touch,true,uname,vdir} /bin -mv /usr/bin/chroot /usr/sbin</userinput></screen></para> +mv /usr/bin/chroot /usr/sbin</userinput></screen> <para>Finally, create a few necessary symlinks:</para> -<para><screen><userinput>ln -s test /bin/[ -ln -s ../../bin/install /usr/bin</userinput></screen></para> +<screen><userinput>ln -s test /bin/[ +ln -s ../../bin/install /usr/bin</userinput></screen> </sect2> diff --git a/chapter06/create-password.xml b/chapter06/create-password.xml index 2aa706013..19e592e48 100644 --- a/chapter06/create-password.xml +++ b/chapter06/create-password.xml @@ -4,7 +4,7 @@ <para>Choose a password for user root and set it by running the following command:</para> -<para><screen><userinput>passwd root</userinput></screen></para> +<screen><userinput>passwd root</userinput></screen> </sect2> diff --git a/chapter06/create-utmp.xml b/chapter06/create-utmp.xml index 74d7cfa81..c250db5e7 100644 --- a/chapter06/create-utmp.xml +++ b/chapter06/create-utmp.xml @@ -10,8 +10,8 @@ bad login attempts.</para> <para>Create these files with their proper permissions by running the following commands:</para> -<para><screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} && -chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen></para> +<screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} && +chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen> </sect2> diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 681457828..d08e3671b 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -7,10 +7,10 @@ order to satisfy these programs, we create a number of symbolic links which will be replaced by real files throughout the course of this chapter when we're installing all the software.</para> -<para><screen><userinput>ln -s /tools/bin/{bash,pwd,cat,stty} /bin +<screen><userinput>ln -s /tools/bin/{bash,pwd,cat,stty} /bin ln -s /tools/bin/perl /usr/bin ln -s /tools/lib/libgcc_s.so.1 /usr/lib -ln -s bash /bin/sh</userinput></screen></para> +ln -s bash /bin/sh</userinput></screen> </sect1> diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml index a87526e4d..1b375fd7b 100644 --- a/chapter06/creatingdirs.xml +++ b/chapter06/creatingdirs.xml @@ -6,7 +6,7 @@ a directory tree. Issuing the following commands will create a more or less standard tree:</para> -<para><screen><userinput>mkdir -p /{bin,boot,dev/{pts,shm},etc/opt,home,lib,mnt,proc} +<screen><userinput>mkdir -p /{bin,boot,dev/{pts,shm},etc/opt,home,lib,mnt,proc} mkdir -p /{root,sbin,tmp,usr/local,var,opt} for dirname in /usr /usr/local do @@ -19,14 +19,14 @@ done mkdir /var/{lock,log,mail,run,spool} mkdir -p /var/{tmp,opt,cache,lib/misc,local} mkdir /opt/{bin,doc,include,info} -mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen></para> +mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> <para>Directories are, by default, created with permission mode 755, but this isn't desirable for all directories. We will make two changes: one to the home directory of root, and another to the directories for temporary files.</para> -<para><screen><userinput>chmod 0750 /root -chmod 1777 /tmp /var/tmp</userinput></screen></para> +<screen><userinput>chmod 0750 /root +chmod 1777 /tmp /var/tmp</userinput></screen> <para>The first mode change ensures that not just anybody can enter the <filename class="directory">/root</filename> directory -- the same diff --git a/chapter06/diffutils-inst.xml b/chapter06/diffutils-inst.xml index 49009a290..fc5805f28 100644 --- a/chapter06/diffutils-inst.xml +++ b/chapter06/diffutils-inst.xml @@ -5,15 +5,15 @@ <para>Prepare Diffutils for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/e2fsprogs-inst.xml b/chapter06/e2fsprogs-inst.xml index f28300cef..c5124729d 100644 --- a/chapter06/e2fsprogs-inst.xml +++ b/chapter06/e2fsprogs-inst.xml @@ -6,13 +6,13 @@ <para>It is recommended to build E2fsprogs outside of the source tree:</para> -<para><screen><userinput>mkdir ../e2fsprogs-build -cd ../e2fsprogs-build</userinput></screen></para> +<screen><userinput>mkdir ../e2fsprogs-build +cd ../e2fsprogs-build</userinput></screen> <para>Prepare E2fsprogs for compilation:</para> -<para><screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \ - --enable-elf-shlibs</userinput></screen></para> +<screen><userinput>../e2fsprogs-&e2fsprogs-version;/configure --prefix=/usr --with-root-prefix="" \ + --enable-elf-shlibs</userinput></screen> <para>The meaning of the configure options:</para> @@ -34,21 +34,21 @@ of.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>Install most of the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And install also the shared libraries:</para> -<para><screen><userinput>make install-libs</userinput></screen></para> +<screen><userinput>make install-libs</userinput></screen> </sect2> diff --git a/chapter06/ed-inst.xml b/chapter06/ed-inst.xml index 0cfe4f261..bc0e6cfa9 100644 --- a/chapter06/ed-inst.xml +++ b/chapter06/ed-inst.xml @@ -17,31 +17,31 @@ create temporary files.</para> <para>Apply the patch:</para> -<para><screen><userinput>patch -Np1 -i ../&ed-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&ed-patch;</userinput></screen> <para>Now prepare Ed for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And move the programs to the <filename>/bin</filename> directory, so they can be used in the event that the <filename>/usr</filename> partition is unavailable.</para> -<para><screen><userinput>mv /usr/bin/{ed,red} /bin</userinput></screen></para> +<screen><userinput>mv /usr/bin/{ed,red} /bin</userinput></screen> </sect2> diff --git a/chapter06/file-inst.xml b/chapter06/file-inst.xml index 9c695ad7c..10d578295 100644 --- a/chapter06/file-inst.xml +++ b/chapter06/file-inst.xml @@ -5,15 +5,15 @@ <para>Prepare File for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/findutils-inst.xml b/chapter06/findutils-inst.xml index bee0373f4..e2aa65266 100644 --- a/chapter06/findutils-inst.xml +++ b/chapter06/findutils-inst.xml @@ -5,7 +5,7 @@ <para>Prepare Findutils for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen> <para>By default, the location of the updatedb database is in <filename>/usr/var</filename>. To make the location of @@ -15,16 +15,16 @@ <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/flex-inst.xml b/chapter06/flex-inst.xml index 22d6fca62..2681eb7ce 100644 --- a/chapter06/flex-inst.xml +++ b/chapter06/flex-inst.xml @@ -5,33 +5,33 @@ <para>Prepare Flex for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make bigcheck</userinput></screen></para> +<screen><userinput>make bigcheck</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>There are some packages that expect to find the Lex library in <filename>/usr/lib</filename>. Create a symlink to account for this:</para> -<para><screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen></para> +<screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen> <para>A few programs don't know about <userinput>flex</userinput> yet and try to run its predecessor <userinput>lex</userinput>. To support those programs, create a shell script named <filename>lex</filename> that calls <userinput>flex</userinput> in Lex emulation mode:</para> -<para><screen><userinput>cat > /usr/bin/lex << "EOF"</userinput> +<screen><userinput>cat > /usr/bin/lex << "EOF"</userinput> #!/bin/sh # Begin /usr/bin/lex @@ -39,7 +39,7 @@ exec /usr/bin/flex -l "$@" # End /usr/bin/lex <userinput>EOF -chmod 755 /usr/bin/lex</userinput></screen></para> +chmod 755 /usr/bin/lex</userinput></screen> </sect2> diff --git a/chapter06/gawk-inst.xml b/chapter06/gawk-inst.xml index b804ef845..d57ac539c 100644 --- a/chapter06/gawk-inst.xml +++ b/chapter06/gawk-inst.xml @@ -31,25 +31,25 @@ class="directory">$prefix/share/gawk-3.1.3</filename>) is removed along with its contents on a make uninstall.</para></listitem> </itemizedlist> -<para><screen><userinput>patch -Np1 -i ../&gawk-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&gawk-patch;</userinput></screen> <para>Now prepare Gawk for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/gcc-2953-inst.xml b/chapter06/gcc-2953-inst.xml index 2204eb21a..58a3d5459 100644 --- a/chapter06/gcc-2953-inst.xml +++ b/chapter06/gcc-2953-inst.xml @@ -27,24 +27,24 @@ the system GCC already installed in <filename class="directory">/usr</filename> <para>Apply the patches and make a small adjustment:</para> -<para><screen><userinput>patch -Np1 -i ../&gcc-2953-patch; +<screen><userinput>patch -Np1 -i ../&gcc-2953-patch; patch -Np1 -i ../&gcc-2953-no-fixinc-patch; patch -Np1 -i ../&gcc-2953-returntype-fix-patch; -echo timestamp > gcc/cstamp-h.in</userinput></screen></para> +echo timestamp > gcc/cstamp-h.in</userinput></screen> <para>The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:</para> -<para><screen><userinput>mkdir ../gcc-2-build -cd ../gcc-2-build</userinput></screen></para> +<screen><userinput>mkdir ../gcc-2-build +cd ../gcc-2-build</userinput></screen> <para>Compile and install gcc:</para> -<para><screen><userinput>../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \ +<screen><userinput>../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \ --enable-shared --enable-languages=c \ --enable-threads=posix make bootstrap -make install</userinput></screen></para> +make install</userinput></screen> </sect2> diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index 35e49751d..3b9be4484 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -20,8 +20,8 @@ GCC-testsuite package. The full GCC package contains even more compilers. Instructions for building these can be found at <ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para> -<para><screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch; -patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch; +patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen> <para>The second patch here suppresses the installation of libiberty from GCC, as we will use the one provided by binutils instead. Be careful @@ -31,24 +31,24 @@ here.</para> <para>The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:</para> -<para><screen><userinput>mkdir ../gcc-build -cd ../gcc-build</userinput></screen></para> +<screen><userinput>mkdir ../gcc-build +cd ../gcc-build</userinput></screen> <para>Now prepare GCC for compilation:</para> -<para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \ +<screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \ --enable-shared --enable-threads=posix \ --enable-__cxa_atexit --enable-clocale=gnu \ - --enable-languages=c,c++</userinput></screen></para> + --enable-languages=c,c++</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Test the results, but don't stop at errors (you'll remember the few known ones):</para> -<para><screen><userinput>make -k check</userinput></screen></para> +<screen><userinput>make -k check</userinput></screen> <para>The test suite notes from <xref linkend="ch05-gcc-pass2"/> are still very much appropriate here. Be sure to refer back there should you have any @@ -56,18 +56,18 @@ doubts.</para> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Some packages expect the C PreProcessor to be installed in the <filename>/lib</filename> directory. To honor those packages, create this symlink:</para> -<para><screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen></para> +<screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen> <para>Many packages use the name <userinput>cc</userinput> to call the C compiler. To satisfy those packages, create a symlink:</para> -<para><screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen></para> +<screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen> <note><para>At this point it is strongly recommended to repeat the sanity check we performed earlier in the chapter. Refer back to diff --git a/chapter06/gettext-inst.xml b/chapter06/gettext-inst.xml index 1e24c5494..47c1fcc1c 100644 --- a/chapter06/gettext-inst.xml +++ b/chapter06/gettext-inst.xml @@ -5,21 +5,21 @@ <para>Prepare Gettext for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so (and takes a very long time):</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index 83f614ed4..b45aa55b5 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -20,19 +20,19 @@ flags.</para> <para>Then apply the same patch we used previously:</para> -<para><screen><userinput>patch -Np1 -i ../&glibc-sscanf-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&glibc-sscanf-patch;</userinput></screen> <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> -<para><screen><userinput>mkdir ../glibc-build -cd ../glibc-build</userinput></screen></para> +<screen><userinput>mkdir ../glibc-build +cd ../glibc-build</userinput></screen> <para>Now prepare Glibc for compilation:</para> -<para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \ +<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \ --disable-profile --enable-add-ons \ - --libexecdir=/usr/bin --with-headers=/usr/include</userinput></screen></para> + --libexecdir=/usr/bin --with-headers=/usr/include</userinput></screen> <para>The meaning of the new configure options:</para> @@ -52,23 +52,23 @@ kernel headers into <filename>/usr/include</filename>.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Test the results:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>The test suite notes from <xref linkend="ch05-glibc"/> are still very much appropriate here. Be sure to refer back there should you have any doubts.</para> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>The locales that can make your system respond in a different language weren't installed by the above command. Do it with this:</para> -<para><screen><userinput>make localedata/install-locales</userinput></screen></para> +<screen><userinput>make localedata/install-locales</userinput></screen> <para>An alternative to running the previous command is to install only those locales which you need or want. This can be achieved using the @@ -80,7 +80,7 @@ correctly. The following instructions, in place of the install-locales command above, will install the minimum set of locales necessary for the tests to run successfully:</para> -<para><screen><userinput>mkdir -p /usr/lib/locale +<screen><userinput>mkdir -p /usr/lib/locale localedef -i de_DE -f ISO-8859-1 de_DE localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro localedef -i en_HK -f ISO-8859-1 en_HK @@ -90,15 +90,15 @@ localedef -i es_MX -f ISO-8859-1 es_MX localedef -i fr_FR -f ISO-8859-1 fr_FR localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro localedef -i it_IT -f ISO-8859-1 it_IT -localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen></para> +localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen> <para>Finally, build the linuxthreads man pages:</para> -<para><screen><userinput>make -C ../&glibc-dir;/linuxthreads/man</userinput></screen></para> +<screen><userinput>make -C ../&glibc-dir;/linuxthreads/man</userinput></screen> <para>And install these pages:</para> -<para><screen><userinput>make -C ../&glibc-dir;/linuxthreads/man install</userinput></screen></para> +<screen><userinput>make -C ../&glibc-dir;/linuxthreads/man install</userinput></screen> </sect2> diff --git a/chapter06/grep-inst.xml b/chapter06/grep-inst.xml index 3ec03f474..5957f5e99 100644 --- a/chapter06/grep-inst.xml +++ b/chapter06/grep-inst.xml @@ -5,22 +5,22 @@ <para>Prepare Grep for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \ - --with-included-regex</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --bindir=/bin \ + --with-included-regex</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/groff-inst.xml b/chapter06/groff-inst.xml index eb65a8cf4..7b2afb1a3 100644 --- a/chapter06/groff-inst.xml +++ b/chapter06/groff-inst.xml @@ -10,22 +10,22 @@ live elsewhere, you may want to change <emphasis>PAGE=letter</emphasis> to <para>Prepare Groff for compilation:</para> -<para><screen><userinput>PAGE=letter ./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>PAGE=letter ./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Some documentation programs, such as <userinput>xman</userinput>, will not work work properly without the following symlinks:</para> -<para><screen><userinput>ln -s soelim /usr/bin/zsoelim +<screen><userinput>ln -s soelim /usr/bin/zsoelim ln -s eqn /usr/bin/geqn -ln -s tbl /usr/bin/gtbl</userinput></screen></para> +ln -s tbl /usr/bin/gtbl</userinput></screen> </sect2> diff --git a/chapter06/grub-inst.xml b/chapter06/grub-inst.xml index 66ec995b0..d92791cbe 100644 --- a/chapter06/grub-inst.xml +++ b/chapter06/grub-inst.xml @@ -11,21 +11,21 @@ Grub.</para> <para>Grub needs a patch to fix a compilation problem with GCC-3.3.1</para> -<para><screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&grub-patch;</userinput></screen> <para>Prepare Grub for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install +<screen><userinput>make install mkdir /boot/grub -cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen></para> +cp /usr/share/grub/i386-pc/stage{1,2} /boot/grub</userinput></screen> <para>Replace <filename class="directory">i386-pc</filename> with whatever directory is appropriate for your hardware.</para> diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml index 0bcfbff3b..55ace4eeb 100644 --- a/chapter06/gzip-inst.xml +++ b/chapter06/gzip-inst.xml @@ -5,30 +5,30 @@ <para>Prepare Gzip for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>The gzexe program has the location of the gzip binary hard-wired into it. Because we later change the location of this binary, the following command will place the new location into the gzexe binary.</para> -<para><screen><userinput>cp gzexe.in{,.backup} -sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput></screen></para> +<screen><userinput>cp gzexe.in{,.backup} +sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And move the programs to the <filename class="directory">/bin</filename> directory:</para> -<para><screen><userinput>mv /usr/bin/gzip /bin +<screen><userinput>mv /usr/bin/gzip /bin rm /usr/bin/{gunzip,zcat} ln -s gzip /bin/gunzip ln -s gzip /bin/zcat -ln -s gunzip /bin/uncompress</userinput></screen></para> +ln -s gunzip /bin/uncompress</userinput></screen> </sect2> diff --git a/chapter06/inetutils-inst.xml b/chapter06/inetutils-inst.xml index 6a51c70d0..374e0be8d 100644 --- a/chapter06/inetutils-inst.xml +++ b/chapter06/inetutils-inst.xml @@ -5,11 +5,11 @@ <para>Prepare Inetutils for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --disable-syslogd \ +<screen><userinput>./configure --prefix=/usr --disable-syslogd \ --libexecdir=/usr/sbin --disable-logger \ --sysconfdir=/etc --localstatedir=/var \ --disable-whois --disable-servers -</userinput></screen></para> +</userinput></screen> <para>The meaning of the configure options:</para> @@ -38,15 +38,15 @@ replacements are available for many of these servers.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And move the <userinput>ping</userinput> program to its proper place:</para> -<para><screen><userinput>mv /usr/bin/ping /bin</userinput></screen></para> +<screen><userinput>mv /usr/bin/ping /bin</userinput></screen> </sect2> diff --git a/chapter06/kbd-inst.xml b/chapter06/kbd-inst.xml index e27d55b94..39f9b5cb4 100644 --- a/chapter06/kbd-inst.xml +++ b/chapter06/kbd-inst.xml @@ -7,19 +7,19 @@ <userinput>setvesablank</userinput> and <userinput>getunimap</userinput>) are not installed . The patch enables the compilation of these utilities:</para> -<para><screen><userinput>patch -Np1 -i ../&kbd-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&kbd-patch;</userinput></screen> <para>Now prepare Kbd for compilation:</para> -<para><screen><userinput>./configure</userinput></screen></para> +<screen><userinput>./configure</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/kernel-inst.xml b/chapter06/kernel-inst.xml index 03a9d185c..b3b6f41cd 100644 --- a/chapter06/kernel-inst.xml +++ b/chapter06/kernel-inst.xml @@ -25,7 +25,7 @@ to ensure all files are owned by user <emphasis>root</emphasis>.</para> <para>Prepare for header installation:</para> -<para><screen><userinput>make mrproper</userinput></screen></para> +<screen><userinput>make mrproper</userinput></screen> <para>This ensures that the kernel tree is absolutely clean. The kernel team recommends that this command be issued prior to <emphasis>each</emphasis> kernel @@ -34,28 +34,28 @@ untarring.</para> <para>Create the <filename>include/linux/version.h</filename> file:</para> -<para><screen><userinput>make include/linux/version.h</userinput></screen></para> +<screen><userinput>make include/linux/version.h</userinput></screen> <para>Create the platform-specific <filename>include/asm</filename> symlink:</para> -<para><screen><userinput>make symlinks</userinput></screen></para> +<screen><userinput>make symlinks</userinput></screen> <para>Install the platform specific-header files:</para> -<para><screen><userinput>cp -HR include/asm /usr/include -cp -R include/asm-generic /usr/include</userinput></screen></para> +<screen><userinput>cp -HR include/asm /usr/include +cp -R include/asm-generic /usr/include</userinput></screen> <para>Install the cross-platform kernel header files:</para> -<para><screen><userinput>cp -R include/linux /usr/include</userinput></screen></para> +<screen><userinput>cp -R include/linux /usr/include</userinput></screen> <para>There are a few kernel header files which make use of the <filename>autoconf.h</filename> header file. Since we do not yet configure the kernel, we need to create this file ourselves in order to avoid compilation failures. Create an empty <filename>autoconf.h</filename> file:</para> -<para><screen><userinput>touch /usr/include/linux/autoconf.h</userinput></screen></para> +<screen><userinput>touch /usr/include/linux/autoconf.h</userinput></screen> </sect2> diff --git a/chapter06/less-inst.xml b/chapter06/less-inst.xml index 07765756f..13e23a1a2 100644 --- a/chapter06/less-inst.xml +++ b/chapter06/less-inst.xml @@ -5,7 +5,7 @@ <para>Prepare Less for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc</userinput></screen> <para>The meaning of the configure option:</para> @@ -17,11 +17,11 @@ configuration files.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/lfs-utils-inst.xml b/chapter06/lfs-utils-inst.xml index 5bc4a0d5a..7ebc6744f 100644 --- a/chapter06/lfs-utils-inst.xml +++ b/chapter06/lfs-utils-inst.xml @@ -5,16 +5,16 @@ <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Now copy two supporting files included in the Lfs-Utils tarball to their destination:</para> -<para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para> +<screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen> <para>The <filename>/etc/services</filename> file is used to resolve service numbers to human-readable names, and the <filename>/etc/protocols</filename> diff --git a/chapter06/libtool-inst.xml b/chapter06/libtool-inst.xml index 934057bd2..352c5200c 100644 --- a/chapter06/libtool-inst.xml +++ b/chapter06/libtool-inst.xml @@ -5,20 +5,20 @@ <para>Prepare Libtool for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/m4-inst.xml b/chapter06/m4-inst.xml index 5c10def53..57e137bf8 100644 --- a/chapter06/m4-inst.xml +++ b/chapter06/m4-inst.xml @@ -5,21 +5,21 @@ <para>Prepare M4 for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/make-inst.xml b/chapter06/make-inst.xml index 6d0d57cca..c5a33444d 100644 --- a/chapter06/make-inst.xml +++ b/chapter06/make-inst.xml @@ -5,21 +5,21 @@ <para>Prepare Make for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index fd8b087dd..1beaec722 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -9,13 +9,13 @@ the file only contains a single shell script.</para> <para>Install the MAKEDEV script:</para> -<para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEV -chmod 754 /dev/MAKEDEV</userinput></screen></para> +<screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 > /dev/MAKEDEV +chmod 754 /dev/MAKEDEV</userinput></screen> <para>Run the script to create the device files:</para> -<para><screen><userinput>cd /dev -./MAKEDEV -v generic-nopty</userinput></screen></para> +<screen><userinput>cd /dev +./MAKEDEV -v generic-nopty</userinput></screen> <para>The meaning of the option:</para> @@ -40,7 +40,7 @@ the "Mounting the proc and devpts file systems" section, now is the time to try the alternatives. If your kernel supports the devfs file system, run the following command to mount devfs:</para> -<para><screen><userinput>mount -t devfs devfs /dev</userinput></screen></para> +<screen><userinput>mount -t devfs devfs /dev</userinput></screen> <para>This will mount the devfs file system over the top of the new static <filename>/dev</filename> structure. This poses no problems, as the device nodes diff --git a/chapter06/man-inst.xml b/chapter06/man-inst.xml index 830ba1532..1d3b84a62 100644 --- a/chapter06/man-inst.xml +++ b/chapter06/man-inst.xml @@ -9,23 +9,23 @@ <filename>man.conf</filename> file to prevent redundant results when using programs such as <userinput>whatis</userinput>:</para> -<para><screen><userinput>patch -Np1 -i ../&man-manpath-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&man-manpath-patch;</userinput></screen> <para>The second patch adds the <emphasis>-R</emphasis> option to the <emphasis>PAGER</emphasis> variable so that escape sequences are handled properly:</para> -<para><screen><userinput>patch -Np1 -i ../&man-pager-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&man-pager-patch;</userinput></screen> <para>The third and last patch prevents a problem when man pages not formatted with more than 80 columns are used in conjunction with recent releases of <userinput>groff</userinput>:</para> -<para><screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen> <para>Now prepare Man for compilation:</para> -<para><screen><userinput>./configure -default -confdir=/etc</userinput></screen></para> +<screen><userinput>./configure -default -confdir=/etc</userinput></screen> <para>The meaning of the configure options:</para> @@ -44,11 +44,11 @@ configuration file in the <filename>/etc</filename> directory.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <note><para>If you wish to disable SGR escape sequences, you should edit the man.conf file and add the <userinput>-c</userinput> argument diff --git a/chapter06/manpages-inst.xml b/chapter06/manpages-inst.xml index bcf46b2d8..587c681e3 100644 --- a/chapter06/manpages-inst.xml +++ b/chapter06/manpages-inst.xml @@ -5,7 +5,7 @@ <para>Install Man-pages by running:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/modutils-inst.xml b/chapter06/modutils-inst.xml index 42a3e9e0b..71fd6e079 100644 --- a/chapter06/modutils-inst.xml +++ b/chapter06/modutils-inst.xml @@ -5,15 +5,15 @@ <para>Prepare Modutils for compilation:</para> -<para><screen><userinput>./configure</userinput></screen></para> +<screen><userinput>./configure</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/mountproc.xml b/chapter06/mountproc.xml index 380a2ec5c..5851c9cf7 100644 --- a/chapter06/mountproc.xml +++ b/chapter06/mountproc.xml @@ -17,7 +17,7 @@ status of the system.</para> <filename class="directory">/proc</filename> by running the following command:</para> -<para><screen><userinput>mount proc /proc -t proc</userinput></screen></para> +<screen><userinput>mount proc /proc -t proc</userinput></screen> <para>You might get warning messages from the mount command, such as these:</para> @@ -35,7 +35,7 @@ now the most common way for pseudo terminals (PTYs) to be implemented.</para> <para>The devpts file system is mounted on <filename class="directory">/dev/pts</filename> by running:</para> -<para><screen><userinput>mount devpts /dev/pts -t devpts</userinput></screen></para> +<screen><userinput>mount devpts /dev/pts -t devpts</userinput></screen> <para>Should this command fail with an error to the effect of:</para> diff --git a/chapter06/ncurses-inst.xml b/chapter06/ncurses-inst.xml index 251a901c8..e974379ee 100644 --- a/chapter06/ncurses-inst.xml +++ b/chapter06/ncurses-inst.xml @@ -5,8 +5,8 @@ <para>First fix two tiny bugs:</para> -<para><screen><userinput>patch -Np1 -i ../&ncurses-etip-patch; -patch -Np1 -i ../&ncurses-vsscanf-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&ncurses-etip-patch; +patch -Np1 -i ../&ncurses-vsscanf-patch;</userinput></screen> <para>The first patch corrects the <filename>etip.h</filename> header file, and the second patch prevents some compiler warnings on the use of deprecated @@ -14,35 +14,35 @@ headers.</para> <para>Now prepare Ncurses for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --with-shared \ - --without-debug</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --with-shared \ + --without-debug</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Give the Ncurses libraries execute permissions:</para> -<para><screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen></para> +<screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen> <para>And fix a library that shouldn't be executable:</para> -<para><screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen></para> +<screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen> <para>Move the libraries to the <filename>/lib</filename> directory, where they're expected to reside:</para> -<para><screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen></para> +<screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen> <para>Since the libraries have been moved to <filename>/lib</filename>, a few symlinks are currently pointing towards non-existing files. Recreate those symlinks:</para> -<para><screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so -ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen></para> +<screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so +ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen> </sect2> diff --git a/chapter06/nettools-inst.xml b/chapter06/nettools-inst.xml index d298c320b..28b6f98b5 100644 --- a/chapter06/nettools-inst.xml +++ b/chapter06/nettools-inst.xml @@ -16,11 +16,11 @@ but it's up to the kernel to make the protocols available.</para> <para>The following patch will fix a small syntax problem with the source for the mii-tool binary:</para> -<para><screen><userinput>patch -Np1 -i ../&net-tools-mii-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&net-tools-mii-patch;</userinput></screen> <para>Prepare Net-tools for compilation with:</para> -<para><screen><userinput>make config</userinput></screen></para> +<screen><userinput>make config</userinput></screen> <para>If you intend to accept the default settings, you may skip the questions generated by <emphasis>make config</emphasis> by running @@ -28,11 +28,11 @@ questions generated by <emphasis>make config</emphasis> by running <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make update</userinput></screen></para> +<screen><userinput>make update</userinput></screen> </sect2> diff --git a/chapter06/patch-inst.xml b/chapter06/patch-inst.xml index 08b78c894..00eb64506 100644 --- a/chapter06/patch-inst.xml +++ b/chapter06/patch-inst.xml @@ -5,15 +5,15 @@ <para>Prepare Patch for compilation:</para> -<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/perl-inst.xml b/chapter06/perl-inst.xml index 3b8788879..e7a594f13 100644 --- a/chapter06/perl-inst.xml +++ b/chapter06/perl-inst.xml @@ -5,7 +5,7 @@ <para>Prepare Perl for compilation:</para> -<para><screen><userinput>./configure.gnu --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure.gnu --prefix=/usr</userinput></screen> <para>If you want more control over the way Perl sets itself up to be built, you can run the interactive <userinput>Configure</userinput> script @@ -15,22 +15,22 @@ above.</para> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, you first have to create a basic <filename>/etc/hosts</filename> file, needed by a couple of tests to resolve the name <emphasis>localhost</emphasis>:</para> -<para><screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen></para> +<screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen> <para>Now run the tests, if you wish:</para> -<para><screen><userinput>make test</userinput></screen></para> +<screen><userinput>make test</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/procinfo-inst.xml b/chapter06/procinfo-inst.xml index 97d5ae317..35f58509f 100644 --- a/chapter06/procinfo-inst.xml +++ b/chapter06/procinfo-inst.xml @@ -5,7 +5,7 @@ <para>Compile Procinfo:</para> -<para><screen><userinput>make LDLIBS=-lncurses</userinput></screen></para> +<screen><userinput>make LDLIBS=-lncurses</userinput></screen> <para>The <emphasis>-lncurses</emphasis> switch overwrites the default switch, <emphasis>-ltermcap</emphasis>. This is done @@ -13,7 +13,7 @@ because libtermcap is declared obsolete in favor of libncurses.</para> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/procps-inst.xml b/chapter06/procps-inst.xml index 3e8aa1035..e7a651a9f 100644 --- a/chapter06/procps-inst.xml +++ b/chapter06/procps-inst.xml @@ -6,19 +6,19 @@ <para>First fix a locale problem that can crash <userinput>w</userinput> under certain locale settings:</para> -<para><screen><userinput>patch -Np1 -i ../&procps-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&procps-patch;</userinput></screen> <para>Now compile Procps:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And remove a spurious library link:</para> -<para><screen><userinput>rm /lib/libproc.so</userinput></screen></para> +<screen><userinput>rm /lib/libproc.so</userinput></screen> </sect2> diff --git a/chapter06/psmisc-inst.xml b/chapter06/psmisc-inst.xml index 59780e6f6..740a808e1 100644 --- a/chapter06/psmisc-inst.xml +++ b/chapter06/psmisc-inst.xml @@ -5,7 +5,7 @@ <para>Prepare Psmisc for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen> <para>The meaning of the configure option:</para> @@ -19,11 +19,11 @@ filesystem isn't mounted.</para></listitem> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>By default Psmisc's <userinput>pidof</userinput> program isn't installed. Generally, this isn't a problem because we later install the Sysvinit package, @@ -31,7 +31,7 @@ which provides a better <userinput>pidof</userinput> program. But if you're not going to use Sysvinit, you should complete the installation of Psmisc by creating the following symlink:</para> -<para><screen><userinput>ln -s killall /bin/pidof</userinput></screen></para> +<screen><userinput>ln -s killall /bin/pidof</userinput></screen> </sect2> diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 5b20f9b90..24767482a 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -9,9 +9,9 @@ name "root" to be recognized, there need to be relevant entries in the <para>Create the <filename>/etc/passwd</filename> file by running the following command:</para> -<para><screen><userinput>cat > /etc/passwd << "EOF"</userinput> +<screen><userinput>cat > /etc/passwd << "EOF"</userinput> root:x:0:0:root:/root:/bin/bash -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>The actual password for <emphasis>root</emphasis> (the "x" here is just a placeholder) will be set later.</para> @@ -19,7 +19,7 @@ placeholder) will be set later.</para> <para>Create the <filename>/etc/group</filename> file by running the following command:</para> -<para><screen><userinput>cat > /etc/group << "EOF"</userinput> +<screen><userinput>cat > /etc/group << "EOF"</userinput> root:x:0: bin:x:1: sys:x:2: @@ -32,7 +32,7 @@ disk:x:8: lp:x:9: dialout:x:10: audio:x:11: -<userinput>EOF</userinput></screen></para> +<userinput>EOF</userinput></screen> <para>The created groups aren't part of any standard -- they are the groups that the MAKEDEV script in the next section uses. Besides the group "root", the @@ -47,7 +47,7 @@ resolution will start working immediately after the created, because we installed a full Glibc in Chapter 5. This will get rid of the <quote>I have no name!</quote> prompt.</para> -<para><screen><userinput>exec /tools/bin/bash --login +h</userinput></screen></para> +<screen><userinput>exec /tools/bin/bash --login +h</userinput></screen> </sect1> diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml index a02bdce02..60f65bb8e 100644 --- a/chapter06/revisedchroot.xml +++ b/chapter06/revisedchroot.xml @@ -12,10 +12,10 @@ DejaGnu, which were used for running tests on the software as it was built. If you want to use these programs later, you will need to compile and install them on your new LFS system.</para> -<para><screen><userinput>chroot $LFS /usr/bin/env -i \ +<screen><userinput>chroot $LFS /usr/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ - /bin/bash --login</userinput></screen></para> + /bin/bash --login</userinput></screen> </sect1> diff --git a/chapter06/sed-inst.xml b/chapter06/sed-inst.xml index c45dba0de..4ea0a401f 100644 --- a/chapter06/sed-inst.xml +++ b/chapter06/sed-inst.xml @@ -5,21 +5,21 @@ <para>Prepare Sed for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/shadowpwd-inst.xml b/chapter06/shadowpwd-inst.xml index 05acd19bf..c6ef2893b 100644 --- a/chapter06/shadowpwd-inst.xml +++ b/chapter06/shadowpwd-inst.xml @@ -14,8 +14,8 @@ proper place, create them now, with their proper permissions:</para> <para>Create these files with their proper permissions by running the following commands:</para> -<para><screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} -chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen></para> +<screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} +chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen> <para>The <filename>/var/run/utmp</filename> file lists the users that are currently logged in, the <filename>/var/log/wtmp</filename> file who @@ -33,30 +33,30 @@ the package incorrectly assumes it is going to be located at <filename>/bin/passwd</filename>. To work around this bug, create a dummy <filename>passwd</filename> file, so that it gets hard-wired properly:</para> -<para><screen><userinput>touch /usr/bin/passwd</userinput></screen></para> +<screen><userinput>touch /usr/bin/passwd</userinput></screen> <para>The current shadow suite has a problem in the newgrp command which causes it to fail. The following patch (also appearing in Shadow's CVS code) fixes this problem.</para> -<para><screen><userinput>patch -Np1 -i ../&shadow-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&shadow-patch;</userinput></screen> <para>Now prepare Shadow for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib --enable-shared</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --libdir=/usr/lib --enable-shared</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Shadow uses two files to configure authentication settings for the system. Install these two config files:</para> -<para><screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen></para> +<screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen> <para>We want to change the password method to enable MD5 passwords which are theoretically more secure than the default "crypt" method and also allow @@ -66,9 +66,9 @@ mailboxes to the current location at <filename class="directory">/var/mail</filename>. We do this by changing the relevant configuration file while copying it to its destination:</para> -<para><screen><userinput>sed -e 's%/var/spool/mail%/var/mail%' \ +<screen><userinput>sed -e 's%/var/spool/mail%/var/mail%' \ -e 's%#MD5_CRYPT_ENAB.no%MD5_CRYPT_ENAB yes%' \ - etc/login.defs.linux > /etc/login.defs</userinput></screen></para> + etc/login.defs.linux > /etc/login.defs</userinput></screen> <note><para>Be extra careful when typing all of the above. It is probably safer to cut-and-paste it rather than try and type it all in.</para></note> @@ -77,32 +77,32 @@ to cut-and-paste it rather than try and type it all in.</para></note> <userinput>vigr</userinput> program should exist too. Since the installation procedure doesn't create this program, create a symlink manually:</para> -<para><screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen></para> +<screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen> <para>As the <filename>/bin/vipw</filename> symlink is redundant (and even pointing to a non-existent file), remove it:</para> -<para><screen><userinput>rm /bin/vipw</userinput></screen></para> +<screen><userinput>rm /bin/vipw</userinput></screen> <para>Now move the <userinput>sg</userinput> program to its proper place:</para> -<para><screen><userinput>mv /bin/sg /usr/bin</userinput></screen></para> +<screen><userinput>mv /bin/sg /usr/bin</userinput></screen> <para>And move Shadow's dynamic libraries to a more appropriate location:</para> -<para><screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen></para> +<screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen> <para>As some packages expect to find the just-moved libraries in <filename>/usr/lib</filename>, create the following symlinks:</para> -<para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so -ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para> +<screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so +ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen> <para>Coreutils has already installed a <userinput>groups</userinput> program in <filename>/usr/bin</filename>. If you wish, you can remove the one installed by Shadow:</para> -<para><screen><userinput>rm /bin/groups</userinput></screen></para> +<screen><userinput>rm /bin/groups</userinput></screen> </sect2> diff --git a/chapter06/sysklogd-inst.xml b/chapter06/sysklogd-inst.xml index 8fc24d65a..3ce0f9097 100644 --- a/chapter06/sysklogd-inst.xml +++ b/chapter06/sysklogd-inst.xml @@ -5,11 +5,11 @@ <para>Compile Sysklogd:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/sysvinit-inst.xml b/chapter06/sysvinit-inst.xml index a0af97a88..08f24bf9c 100644 --- a/chapter06/sysvinit-inst.xml +++ b/chapter06/sysvinit-inst.xml @@ -13,17 +13,17 @@ signal".</para> <para>Edit the halt message:</para> -<para><screen><userinput>cp src/init.c{,.backup} +<screen><userinput>cp src/init.c{,.backup} sed 's/Sending processes/Sending processes started by init/g' \ - src/init.c.backup > src/init.c</userinput></screen></para> + src/init.c.backup > src/init.c</userinput></screen> <para>Compile Sysvinit:</para> -<para><screen><userinput>make -C src</userinput></screen></para> +<screen><userinput>make -C src</userinput></screen> <para>And install it:</para> -<para><screen><userinput>make -C src install</userinput></screen></para> +<screen><userinput>make -C src install</userinput></screen> </sect2> diff --git a/chapter06/tar-inst.xml b/chapter06/tar-inst.xml index 91967c2f3..035682096 100644 --- a/chapter06/tar-inst.xml +++ b/chapter06/tar-inst.xml @@ -5,22 +5,22 @@ <para>Prepare Tar for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \ - --libexecdir=/usr/bin</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --bindir=/bin \ + --libexecdir=/usr/bin</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> </sect2> diff --git a/chapter06/texinfo-inst.xml b/chapter06/texinfo-inst.xml index 2fd1fed62..16c391535 100644 --- a/chapter06/texinfo-inst.xml +++ b/chapter06/texinfo-inst.xml @@ -5,25 +5,25 @@ <para>Prepare Texinfo for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make check</userinput></screen></para> +<screen><userinput>make check</userinput></screen> <para>Install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>And optionally install the components belonging in a TeX installation:</para> -<para><screen><userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen></para> +<screen><userinput>make TEXMF=/usr/share/texmf install-tex</userinput></screen> <para>The meaning of the make option:</para> diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml index ee928f5a8..7bfd91bff 100644 --- a/chapter06/utillinux-inst.xml +++ b/chapter06/utillinux-inst.xml @@ -8,10 +8,10 @@ instead of the usual <filename>/etc</filename>, as the location for the <filename>adjtime</filename> file. To make the <userinput>hwclock</userinput> program FHS-compliant, run the following:</para> -<para><screen><userinput>cp hwclock/hwclock.c{,.backup} +<screen><userinput>cp hwclock/hwclock.c{,.backup} sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \ hwclock/hwclock.c.backup > hwclock/hwclock.c -mkdir -p /var/lib/hwclock</userinput></screen></para> +mkdir -p /var/lib/hwclock</userinput></screen> </sect2> @@ -20,11 +20,11 @@ mkdir -p /var/lib/hwclock</userinput></screen></para> <para>Prepare Util-linux for compilation:</para> -<para><screen><userinput>./configure</userinput></screen></para> +<screen><userinput>./configure</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make HAVE_SLN=yes</userinput></screen></para> +<screen><userinput>make HAVE_SLN=yes</userinput></screen> <para>The meaning of the make parameter:</para> @@ -37,7 +37,7 @@ again.</para></listitem> <para>And install the package:</para> -<para><screen><userinput>make HAVE_SLN=yes install</userinput></screen></para> +<screen><userinput>make HAVE_SLN=yes install</userinput></screen> </sect2> diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml index bc42df3af..28e261969 100644 --- a/chapter06/vim-inst.xml +++ b/chapter06/vim-inst.xml @@ -7,25 +7,25 @@ <filename>gvimrc</filename> files to <filename class="directory">/etc</filename>.</para> -<para><screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h -echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen></para> +<screen><userinput>echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h +echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h</userinput></screen> <para>Now prepare Vim for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Vim can run in old-fashioned <emphasis>vi</emphasis> mode by creating a symlink, which may be created with the following command:</para> -<para><screen><userinput>ln -s vim /usr/bin/vi</userinput></screen></para> +<screen><userinput>ln -s vim /usr/bin/vi</userinput></screen> <para>If you plan to install the X Window system on your LFS system, you might want to re-compile Vim after you have installed X. Vim diff --git a/chapter06/zlib-inst.xml b/chapter06/zlib-inst.xml index bef73c94c..c142e51eb 100644 --- a/chapter06/zlib-inst.xml +++ b/chapter06/zlib-inst.xml @@ -7,11 +7,11 @@ <emphasis>gzprintf()</emphasis> function, that, though difficult to take advantage of, should be taken care of by applying this patch:</para> -<para><screen><userinput>patch -Np1 -i ../&zlib-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&zlib-patch;</userinput></screen> <para>Now prepare Zlib for compilation:</para> -<para><screen><userinput>./configure --prefix=/usr --shared</userinput></screen></para> +<screen><userinput>./configure --prefix=/usr --shared</userinput></screen> <para>Note: Zlib is known to build its shared library incorrectly if a CFLAGS is specified in the environment. If you are using your own CFLAGS variables, @@ -20,26 +20,26 @@ this stage, and remove it afterwards.</para> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Install the shared libraries:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Now also build the non-shared libraries:</para> -<para><screen><userinput>make clean +<screen><userinput>make clean ./configure --prefix=/usr -make</userinput></screen></para> +make</userinput></screen> <para>This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:</para> -<para><screen><userinput>make test</userinput></screen></para> +<screen><userinput>make test</userinput></screen> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>The shared Zlib library should be installed in the <filename>/lib</filename> directory. That way, in the event @@ -47,18 +47,18 @@ that you must boot without the <filename>/usr</filename> directory, vital system programs will still have access to the library:</para> -<para><screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen></para> +<screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen> <para>The <filename>/usr/lib/libz.so</filename> symlink is linked to a file which no longer exists, because we moved it. Create a symbolic link to the new location of the library:</para> -<para><screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen></para> +<screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen> <para>Zlib does not install its manual page. Issue the following command to install this documentation:</para> -<para><screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen></para> +<screen><userinput>cp zlib.3 /usr/share/man/man3</userinput></screen> </sect2> |