Changed literallayout's to screen's

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@771 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2001-07-10 15:06:31 +00:00
parent b4ffa369d6
commit 3229c6b8a2
85 changed files with 778 additions and 596 deletions

View File

@ -47,13 +47,15 @@ This form of text is used for hyperlinks, both within the book and to external
pages such as HowTo's,download locations and websites etc. pages such as HowTo's,download locations and websites etc.
</para></blockquote> </para></blockquote>
<literallayout> <para>
<screen>
<userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"</userinput> <userinput>cat &gt; $LFS/etc/group &lt;&lt; "EOF"</userinput>
root:x:0: root:x:0:
bin:x:1: bin:x:1:
...... ......
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<blockquote><para> <blockquote><para>
This type of section is used mainly when creating configuration files. The This type of section is used mainly when creating configuration files. The

View File

@ -5,11 +5,13 @@
Install Autoconf by running the following commands: Install Autoconf by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,10 +5,12 @@
Install Automake by running the following commands: Install Automake by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,24 +5,26 @@
Install Bash by running the following commands: Install Bash by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>./configure --prefix=/usr --with-curses <screen>
&amp;&amp;</userinput> <userinput>./configure --prefix=/usr --with-curses &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>logout</userinput> <userinput>logout</userinput>
<userinput>mv $LFS/usr/bin/bash $LFS/usr/bin/bashbug <userinput>mv $LFS/usr/bin/bash $LFS/usr/bin/bashbug $LFS/bin</userinput>
$LFS/bin</userinput> </screen>
</literallayout></blockquote> </para>
<para> <para>
The static bash is replaced with the dynamic bash and the chroot'ed The static bash is replaced with the dynamic bash and the chroot'ed
environment is re-entered by running: environment is re-entered by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
&c6-chrootcmd; &c6-chrootcmd;
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -14,7 +14,8 @@ Create a new file <filename>$LFS/root/.bash_profile</filename>
by running the following. by running the following.
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; $LFS/root/.bash_profile &lt;&lt; "EOF"</userinput> <userinput>cat &gt; $LFS/root/.bash_profile &lt;&lt; "EOF"</userinput>
# Begin /root/.bash_profile # Begin /root/.bash_profile
@ -25,7 +26,8 @@ export PS1 PATH
# End /root/.bash_profile # End /root/.bash_profile
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
The PS1 variable is an environment variable that controls the appearance of The PS1 variable is an environment variable that controls the appearance of

View File

@ -5,10 +5,12 @@
Install Bin86 by running the following commands: Install Bin86 by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make PREFIX=/usr install</userinput> <userinput>make PREFIX=/usr install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -4,12 +4,14 @@
Install Binutils by running the following commands: Install Binutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --enable-shared &amp;&amp;</userinput> <userinput>./configure --prefix=/usr --enable-shared &amp;&amp;</userinput>
<userinput>make -e tooldir=/usr &amp;&amp;</userinput> <userinput>make -e tooldir=/usr &amp;&amp;</userinput>
<userinput>make -e tooldir=/usr install &amp;&amp;</userinput> <userinput>make -e tooldir=/usr install &amp;&amp;</userinput>
<userinput>make -e tooldir=/usr install-info</userinput> <userinput>make -e tooldir=/usr install-info</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,13 +5,14 @@
Install Bison by running the following commands: Install Bison by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr \</userinput> <userinput>./configure --prefix=/usr \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--datadir=/usr/share/bison <userinput>&nbsp;&nbsp;&nbsp;--datadir=/usr/share/bison &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Some programs don't know about bison and try to find the yacc program Some programs don't know about bison and try to find the yacc program
@ -25,7 +26,8 @@ Create a new file <filename>/usr/bin/yacc</filename> by running the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /usr/bin/yacc &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /usr/bin/yacc &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /usr/bin/yacc # Begin /usr/bin/yacc
@ -35,7 +37,8 @@ following:
# End /usr/bin/yacc # End /usr/bin/yacc
<userinput>EOF</userinput> <userinput>EOF</userinput>
<userinput>chmod 755 /usr/bin/yacc</userinput> <userinput>chmod 755 /usr/bin/yacc</userinput>
</literallayout> </screen>
</para>
</sect2> </sect2>

View File

@ -5,7 +5,8 @@
Install Bzip2 by running the following commands: Install Bzip2 by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make -f Makefile-libbz2_so &amp;&amp;</userinput> <userinput>make -f Makefile-libbz2_so &amp;&amp;</userinput>
<userinput>make bzip2recover libbz2.a &amp;&amp;</userinput> <userinput>make bzip2recover libbz2.a &amp;&amp;</userinput>
<userinput>cp bzip2-shared /bin/bzip2 &amp;&amp;</userinput> <userinput>cp bzip2-shared /bin/bzip2 &amp;&amp;</userinput>
@ -21,7 +22,8 @@ Install Bzip2 by running the following commands:
<userinput>ln -s bzip2.1 bunzip2.1 &amp;&amp;</userinput> <userinput>ln -s bzip2.1 bunzip2.1 &amp;&amp;</userinput>
<userinput>ln -s bzip2.1 bzcat.1 &amp;&amp;</userinput> <userinput>ln -s bzip2.1 bzcat.1 &amp;&amp;</userinput>
<userinput>ln -s bzip2.1 bzip2recover.1</userinput> <userinput>ln -s bzip2.1 bzip2recover.1</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Although it's not strictly a part of a basic LFS system it's worth Although it's not strictly a part of a basic LFS system it's worth

View File

@ -13,9 +13,11 @@ everything a user does will be restricted to the LFS partition (since / is
actually /mnt/lfs but the shell doesn't know that). actually /mnt/lfs but the shell doesn't know that).
</para> </para>
<blockquote><literallayout> <para>
<screen>
&c6-chrootcmd; &c6-chrootcmd;
</literallayout></blockquote> </screen>
</para>
<para> <para>
The -i option will clear all environment variables for as long as you The -i option will clear all environment variables for as long as you

View File

@ -1,4 +1,3 @@
<userinput>cd $LFS &amp;&amp;</userinput> <userinput>cd $LFS &amp;&amp;</userinput>
<userinput>chroot $LFS /usr/bin/env -i HOME=/root <userinput>chroot $LFS /usr/bin/env -i HOME=/root \</userinput>
\</userinput>
<userinput>&nbsp;&nbsp;&nbsp;TERM=$TERM /bin/bash --login</userinput> <userinput>&nbsp;&nbsp;&nbsp;TERM=$TERM /bin/bash --login</userinput>

View File

@ -12,7 +12,8 @@ Create a new file <filename>/etc/nsswitch.conf</filename> by running the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"</userinput>
# Begin /etc/nsswitch.conf # Begin /etc/nsswitch.conf
@ -34,7 +35,8 @@ netgroup: db files
# End /etc/nsswitch.conf # End /etc/nsswitch.conf
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
The <userinput>tzselect</userinput> script has to be run and the questions The <userinput>tzselect</userinput> script has to be run and the questions
@ -48,11 +50,12 @@ Create the <filename class="directory">/etc/localtime</filename> symlink
by running: by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd /etc &amp;&amp;</userinput> <userinput>cd /etc &amp;&amp;</userinput>
<userinput>ln -sf ../usr/share/zoneinfo/&lt;tzselect's output&gt; <userinput>ln -sf ../usr/share/zoneinfo/&lt;tzselect's output&gt; localtime</userinput>
localtime</userinput> </screen>
</literallayout></blockquote> </para>
<para> <para>
tzselect's output can be something like <emphasis>EST5EDT</emphasis> or tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
@ -63,18 +66,21 @@ tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
The symlink you'd create with that information would be: The symlink you'd create with that information would be:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput> <userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Or: Or:
</para> </para>
<blockquote><literallayout> <para>
<userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime <screen>
</userinput> <userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime </userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -17,7 +17,8 @@ Create a new file <filename>/etc/ld.so.conf</filename> by running the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"</userinput>
# Begin /etc/ld.so.conf # Begin /etc/ld.so.conf
@ -27,7 +28,8 @@ following:
# End /etc/ld.so.conf # End /etc/ld.so.conf
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
Although it's not necessary to add the Although it's not necessary to add the

View File

@ -15,9 +15,11 @@ be able to work with shadow'ed passwords.
To enable shadow'ed passwords, run the following command: To enable shadow'ed passwords, run the following command:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>/usr/sbin/pwconv</userinput> <userinput>/usr/sbin/pwconv</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,7 +5,8 @@ Create a new file <filename>/etc/syslog.conf</filename> by running the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/syslog.conf &lt;&lt; "EOF"</userinput>
# Begin /etc/syslog.conf # Begin /etc/syslog.conf
@ -19,7 +20,8 @@ user.* -/var/log/user.log
# End /etc/syslog.conf # End /etc/syslog.conf
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect2> </sect2>

View File

@ -5,7 +5,8 @@ Create a new file <filename>/etc/inittab</filename> by running the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"</userinput>
# Begin /etc/inittab # Begin /etc/inittab
@ -34,7 +35,8 @@ su:S016:respawn:/sbin/sulogin
# End /etc/inittab # End /etc/inittab
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect2> </sect2>

View File

@ -7,7 +7,8 @@ have included Vim in this book but the original Vi). Create the
<filename>/root/.vimrc</filename> by running the following: <filename>/root/.vimrc</filename> by running the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /root/.vimrc &lt;&lt; "EOF"</userinput>
" Begin /root/.vimrc " Begin /root/.vimrc
@ -16,7 +17,8 @@ set bs=2
" End /root/.vimrc " End /root/.vimrc
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect2> </sect2>

View File

@ -6,9 +6,11 @@ Choose a password for user root and create it by running the following
command: command:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>passwd root</userinput> <userinput>passwd root</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -15,14 +15,14 @@ Create these files with their proper permissions by running the
following commands: following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>touch /var/run/utmp /var/log/wtmp \</userinput> <userinput>touch /var/run/utmp /var/log/wtmp \</userinput>
<userinput>&nbsp;&nbsp;&nbsp; /var/log/btmp <userinput>&nbsp;&nbsp;&nbsp; /var/log/btmp /var/log/lastlog &amp;&amp;</userinput>
/var/log/lastlog &amp;&amp;</userinput>
<userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput> <userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;/var/log/btmp /var/log/lastlog <userinput>&nbsp;&nbsp;&nbsp;/var/log/btmp /var/log/lastlog</userinput>
</userinput> </screen>
</literallayout></blockquote> </para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Diffutils by running the following commands: Install Diffutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -10,14 +10,16 @@ Please note that the empty --with-root-prefix= option below is supposed
to be like this. We did not forget to supply a value there. to be like this. We did not forget to supply a value there.
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --with-root-prefix= \</userinput> <userinput>./configure --prefix=/usr --with-root-prefix= \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--enable-elf-shlibs &amp;&amp;</userinput> <userinput>&nbsp;&nbsp;&nbsp;--enable-elf-shlibs &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>make install-libs &amp;&amp;</userinput> <userinput>make install-libs &amp;&amp;</userinput>
<userinput>mv /usr/sbin/mklost+found /sbin</userinput> <userinput>mv /usr/sbin/mklost+found /sbin</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,12 +5,14 @@
Install Ed by running the following commands: Install Ed by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput> <userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,12 +5,13 @@
Install File by running the following commands: Install File by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>./configure --prefix=/usr <screen>
--datadir=/usr/share/misc &amp;&amp;</userinput> <userinput>./configure --prefix=/usr --datadir=/usr/share/misc &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
File uses magic numbers to determine a file type. These magic numbers come with File uses magic numbers to determine a file type. These magic numbers come with
@ -26,9 +27,11 @@ compile this file, because it's faster, fixes that annoying warning and is how
it was meant to be: it was meant to be:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>file -C</userinput> <userinput>file -C</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,13 +5,14 @@
Install Fileutils by running the following commands: Install Fileutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --bindir=/bin \</userinput> <userinput>./configure --prefix=/usr --bindir=/bin \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/bin <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/bin &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -9,12 +9,14 @@ Before Findutils is installed the findutils patch file has to be unpacked.
Install Findutils by running the following commands: Install Findutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>patch -Np1 -i ../findutils-4.1.patch &amp;&amp;</userinput> <userinput>patch -Np1 -i ../findutils-4.1.patch &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make libexecdir=/usr/bin install</userinput> <userinput>make libexecdir=/usr/bin install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,13 +5,15 @@
Install Flex by running the following commands: Install Flex by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput> <userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>ln -s flex lex</userinput> <userinput>ln -s flex lex</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -15,17 +15,17 @@ Note: the build of other compilers is not tested by the people
who actively work on LFS. who actively work on LFS.
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>mkdir /usr/src/gcc-build &amp;&amp;</userinput> <userinput>mkdir /usr/src/gcc-build &amp;&amp;</userinput>
<userinput>cd /usr/src/gcc-build &amp;&amp;</userinput> <userinput>cd /usr/src/gcc-build &amp;&amp;</userinput>
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput> <userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--with-slibdir=/lib <userinput>&nbsp;&nbsp;&nbsp;--with-slibdir=/lib --enable-shared \</userinput>
--enable-shared \</userinput> <userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ &amp;&amp;</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++
&amp;&amp;</userinput>
<userinput>make bootstrap &amp;&amp;</userinput> <userinput>make bootstrap &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Gettext by running the following commands: Install Gettext by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -10,34 +10,28 @@ Unpack the glibc-linuxthreads in the glibc-&glibc-version; directory, not in
Install Glibc by running the following commands: Install Glibc by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>mknod -m 0666 /dev/null c 1 3 &amp;&amp;</userinput> <userinput>mknod -m 0666 /dev/null c 1 3 &amp;&amp;</userinput>
<userinput>touch /etc/ld.so.conf &amp;&amp;</userinput> <userinput>touch /etc/ld.so.conf &amp;&amp;</userinput>
<userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput> <userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput>
<userinput>cd /usr/src/glibc-build &amp;&amp;</userinput> <userinput>cd /usr/src/glibc-build &amp;&amp;</userinput>
<userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput> <userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;../glibc-&glibc-version;/malloc/Makefile <userinput>&nbsp;&nbsp;&nbsp;../glibc-&glibc-version;/malloc/Makefile &gt; tmp~ &amp;&amp;</userinput>
&gt; tmp~ &amp;&amp;</userinput> <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &amp;&amp;</userinput>
<userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &amp;&amp; <userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile &gt; tmp~ &amp;&amp;</userinput>
</userinput> <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &amp;&amp;</userinput>
<userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile
&gt; tmp~ &amp;&amp; </userinput>
<userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &amp;&amp;
</userinput>
<userinput>../glibc-&glibc-version;/configure \</userinput> <userinput>../glibc-&glibc-version;/configure \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons <userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons \</userinput>
\</userinput> <userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp; <userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/ \</userinput>
</userinput> <userinput>&nbsp;&nbsp;&nbsp;config.make &gt; config.make~ &amp;&amp;</userinput>
<userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
\</userinput>
<userinput>&nbsp;&nbsp;&nbsp;config.make &gt; config.make~
&amp;&amp;</userinput>
<userinput>mv config.make~ config.make &amp;&amp;</userinput> <userinput>mv config.make~ config.make &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>make localedata/install-locales</userinput> <userinput>make localedata/install-locales</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
During the configure stage you will see the following warning: During the configure stage you will see the following warning:
@ -69,10 +63,12 @@ to ensure a properly working bash.
Run the following commands to accomplish this: Run the following commands to accomplish this:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>logout</userinput> <userinput>logout</userinput>
&c6-chrootcmd; &c6-chrootcmd;
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Grep by running the following commands: Install Grep by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,12 +5,13 @@
Install Groff by running the following commands: Install Groff by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>./configure --prefix=/usr &amp;&amp; <screen>
</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,7 +5,8 @@
Install Gzip by running the following commands: Install Gzip by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
@ -17,7 +18,8 @@ Install Gzip by running the following commands:
<userinput>ln -s gzip zcat &amp;&amp;</userinput> <userinput>ln -s gzip zcat &amp;&amp;</userinput>
<userinput>ln -s gzip compress &amp;&amp;</userinput> <userinput>ln -s gzip compress &amp;&amp;</userinput>
<userinput>ln -s gunzip uncompress</userinput> <userinput>ln -s gunzip uncompress</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,13 +5,14 @@
Install Kbd by running the following commands: Install Kbd by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --datadir=/usr/share/kbd &amp;&amp;</userinput> <userinput>./configure --datadir=/usr/share/kbd &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>rm <userinput>rm /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput>
/usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput> </screen>
</literallayout></blockquote> </para>
<para> <para>
Now we have to choose a default keymap. Explore the Now we have to choose a default keymap. Explore the
@ -19,10 +20,12 @@ Now we have to choose a default keymap. Explore the
as a default. Then execute this command: as a default. Then execute this command:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd /usr/share/kbd/keymaps &amp;&amp;</userinput> <userinput>cd /usr/share/kbd/keymaps &amp;&amp;</userinput>
<userinput>ln -s &lt;path-to-keymap&gt; defkeymap.map.gz</userinput> <userinput>ln -s &lt;path-to-keymap&gt; defkeymap.map.gz</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Replace <userinput>&lt;path-to-keymap&gt;</userinput> with the path to the Replace <userinput>&lt;path-to-keymap&gt;</userinput> with the path to the

View File

@ -5,11 +5,13 @@
Install Less by running the following commands: Install Less by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --bindir=/bin &amp;&amp;</userinput> <userinput>./configure --prefix=/usr --bindir=/bin &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Libtool by running the following commands: Install Libtool by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -13,10 +13,12 @@ http://archive.linuxfromscratch.org/lfs-hints/grub-howto.txt</ulink>,
Install Lilo by running the following commands: Install Lilo by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
It appears that compilation of this package fails on certain machines It appears that compilation of this package fails on certain machines

View File

@ -5,11 +5,13 @@
Install M4 by running the following commands: Install M4 by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
If the base system is running a 2.0 kernel and the Glibc version is If the base system is running a 2.0 kernel and the Glibc version is
@ -29,13 +31,15 @@ To create a statically linked version of M4, execute the following
commands: commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>logout</userinput> <userinput>logout</userinput>
<userinput>cd $LFS/usr/src/m4-1.4</userinput> <userinput>cd $LFS/usr/src/m4-1.4</userinput>
<userinput>./configure --prefix=/usr</userinput> <userinput>./configure --prefix=/usr</userinput>
<userinput>make LDFLAGS=-static</userinput> <userinput>make LDFLAGS=-static</userinput>
<userinput>make prefix=$LFS/usr install</userinput> <userinput>make prefix=$LFS/usr install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Now the chroot'ed environment can be re-entered and the Now the chroot'ed environment can be re-entered and the
@ -44,9 +48,11 @@ this can be done
after having rebooted into the LFS system rather than chrooting into it. after having rebooted into the LFS system rather than chrooting into it.
</para> </para>
<blockquote><literallayout> <para>
<screen>
&c6-chrootcmd; &c6-chrootcmd;
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Make by running the following commands: Install Make by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -10,13 +10,14 @@ won't create a directory for you to cd into.
Create the device files by running the following commands: Create the device files by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>cp MAKEDEV-1.1 /dev/MAKEDEV &amp;&amp; <screen>
</userinput> <userinput>cp MAKEDEV-1.1 /dev/MAKEDEV &amp;&amp;</userinput>
<userinput>cd /dev &amp;&amp;</userinput> <userinput>cd /dev &amp;&amp;</userinput>
<userinput>chmod 755 MAKEDEV &amp;&amp;</userinput> <userinput>chmod 755 MAKEDEV &amp;&amp;</userinput>
<userinput>./MAKEDEV -v generic</userinput> <userinput>./MAKEDEV -v generic</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
MAKEDEV will create hda[1-20] and hdb[1-20] and such but keep in mind MAKEDEV will create hda[1-20] and hdb[1-20] and such but keep in mind

View File

@ -5,13 +5,14 @@
Before Man is installed, the man patch file needs to be unpacked. Before Man is installed, the man patch file needs to be unpacked.
</para> </para>
<blockquote><literallayout> <para>
<userinput>patch -Np1 -i ../man-&man-version;.patch <screen>
&amp;&amp;</userinput> <userinput>patch -Np1 -i ../man-&man-version;.patch &amp;&amp;</userinput>
<userinput>./configure -default &amp;&amp;</userinput> <userinput>./configure -default &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
You may want to take a look at the man hint at <ulink You may want to take a look at the man hint at <ulink

View File

@ -5,11 +5,12 @@
Install Man-pages by running the following command: Install Man-pages by running the following command:
</para> </para>
<blockquote><literallayout> <para>
<userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch <screen>
&amp;&amp;</userinput> <userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,15 +5,16 @@
Install Mawk by running the following commands: Install Mawk by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure &amp;&amp;</userinput> <userinput>./configure &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make BINDIR=/usr/bin \</userinput> <userinput>make BINDIR=/usr/bin \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;MANDIR=/usr/share/man/man1 install <userinput>&nbsp;&nbsp;&nbsp;MANDIR=/usr/share/man/man1 install &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput> <userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>ln -s mawk awk</userinput> <userinput>ln -s mawk awk</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -11,11 +11,13 @@ downgrade to modutils 2.4.5 which seems to be working better.
Install Modutils by running the following commands: Install Modutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure &amp;&amp;</userinput> <userinput>./configure &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,15 +5,15 @@
Install Ncurses by running the following commands: Install Ncurses by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>patch -Np1 -F10 -i ../ncurses-&ncurses-version;.patch <screen>
&amp;&amp;</userinput> <userinput>patch -Np1 -F10 -i ../ncurses-&ncurses-version;.patch &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr --libdir=/lib \</userinput> <userinput>./configure --prefix=/usr --libdir=/lib \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--with-shared <userinput>&nbsp;&nbsp;&nbsp;--with-shared --disable-termcap &amp;&amp;</userinput>
--disable-termcap &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,14 +5,15 @@
Install Netkit-base by running the following commands: Install Netkit-base by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure &amp;&amp;</userinput> <userinput>./configure &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd etc.sample &amp;&amp;</userinput> <userinput>cd etc.sample &amp;&amp;</userinput>
<userinput>cp services protocols /etc</userinput> <userinput>cp services protocols /etc</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
There are other files in the <filename There are other files in the <filename

View File

@ -5,10 +5,12 @@
Install Net-tools by running the following commands: Install Net-tools by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Patch by running the following commands: Install Patch by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Perl by running the following commands: Install Perl by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./Configure -Dprefix=/usr &amp;&amp;</userinput> <userinput>./Configure -Dprefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
If you don't want to answer all those questions Perl asks, you can If you don't want to answer all those questions Perl asks, you can
@ -19,11 +21,13 @@ after the config.sh file has been created you can pass the -e parameter
to perl as well. The commands with these parameters included will be: to perl as well. The commands with these parameters included will be:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./Configure -Dprefix=/usr -d -e &amp;&amp;</userinput> <userinput>./Configure -Dprefix=/usr -d -e &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,12 @@
Install Procinfo by running the following commands: Install Procinfo by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>sed "s/-ltermcap/-lncurses/" Makefile | make -f - <screen>
&amp;&amp;</userinput> <userinput>sed "s/-ltermcap/-lncurses/" Makefile | make -f - &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,12 +5,13 @@
Install Procps by running the following commands: Install Procps by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make XSCPT='' install <userinput>make XSCPT='' install &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>mv /usr/bin/kill /bin</userinput> <userinput>mv /usr/bin/kill /bin</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,11 +5,13 @@
Install Psmisc by running the following commands: Install Psmisc by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -7,9 +7,11 @@ LFS system (because the normal system runs glibc-2.0) it's time to remove
them now by running: them now by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>rm /lib/libnss*.so.1 /lib/libnss*2.0*</userinput> <userinput>rm /lib/libnss*.so.1 /lib/libnss*2.0*</userinput>
</literallayout></blockquote> </screen>
</para>
</sect1> </sect1>

View File

@ -5,11 +5,13 @@
Install Sed by running the following commands: Install Sed by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --bindir=/bin &amp;&amp;</userinput> <userinput>./configure --prefix=/usr --bindir=/bin &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,16 +5,17 @@
Install the Shadow Password Suite by running the following commands: Install the Shadow Password Suite by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>patch -Np1 -i ../shadow-20001016.patch &amp;&amp;</userinput> <userinput>patch -Np1 -i ../shadow-20001016.patch &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd etc &amp;&amp;</userinput> <userinput>cd etc &amp;&amp;</userinput>
<userinput>cp limits login.access /etc &amp;&amp;</userinput> <userinput>cp limits login.access /etc &amp;&amp;</userinput>
<userinput>sed "s|/var/spool/mail|/var/mail|" login.defs.linux &gt; <userinput>sed "s|/var/spool/mail|/var/mail|" login.defs.linux &gt; /etc/login.defs</userinput>
/etc/login.defs</userinput> </screen>
</literallayout></blockquote> </para>
</sect2> </sect2>

View File

@ -5,14 +5,16 @@
Install Shellutils by running the following commands: Install Shellutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput> <userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>mv date echo false pwd stty /bin &amp;&amp;</userinput> <userinput>mv date echo false pwd stty /bin &amp;&amp;</userinput>
<userinput>mv su true uname hostname /bin</userinput> <userinput>mv su true uname hostname /bin</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>
@ -28,9 +30,11 @@ the bash interpreter, but the FHS dictates that there should be a
<filename>/usr/bin</filename> directory: <filename>/usr/bin</filename> directory:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>ln -s test [</userinput> <userinput>ln -s test [</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,10 +5,12 @@
Install Sysklogd by running the following commands: Install Sysklogd by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -17,18 +17,22 @@ processes started by init the TERM signal".
Apply the patch by running the following command: Apply the patch by running the following command:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>patch -Np1 -i ../sysvinit-2.78.patch</userinput> <userinput>patch -Np1 -i ../sysvinit-2.78.patch</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Install Sysvinit by running the following commands: Install Sysvinit by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>make -C src &amp;&amp;</userinput> <userinput>make -C src &amp;&amp;</userinput>
<userinput>make -C src install</userinput> <userinput>make -C src install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -13,24 +13,27 @@ for gzip files).
Apply the patch by running the following command: Apply the patch by running the following command:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd src &amp;&amp;</userinput> <userinput>cd src &amp;&amp;</userinput>
<userinput>patch -i ../../gnutarpatch.txt &amp;&amp;</userinput> <userinput>patch -i ../../gnutarpatch.txt &amp;&amp;</userinput>
<userinput>cd ..</userinput> <userinput>cd ..</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Install Tar by running the following commands from the toplevel Install Tar by running the following commands from the toplevel
directory: directory:
</para> </para>
<blockquote><literallayout> <para>
<userinput>./configure --prefix=/usr --libexecdir=/usr/bin <screen>
\</userinput> <userinput>./configure --prefix=/usr --libexecdir=/usr/bin \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--bindir=/bin &amp;&amp;</userinput> <userinput>--bindir=/bin &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,14 +5,15 @@
Install Texinfo by running the following commands: Install Texinfo by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<userinput>patch -Np1 -i ../texinfo-&texinfo-version;.patch <screen>
&amp;&amp;</userinput> <userinput>patch -Np1 -i ../texinfo-&texinfo-version;.patch &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>make TEXMF=/usr/share/texmf install-tex</userinput> <userinput>make TEXMF=/usr/share/texmf install-tex</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -5,12 +5,14 @@
Install Textutils by running the following commands: Install Textutils by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>mv /usr/bin/cat /bin</userinput> <userinput>mv /usr/bin/cat /bin</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -7,14 +7,15 @@ file, instead of the usual /etc. To make hwclock, which is part of the
util-linux package, FHS-compliant, run the following. util-linux package, FHS-compliant, run the following.
</para> </para>
<blockquote><literallayout> <para>
<userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" <screen>
\</userinput> <userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; hwclock~ <userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; hwclock~ &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput> <userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput>
<userinput>mkdir /var/lib/hwclock</userinput> <userinput>mkdir /var/lib/hwclock</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>
<sect2> <sect2>
@ -24,15 +25,16 @@ util-linux package, FHS-compliant, run the following.
Install Util-Linux by running the following commands: Install Util-Linux by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput> <userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;MCONFIG &gt; MCONFIG~ <userinput>&nbsp;&nbsp;&nbsp;MCONFIG &gt; MCONFIG~ &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>mv MCONFIG~ MCONFIG &amp;&amp;</userinput> <userinput>mv MCONFIG~ MCONFIG &amp;&amp;</userinput>
<userinput>./configure &amp;&amp;</userinput> <userinput>./configure &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput> <userinput>make install</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -18,13 +18,15 @@ won't overwrite any files from the other package. So it doesn't matter
in which order it is done. Install Vim by running the following commands: in which order it is done. Install Vim by running the following commands:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput> <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput> <userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>ln -s vim vi</userinput> <userinput>ln -s vim vi</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
If you plan on installing the X Window system on your LFS If you plan on installing the X Window system on your LFS
@ -46,14 +48,16 @@ conform to the FHS, you should use this command set instead of the one presented
above: above:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &amp;&amp;</userinput> <userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput> <userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput> <userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput> <userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>ln -s vim vi &amp;&amp;</userinput> <userinput>ln -s vim vi &amp;&amp;</userinput>
<userinput>mkdir /var/lib/vim</userinput> <userinput>mkdir /var/lib/vim</userinput>
</literallayout></blockquote> </screen>
</para>
</sect2> </sect2>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/checkfs</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; checkfs &lt;&lt; "EOF"</userinput> <userinput>cat &gt; checkfs &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/checkfs # Begin /etc/init.d/checkfs
@ -108,7 +109,8 @@ fi
# End /etc/init.d/checkfs # End /etc/init.d/checkfs
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,12 +6,13 @@ We need to start by creating a few extra directories that are used by
the boot scripts. These directories are created by running: the boot scripts. These directories are created by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd /etc &amp;&amp;</userinput> <userinput>cd /etc &amp;&amp;</userinput>
<userinput>mkdir rc{0,1,2,3,4,5,6,S}.d init.d sysconfig <userinput>mkdir rc{0,1,2,3,4,5,6,S}.d init.d sysconfig &amp;&amp;</userinput>
&amp;&amp;</userinput>
<userinput>cd init.d</userinput> <userinput>cd init.d</userinput>
</literallayout></blockquote> </screen>
</para>
</sect1> </sect1>

View File

@ -11,7 +11,8 @@ A new file <filename>/etc/init.d/ethnet</filename> is created containing the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/init.d/ethnet &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/init.d/ethnet &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/ethnet # Begin /etc/init.d/ethnet
@ -114,7 +115,8 @@ esac
# End /etc/init.d/ethnet # End /etc/init.d/ethnet
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<sect2> <sect2>
<title>Adding default gateway to /etc/sysconfig/network</title> <title>Adding default gateway to /etc/sysconfig/network</title>
@ -123,12 +125,14 @@ esac
If a default gateway is required to be setup, the following command does that: If a default gateway is required to be setup, the following command does that:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput> <userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput>
GATEWAY=192.168.1.2 GATEWAY=192.168.1.2
GATEWAY_IF=eth0 GATEWAY_IF=eth0
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
GATEWAY and GATEWAY_IF need to be changed to match the network setup. GATEWAY and GATEWAY_IF need to be changed to match the network setup.
@ -153,9 +157,11 @@ identification number (or whatever a user named it).
First the nic-config directory is created by running: First the nic-config directory is created by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>mkdir /etc/sysconfig/nic-config</userinput> <userinput>mkdir /etc/sysconfig/nic-config</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
@ -163,16 +169,17 @@ Now, new files are created in that directory containing the following.
This creates a sample file ifcfg-eth0: This creates a sample file ifcfg-eth0:
</para> </para>
<literallayout> <para>
<userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0 <screen>
&lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0 &lt;&lt; "EOF"</userinput>
ONBOOT=yes ONBOOT=yes
DEVICE=eth0 DEVICE=eth0
IP=192.168.1.1 IP=192.168.1.1
NETMASK=255.255.255.0 NETMASK=255.255.255.0
BROADCAST=192.168.1.255 BROADCAST=192.168.1.255
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
Of course, the values of those four variables have to be changed Of course, the values of those four variables have to be changed

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/functions</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; functions &lt;&lt; "EOF"</userinput> <userinput>cat &gt; functions &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/functions # Begin /etc/init.d/functions
@ -484,7 +485,8 @@ statusproc()
# End /etc/init.d/functions # End /etc/init.d/functions
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/halt</filename> is created containing the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; halt &lt;&lt; "EOF"</userinput> <userinput>cat &gt; halt &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/halt # Begin /etc/init.d/halt
@ -19,7 +20,8 @@ following:
# End /etc/init.d/halt # End /etc/init.d/halt
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -7,21 +7,25 @@ IP-address, FQDN and possible aliases for use in the /etc/hosts file. An
example is: example is:
</para> </para>
<blockquote><literallayout> <para>
<screen>
&lt;my-IP&gt; myhost.mydomain.org aliases &lt;my-IP&gt; myhost.mydomain.org aliases
</literallayout></blockquote> </screen>
</para>
<para> <para>
It should made sure that the IP-address is in the private network It should made sure that the IP-address is in the private network
IP-address range. Valid ranges are: IP-address range. Valid ranges are:
</para> </para>
<blockquote><literallayout> <para>
<screen>
Class Networks Class Networks
A 10.0.0.0 A 10.0.0.0
B 172.16.0.0 through 172.31.0.0 B 172.16.0.0 through 172.31.0.0
C 192.168.0.0 through 192.168.255.0 C 192.168.0.0 through 192.168.255.0
</literallayout></blockquote> </screen>
</para>
<para> <para>
A valid IP address could be 192.168.1.1. A valid FQDN for this IP could A valid IP address could be 192.168.1.1. A valid FQDN for this IP could
@ -39,7 +43,8 @@ If a network card is not going to be configured, a new file
<filename>/etc/hosts</filename> is created by running: <filename>/etc/hosts</filename> is created by running:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"</userinput>
# Begin /etc/hosts (no network card version) # Begin /etc/hosts (no network card version)
@ -47,14 +52,16 @@ If a network card is not going to be configured, a new file
# End /etc/hosts (no network card version) # End /etc/hosts (no network card version)
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
If a network card is to be configured, a new file If a network card is to be configured, a new file
<filename>/etc/hosts</filename> is created containing: <filename>/etc/hosts</filename> is created containing:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"</userinput>
# Begin /etc/hosts (network card version) # Begin /etc/hosts (network card version)
@ -63,7 +70,8 @@ If a network card is to be configured, a new file
# End /etc/hosts (network card version) # End /etc/hosts (network card version)
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
Of course, the 192.168.1.1 and www.mydomain.org have to be changed to the Of course, the 192.168.1.1 and www.mydomain.org have to be changed to the

View File

@ -8,7 +8,8 @@ US keyboard layout. A new file
created: created:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; loadkeys &lt;&lt; "EOF"</userinput> <userinput>cat &gt; loadkeys &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/loadkeys # Begin /etc/init.d/loadkeys
@ -29,7 +30,8 @@ evaluate_retval
# End /etc/init.d/loadkeys # End /etc/init.d/loadkeys
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/localnet</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/init.d/localnet &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/init.d/localnet &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/localnet # Begin /etc/init.d/localnet
@ -49,7 +50,8 @@ esac
# End /etc/init.d/localnet # End /etc/init.d/localnet
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/mountfs</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; mountfs &lt;&lt; "EOF"</userinput> <userinput>cat &gt; mountfs &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/mountfs # Begin /etc/init.d/mountfs
@ -102,7 +103,8 @@ esac
# End /etc/init.d/mountfs # End /etc/init.d/mountfs
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,9 +6,11 @@ A new file <filename>/etc/sysconfig/network</filename> is created and the
hostname is put in it by running: hostname is put in it by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput> <userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
<quote>lfs</quote> needs to be replaced by the name the computer is to be <quote>lfs</quote> needs to be replaced by the name the computer is to be

View File

@ -6,7 +6,8 @@ The first main boot script is the <filename>/etc/init.d/rc</filename> script.
A new file <filename>/etc/init.d/rc</filename> is created containing the A new file <filename>/etc/init.d/rc</filename> is created containing the
following: </para> following: </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; rc &lt;&lt; "EOF"</userinput> <userinput>cat &gt; rc &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/rc # Begin /etc/init.d/rc
@ -245,7 +246,8 @@ fi
# End /etc/init.d/rc # End /etc/init.d/rc
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ The second main boot script is the <filename>rcS</filename> script. Create a
new file <filename>/etc/init.d/rcS</filename> containing the following: new file <filename>/etc/init.d/rcS</filename> containing the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; rcS &lt;&lt; "EOF"</userinput> <userinput>cat &gt; rcS &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/rcS # Begin /etc/init.d/rcS
@ -35,7 +36,8 @@ done
# End /etc/init.d/rcS # End /etc/init.d/rcS
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ Create a new file <filename>/etc/init.d/reboot</filename> containing the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; reboot &lt;&lt; "EOF"</userinput> <userinput>cat &gt; reboot &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/reboot # Begin /etc/init.d/reboot
@ -22,7 +23,8 @@ echo "System reboot in progress..."
# End /etc/init.d/reboot # End /etc/init.d/reboot
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ Create a new file <filename>/etc/init.d/sendsignals</filename>
containing the following: containing the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; sendsignals &lt;&lt; "EOF"</userinput> <userinput>cat &gt; sendsignals &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/sendsignals # Begin /etc/init.d/sendsignals
@ -36,7 +37,8 @@ evaluate_retval
# End /etc/init.d/sendsignals # End /etc/init.d/sendsignals
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -20,7 +20,8 @@ hardware clock is set to GMT, then the UTC variable below has to be changed
value of <emphasis>1</emphasis>. value of <emphasis>1</emphasis>.
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; setclock &lt;&lt; "EOF"</userinput> <userinput>cat &gt; setclock &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/setclock # Begin /etc/init.d/setclock
@ -61,7 +62,8 @@ evaluate_retval
# End /etc/init.d/setclock # End /etc/init.d/setclock
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<sect2> <sect2>
<title>Creating the /etc/sysconfig/clock file</title> <title>Creating the /etc/sysconfig/clock file</title>
@ -71,7 +73,8 @@ Create a new file <filename>/etc/sysconfig/clock</filename> by running
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/sysconfig/clock &lt;&lt; "EOF"</userinput>
# Begin /etc/sysconfig/clock # Begin /etc/sysconfig/clock
@ -79,7 +82,8 @@ UTC=1
# End /etc/sysconfig/clock # End /etc/sysconfig/clock
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
If the hardware clock (also known as BIOS or CMOS clock) is not set to If the hardware clock (also known as BIOS or CMOS clock) is not set to

View File

@ -17,25 +17,22 @@ S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but
K002otherdaemon. K002otherdaemon.
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd /etc/init.d &amp;&amp;</userinput> <userinput>cd /etc/init.d &amp;&amp;</userinput>
<userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs <userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot &amp;&amp;</userinput>
reboot &amp;&amp;</userinput> <userinput>chmod 754 sendsignals setclock sysklogd template &amp;&amp;</userinput>
<userinput>chmod 754 sendsignals setclock sysklogd template
&amp;&amp;</userinput>
<userinput>chmod 754 localnet ethnet &amp;&amp;</userinput> <userinput>chmod 754 localnet ethnet &amp;&amp;</userinput>
<userinput>cd ../rc0.d &amp;&amp;</userinput> <userinput>cd ../rc0.d &amp;&amp;</userinput>
<userinput>ln -s ../init.d/ethnet K800ethnet &amp;&amp;</userinput> <userinput>ln -s ../init.d/ethnet K800ethnet &amp;&amp;</userinput>
<userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput> <userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput>
<userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp; <userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp;</userinput>
</userinput>
<userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput> <userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput>
<userinput>ln -s ../init.d/halt S999halt &amp;&amp;</userinput> <userinput>ln -s ../init.d/halt S999halt &amp;&amp;</userinput>
<userinput>cd ../rc6.d &amp;&amp;</userinput> <userinput>cd ../rc6.d &amp;&amp;</userinput>
<userinput>ln -s ../init.d/ethnet K800ethnet &amp;&amp;</userinput> <userinput>ln -s ../init.d/ethnet K800ethnet &amp;&amp;</userinput>
<userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput> <userinput>ln -s ../init.d/sysklogd K900sysklogd &amp;&amp;</userinput>
<userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp; <userinput>ln -s ../init.d/sendsignals S800sendsignals &amp;&amp;</userinput>
</userinput>
<userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput> <userinput>ln -s ../init.d/mountfs S900mountfs &amp;&amp;</userinput>
<userinput>ln -s ../init.d/reboot S999reboot &amp;&amp;</userinput> <userinput>ln -s ../init.d/reboot S999reboot &amp;&amp;</userinput>
<userinput>cd ../rcS.d &amp;&amp;</userinput> <userinput>cd ../rcS.d &amp;&amp;</userinput>
@ -59,7 +56,8 @@ K002otherdaemon.
<userinput>cd ../rc5.d &amp;&amp;</userinput> <userinput>cd ../rc5.d &amp;&amp;</userinput>
<userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput> <userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
<userinput>ln -s ../init.d/ethnet S200ethnet &amp;&amp;</userinput> <userinput>ln -s ../init.d/ethnet S200ethnet &amp;&amp;</userinput>
</literallayout></blockquote> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/sysklogd</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; sysklogd &lt;&lt; "EOF"</userinput> <userinput>cat &gt; sysklogd &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/sysklogd # Begin /etc/init.d/sysklogd
@ -59,7 +60,8 @@ esac
# End /etc/init.d/sysklogd # End /etc/init.d/sysklogd
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -6,7 +6,8 @@ A new file <filename>/etc/init.d/template</filename> is created containing
the following: the following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; template &lt;&lt; "EOF"</userinput> <userinput>cat &gt; template &lt;&lt; "EOF"</userinput>
#!/bin/sh #!/bin/sh
# Begin /etc/init.d/ # Begin /etc/init.d/
@ -52,7 +53,8 @@ esac
# End /etc/init.d/ # End /etc/init.d/
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
</sect1> </sect1>

View File

@ -8,7 +8,8 @@ used. A new file <filename>/etc/fstab</filename> is created containing the
following: following:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"</userinput> <userinput>cat &gt; /etc/fstab &lt;&lt; "EOF"</userinput>
# Begin /etc/fstab # Begin /etc/fstab
@ -18,7 +19,8 @@ proc /proc proc defaults 0 0
# End /etc/fstab # End /etc/fstab
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
&lt;LFS-partition designation&gt;, &lt;swap-partition &lt;LFS-partition designation&gt;, &lt;swap-partition

View File

@ -9,7 +9,8 @@ with the kernel source tree, and find out what the options are. The
following commands are run to build the kernel: following commands are run to build the kernel:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cd /usr/src/linux &amp;&amp;</userinput> <userinput>cd /usr/src/linux &amp;&amp;</userinput>
<userinput>make mrproper &amp;&amp;</userinput> <userinput>make mrproper &amp;&amp;</userinput>
<userinput>make menuconfig &amp;&amp;</userinput> <userinput>make menuconfig &amp;&amp;</userinput>
@ -17,10 +18,10 @@ following commands are run to build the kernel:
<userinput>make bzImage &amp;&amp;</userinput> <userinput>make bzImage &amp;&amp;</userinput>
<userinput>make modules &amp;&amp;</userinput> <userinput>make modules &amp;&amp;</userinput>
<userinput>make modules_install &amp;&amp;</userinput> <userinput>make modules_install &amp;&amp;</userinput>
<userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp; <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;</userinput>
</userinput>
<userinput>cp System.map /boot</userinput> <userinput>cp System.map /boot</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
Note: the arch/i386/boot/bzImage path may vary on different platforms. Note: the arch/i386/boot/bzImage path may vary on different platforms.

View File

@ -18,24 +18,28 @@ the host system or the LFS system).
First we'll exit chroot and copy the lfskernel file to the host system: First we'll exit chroot and copy the lfskernel file to the host system:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>logout</userinput> <userinput>logout</userinput>
<userinput>cp $LFS/boot/lfskernel /boot</userinput> <userinput>cp $LFS/boot/lfskernel /boot</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
The next step is adding an entry to /etc/lilo.conf so that we can The next step is adding an entry to /etc/lilo.conf so that we can
choose LFS when booting the computer: choose LFS when booting the computer:
</para> </para>
<literallayout> <para>
<screen>
<userinput>cat &gt;&gt; /etc/lilo.conf &lt;&lt; "EOF"</userinput> <userinput>cat &gt;&gt; /etc/lilo.conf &lt;&lt; "EOF"</userinput>
image=/boot/lfskernel image=/boot/lfskernel
label=lfs label=lfs
root=&lt;partition&gt; root=&lt;partition&gt;
read-only read-only
<userinput>EOF</userinput> <userinput>EOF</userinput>
</literallayout> </screen>
</para>
<para> <para>
&lt;partition&gt; must be replaced by the LFS partition's designation. &lt;partition&gt; must be replaced by the LFS partition's designation.
@ -45,19 +49,23 @@ choose LFS when booting the computer:
Now the boot loader gets updated by running: Now the boot loader gets updated by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>/sbin/lilo</userinput> <userinput>/sbin/lilo</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
The last step is syncing the host system lilo config. files with the The last step is syncing the host system lilo config. files with the
LFS system: LFS system:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>cp /etc/lilo.conf $LFS/etc &amp;&amp;</userinput> <userinput>cp /etc/lilo.conf $LFS/etc &amp;&amp;</userinput>
<userinput>cp &lt;kernel images&gt; $LFS/boot</userinput> <userinput>cp &lt;kernel images&gt; $LFS/boot</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
To find out which kernel images files are being used, look at the To find out which kernel images files are being used, look at the

View File

@ -7,18 +7,22 @@ it's time to reboot the computer. Before we reboot let's exit the
chroot'ed environment first and unmount the LFS partition by running: chroot'ed environment first and unmount the LFS partition by running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>umount $LFS/proc &amp;&amp;</userinput> <userinput>umount $LFS/proc &amp;&amp;</userinput>
<userinput>umount $LFS</userinput> <userinput>umount $LFS</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
And you can reboot your system by running something like: And you can reboot your system by running something like:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>/sbin/shutdown -r now</userinput> <userinput>/sbin/shutdown -r now</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
At the LILO: prompt make sure that you tell it to boot At the LILO: prompt make sure that you tell it to boot

View File

@ -37,10 +37,11 @@ is to not run strip on libraries (other than --strip-debug) just to be
on the safe side. on the safe side.
</para> </para>
<blockquote><literallayout> <para>
<userinput>find / -type f -exec strip --strip-debug '{}' ';' <screen>
</userinput> <userinput>find / -type f -exec strip --strip-debug '{}' ';'</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
If you plan to ever upgrade to a newer LFS version in the future it If you plan to ever upgrade to a newer LFS version in the future it
@ -51,9 +52,11 @@ you have installed on your system. This can just be a null-byte file by
running: running:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>touch /etc/lfs-&version;</userinput> <userinput>touch /etc/lfs-&version;</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
One final thing you may want to do is run lilo now that you are booted One final thing you may want to do is run lilo now that you are booted
@ -68,9 +71,11 @@ Either way, run the following to make the lilo version installed on LFS
active: active:
</para> </para>
<blockquote><literallayout> <para>
<screen>
<userinput>/sbin/lilo</userinput> <userinput>/sbin/lilo</userinput>
</literallayout></blockquote> </screen>
</para>
<para> <para>
If you are wondering: "Well, where to go now?" you'll be glad to hear that If you are wondering: "Well, where to go now?" you'll be glad to hear that