mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 11:19:19 +01:00
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:
parent
b4ffa369d6
commit
3229c6b8a2
@ -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 > $LFS/etc/group << "EOF"</userinput>
|
<userinput>cat > $LFS/etc/group << "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
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Autoconf by running the following commands:
|
Install Autoconf by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,10 +5,12 @@
|
|||||||
Install Automake by running the following commands:
|
Install Automake by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make install</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>./configure --prefix=/usr --with-curses &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make install &&</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>
|
||||||
&c6-chrootcmd;
|
<screen>
|
||||||
</literallayout></blockquote>
|
&c6-chrootcmd;
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 > $LFS/root/.bash_profile << "EOF"</userinput>
|
<userinput>cat > $LFS/root/.bash_profile << "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
|
||||||
|
@ -5,10 +5,12 @@
|
|||||||
Install Bin86 by running the following commands:
|
Install Bin86 by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>make &&</userinput>
|
<screen>
|
||||||
<userinput>make PREFIX=/usr install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make PREFIX=/usr install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -4,12 +4,14 @@
|
|||||||
Install Binutils by running the following commands:
|
Install Binutils by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr --enable-shared &&</userinput>
|
<screen>
|
||||||
<userinput>make -e tooldir=/usr &&</userinput>
|
<userinput>./configure --prefix=/usr --enable-shared &&</userinput>
|
||||||
<userinput>make -e tooldir=/usr install &&</userinput>
|
<userinput>make -e tooldir=/usr &&</userinput>
|
||||||
<userinput>make -e tooldir=/usr install-info</userinput>
|
<userinput>make -e tooldir=/usr install &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make -e tooldir=/usr install-info</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,13 +5,14 @@
|
|||||||
Install Bison by running the following commands:
|
Install Bison by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr \</userinput>
|
<screen>
|
||||||
<userinput> --datadir=/usr/share/bison
|
<userinput>./configure --prefix=/usr \</userinput>
|
||||||
&&</userinput>
|
<userinput> --datadir=/usr/share/bison &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</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 > /usr/bin/yacc << "EOF"</userinput>
|
<userinput>cat > /usr/bin/yacc << "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>
|
||||||
|
|
||||||
|
@ -5,23 +5,25 @@
|
|||||||
Install Bzip2 by running the following commands:
|
Install Bzip2 by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>make -f Makefile-libbz2_so &&</userinput>
|
<screen>
|
||||||
<userinput>make bzip2recover libbz2.a &&</userinput>
|
<userinput>make -f Makefile-libbz2_so &&</userinput>
|
||||||
<userinput>cp bzip2-shared /bin/bzip2 &&</userinput>
|
<userinput>make bzip2recover libbz2.a &&</userinput>
|
||||||
<userinput>cp bzip2recover /bin &&</userinput>
|
<userinput>cp bzip2-shared /bin/bzip2 &&</userinput>
|
||||||
<userinput>cp bzip2.1 /usr/share/man/man1 &&</userinput>
|
<userinput>cp bzip2recover /bin &&</userinput>
|
||||||
<userinput>cp bzlib.h /usr/include &&</userinput>
|
<userinput>cp bzip2.1 /usr/share/man/man1 &&</userinput>
|
||||||
<userinput>cp -a libbz2.so* libbz2.a /lib &&</userinput>
|
<userinput>cp bzlib.h /usr/include &&</userinput>
|
||||||
<userinput>rm /usr/lib/libbz2.a &&</userinput>
|
<userinput>cp -a libbz2.so* libbz2.a /lib &&</userinput>
|
||||||
<userinput>cd /bin &&</userinput>
|
<userinput>rm /usr/lib/libbz2.a &&</userinput>
|
||||||
<userinput>ln -sf bzip2 bunzip2 &&</userinput>
|
<userinput>cd /bin &&</userinput>
|
||||||
<userinput>ln -sf bzip2 bzcat &&</userinput>
|
<userinput>ln -sf bzip2 bunzip2 &&</userinput>
|
||||||
<userinput>cd /usr/share/man/man1 &&</userinput>
|
<userinput>ln -sf bzip2 bzcat &&</userinput>
|
||||||
<userinput>ln -s bzip2.1 bunzip2.1 &&</userinput>
|
<userinput>cd /usr/share/man/man1 &&</userinput>
|
||||||
<userinput>ln -s bzip2.1 bzcat.1 &&</userinput>
|
<userinput>ln -s bzip2.1 bunzip2.1 &&</userinput>
|
||||||
<userinput>ln -s bzip2.1 bzip2recover.1</userinput>
|
<userinput>ln -s bzip2.1 bzcat.1 &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s bzip2.1 bzip2recover.1</userinput>
|
||||||
|
</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
|
||||||
|
@ -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>
|
||||||
&c6-chrootcmd;
|
<screen>
|
||||||
</literallayout></blockquote>
|
&c6-chrootcmd;
|
||||||
|
</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
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<userinput>cd $LFS &&</userinput>
|
<userinput>cd $LFS &&</userinput>
|
||||||
<userinput>chroot $LFS /usr/bin/env -i HOME=/root
|
<userinput>chroot $LFS /usr/bin/env -i HOME=/root \</userinput>
|
||||||
\</userinput>
|
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
||||||
<userinput> TERM=$TERM /bin/bash --login</userinput>
|
|
||||||
|
@ -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 > /etc/nsswitch.conf << "EOF"</userinput>
|
<userinput>cat > /etc/nsswitch.conf << "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>
|
||||||
<userinput>cd /etc &&</userinput>
|
<screen>
|
||||||
<userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output>
|
<userinput>cd /etc &&</userinput>
|
||||||
localtime</userinput>
|
<userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</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>
|
||||||
<userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput>
|
||||||
|
</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>
|
||||||
|
|
||||||
|
@ -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 > /etc/ld.so.conf << "EOF"</userinput>
|
<userinput>cat > /etc/ld.so.conf << "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
|
||||||
|
@ -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>
|
||||||
<userinput>/usr/sbin/pwconv</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>/usr/sbin/pwconv</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 > /etc/syslog.conf << "EOF"</userinput>
|
<userinput>cat > /etc/syslog.conf << "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>
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@ Create a new file <filename>/etc/inittab</filename> by running the
|
|||||||
following:
|
following:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<literallayout>
|
<para>
|
||||||
|
<screen>
|
||||||
<userinput>cat > /etc/inittab << "EOF"</userinput>
|
<userinput>cat > /etc/inittab << "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>
|
||||||
|
|
||||||
|
@ -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 > /root/.vimrc << "EOF"</userinput>
|
<userinput>cat > /root/.vimrc << "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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -15,14 +15,14 @@ Create these files with their proper permissions by running the
|
|||||||
following commands:
|
following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>touch /var/run/utmp /var/log/wtmp \</userinput>
|
<screen>
|
||||||
<userinput> /var/log/btmp
|
<userinput>touch /var/run/utmp /var/log/wtmp \</userinput>
|
||||||
/var/log/lastlog &&</userinput>
|
<userinput> /var/log/btmp /var/log/lastlog &&</userinput>
|
||||||
<userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
|
<userinput>chmod 644 /var/run/utmp /var/log/wtmp \</userinput>
|
||||||
<userinput> /var/log/btmp /var/log/lastlog
|
<userinput> /var/log/btmp /var/log/lastlog</userinput>
|
||||||
</userinput>
|
</screen>
|
||||||
</literallayout></blockquote>
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Diffutils by running the following commands:
|
Install Diffutils by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>./configure --prefix=/usr --with-root-prefix= \</userinput>
|
<screen>
|
||||||
<userinput> --enable-elf-shlibs &&</userinput>
|
<userinput>./configure --prefix=/usr --with-root-prefix= \</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput> --enable-elf-shlibs &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install-libs &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>mv /usr/sbin/mklost+found /sbin</userinput>
|
<userinput>make install-libs &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>mv /usr/sbin/mklost+found /sbin</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,12 +5,14 @@
|
|||||||
Install Ed by running the following commands:
|
Install Ed by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput>
|
<userinput>make install &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>mv /usr/bin/ed /usr/bin/red /bin</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 &&</userinput>
|
<userinput>./configure --prefix=/usr --datadir=/usr/share/misc &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</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>
|
||||||
<userinput>file -C</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>file -C</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,13 +5,14 @@
|
|||||||
Install Fileutils by running the following commands:
|
Install Fileutils by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr --bindir=/bin \</userinput>
|
<screen>
|
||||||
<userinput> --libexecdir=/bin
|
<userinput>./configure --prefix=/usr --bindir=/bin \</userinput>
|
||||||
&&</userinput>
|
<userinput> --libexecdir=/bin &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>patch -Np1 -i ../findutils-4.1.patch &&</userinput>
|
<screen>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<userinput>patch -Np1 -i ../findutils-4.1.patch &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make libexecdir=/usr/bin install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make libexecdir=/usr/bin install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,13 +5,15 @@
|
|||||||
Install Flex by running the following commands:
|
Install Flex by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>ln -s flex lex</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s flex lex</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>mkdir /usr/src/gcc-build &&</userinput>
|
<screen>
|
||||||
<userinput>cd /usr/src/gcc-build &&</userinput>
|
<userinput>mkdir /usr/src/gcc-build &&</userinput>
|
||||||
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
|
<userinput>cd /usr/src/gcc-build &&</userinput>
|
||||||
<userinput> --with-slibdir=/lib
|
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
|
||||||
--enable-shared \</userinput>
|
<userinput> --with-slibdir=/lib --enable-shared \</userinput>
|
||||||
<userinput> --enable-languages=c,c++
|
<userinput> --enable-languages=c,c++ &&</userinput>
|
||||||
&&</userinput>
|
<userinput>make bootstrap &&</userinput>
|
||||||
<userinput>make bootstrap &&</userinput>
|
<userinput>make install</userinput>
|
||||||
<userinput>make install</userinput>
|
</screen>
|
||||||
</literallayout></blockquote>
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Gettext by running the following commands:
|
Install Gettext by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
<screen>
|
||||||
<userinput>touch /etc/ld.so.conf &&</userinput>
|
<userinput>mknod -m 0666 /dev/null c 1 3 &&</userinput>
|
||||||
<userinput>mkdir /usr/src/glibc-build &&</userinput>
|
<userinput>touch /etc/ld.so.conf &&</userinput>
|
||||||
<userinput>cd /usr/src/glibc-build &&</userinput>
|
<userinput>mkdir /usr/src/glibc-build &&</userinput>
|
||||||
<userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
<userinput>cd /usr/src/glibc-build &&</userinput>
|
||||||
<userinput> ../glibc-&glibc-version;/malloc/Makefile
|
<userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
|
||||||
> tmp~ &&</userinput>
|
<userinput> ../glibc-&glibc-version;/malloc/Makefile > tmp~ &&</userinput>
|
||||||
<userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&
|
<userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &&</userinput>
|
||||||
</userinput>
|
<userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile > tmp~ &&</userinput>
|
||||||
<userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile
|
<userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&</userinput>
|
||||||
> tmp~ && </userinput>
|
<userinput>../glibc-&glibc-version;/configure \</userinput>
|
||||||
<userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &&
|
<userinput> --prefix=/usr --enable-add-ons \</userinput>
|
||||||
</userinput>
|
<userinput> --libexecdir=/usr/bin &&</userinput>
|
||||||
<userinput>../glibc-&glibc-version;/configure \</userinput>
|
<userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/ \</userinput>
|
||||||
<userinput> --prefix=/usr --enable-add-ons
|
<userinput> config.make > config.make~ &&</userinput>
|
||||||
\</userinput>
|
<userinput>mv config.make~ config.make &&</userinput>
|
||||||
<userinput> --libexecdir=/usr/bin &&
|
<userinput>make &&</userinput>
|
||||||
</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
|
<userinput>make localedata/install-locales</userinput>
|
||||||
\</userinput>
|
</screen>
|
||||||
<userinput> config.make > config.make~
|
</para>
|
||||||
&&</userinput>
|
|
||||||
<userinput>mv config.make~ config.make &&</userinput>
|
|
||||||
<userinput>make &&</userinput>
|
|
||||||
<userinput>make install &&</userinput>
|
|
||||||
<userinput>make localedata/install-locales</userinput>
|
|
||||||
</literallayout></blockquote>
|
|
||||||
|
|
||||||
<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>
|
||||||
<userinput>logout</userinput>
|
<screen>
|
||||||
&c6-chrootcmd;
|
<userinput>logout</userinput>
|
||||||
</literallayout></blockquote>
|
&c6-chrootcmd;
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Grep by running the following commands:
|
Install Grep by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 &&
|
<screen>
|
||||||
</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,19 +5,21 @@
|
|||||||
Install Gzip by running the following commands:
|
Install Gzip by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>mv gzip /bin &&</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
<userinput>rm gunzip zcat &&</userinput>
|
<userinput>mv gzip /bin &&</userinput>
|
||||||
<userinput>cd /bin &&</userinput>
|
<userinput>rm gunzip zcat &&</userinput>
|
||||||
<userinput>ln -sf gzip gunzip &&</userinput>
|
<userinput>cd /bin &&</userinput>
|
||||||
<userinput>ln -s gzip zcat &&</userinput>
|
<userinput>ln -sf gzip gunzip &&</userinput>
|
||||||
<userinput>ln -s gzip compress &&</userinput>
|
<userinput>ln -s gzip zcat &&</userinput>
|
||||||
<userinput>ln -s gunzip uncompress</userinput>
|
<userinput>ln -s gzip compress &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s gunzip uncompress</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,13 +5,14 @@
|
|||||||
Install Kbd by running the following commands:
|
Install Kbd by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --datadir=/usr/share/kbd &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --datadir=/usr/share/kbd &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>rm
|
<userinput>make install &&</userinput>
|
||||||
/usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput>
|
<userinput>rm /usr/share/kbd/keymaps/i386/qwerty/defkeymap.map.gz</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</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>
|
||||||
<userinput>cd /usr/share/kbd/keymaps &&</userinput>
|
<screen>
|
||||||
<userinput>ln -s <path-to-keymap> defkeymap.map.gz</userinput>
|
<userinput>cd /usr/share/kbd/keymaps &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s <path-to-keymap> defkeymap.map.gz</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Replace <userinput><path-to-keymap></userinput> with the path to the
|
Replace <userinput><path-to-keymap></userinput> with the path to the
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Less by running the following commands:
|
Install Less by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Libtool by running the following commands:
|
Install Libtool by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>make &&</userinput>
|
<screen>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</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
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install M4 by running the following commands:
|
Install M4 by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</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>
|
||||||
&c6-chrootcmd;
|
<screen>
|
||||||
</literallayout></blockquote>
|
&c6-chrootcmd;
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Make by running the following commands:
|
Install Make by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 &&
|
<screen>
|
||||||
</userinput>
|
<userinput>cp MAKEDEV-1.1 /dev/MAKEDEV &&</userinput>
|
||||||
<userinput>cd /dev &&</userinput>
|
<userinput>cd /dev &&</userinput>
|
||||||
<userinput>chmod 755 MAKEDEV &&</userinput>
|
<userinput>chmod 755 MAKEDEV &&</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
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>patch -Np1 -i ../man-&man-version;.patch &&</userinput>
|
||||||
<userinput>./configure -default &&</userinput>
|
<userinput>./configure -default &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</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
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>patch -Np1 -i ../man-pages-&man-pages-version;.patch &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,15 +5,16 @@
|
|||||||
Install Mawk by running the following commands:
|
Install Mawk by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure &&</userinput>
|
||||||
<userinput>make BINDIR=/usr/bin \</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput> MANDIR=/usr/share/man/man1 install
|
<userinput>make BINDIR=/usr/bin \</userinput>
|
||||||
&&</userinput>
|
<userinput> MANDIR=/usr/share/man/man1 install &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
<userinput>ln -s mawk awk</userinput>
|
<userinput>ln -s mawk awk</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>./configure &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>patch -Np1 -F10 -i ../ncurses-&ncurses-version;.patch &&</userinput>
|
||||||
<userinput>./configure --prefix=/usr --libdir=/lib \</userinput>
|
<userinput>./configure --prefix=/usr --libdir=/lib \</userinput>
|
||||||
<userinput> --with-shared
|
<userinput> --with-shared --disable-termcap &&</userinput>
|
||||||
--disable-termcap &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make install</userinput>
|
||||||
<userinput>make install</userinput>
|
</screen>
|
||||||
</literallayout></blockquote>
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 &&</userinput>
|
<userinput>./configure &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>cd etc.sample &&</userinput>
|
<userinput>cd etc.sample &&</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
|
||||||
|
@ -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>
|
||||||
<userinput>make &&</userinput>
|
<screen>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Patch by running the following commands:
|
Install Patch by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Perl by running the following commands:
|
Install Perl by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./Configure -Dprefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./Configure -Dprefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</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>
|
||||||
<userinput>./Configure -Dprefix=/usr -d -e &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./Configure -Dprefix=/usr -d -e &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>sed "s/-ltermcap/-lncurses/" Makefile | make -f - &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,12 +5,13 @@
|
|||||||
Install Procps by running the following commands:
|
Install Procps by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>make &&</userinput>
|
<screen>
|
||||||
<userinput>make XSCPT='' install
|
<userinput>make &&</userinput>
|
||||||
&&</userinput>
|
<userinput>make XSCPT='' install &&</userinput>
|
||||||
<userinput>mv /usr/bin/kill /bin</userinput>
|
<userinput>mv /usr/bin/kill /bin</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Psmisc by running the following commands:
|
Install Psmisc by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>rm /lib/libnss*.so.1 /lib/libnss*2.0*</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>rm /lib/libnss*.so.1 /lib/libnss*2.0*</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -5,11 +5,13 @@
|
|||||||
Install Sed by running the following commands:
|
Install Sed by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr --bindir=/bin &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>patch -Np1 -i ../shadow-20001016.patch &&</userinput>
|
<screen>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<userinput>patch -Np1 -i ../shadow-20001016.patch &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd etc &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>cp limits login.access /etc &&</userinput>
|
<userinput>cd etc &&</userinput>
|
||||||
<userinput>sed "s|/var/spool/mail|/var/mail|" login.defs.linux >
|
<userinput>cp limits login.access /etc &&</userinput>
|
||||||
/etc/login.defs</userinput>
|
<userinput>sed "s|/var/spool/mail|/var/mail|" login.defs.linux > /etc/login.defs</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,14 +5,16 @@
|
|||||||
Install Shellutils by running the following commands:
|
Install Shellutils by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>mv date echo false pwd stty /bin &&</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
<userinput>mv su true uname hostname /bin</userinput>
|
<userinput>mv date echo false pwd stty /bin &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>mv su true uname hostname /bin</userinput>
|
||||||
|
</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>
|
||||||
<userinput>ln -s test [</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s test [</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -5,10 +5,12 @@
|
|||||||
Install Sysklogd by running the following commands:
|
Install Sysklogd by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>make &&</userinput>
|
<screen>
|
||||||
<userinput>make install</userinput>
|
<userinput>make &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>patch -Np1 -i ../sysvinit-2.78.patch</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>patch -Np1 -i ../sysvinit-2.78.patch</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Install Sysvinit by running the following commands:
|
Install Sysvinit by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>make -C src &&</userinput>
|
<screen>
|
||||||
<userinput>make -C src install</userinput>
|
<userinput>make -C src &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>make -C src install</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>cd src &&</userinput>
|
<screen>
|
||||||
<userinput>patch -i ../../gnutarpatch.txt &&</userinput>
|
<userinput>cd src &&</userinput>
|
||||||
<userinput>cd ..</userinput>
|
<userinput>patch -i ../../gnutarpatch.txt &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>cd ..</userinput>
|
||||||
|
</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> --bindir=/bin &&</userinput>
|
<userinput>--bindir=/bin &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
&&</userinput>
|
<userinput>patch -Np1 -i ../texinfo-&texinfo-version;.patch &&</userinput>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make install &&</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>
|
||||||
|
|
||||||
|
@ -5,12 +5,14 @@
|
|||||||
Install Textutils by running the following commands:
|
Install Textutils by running the following commands:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>mv /usr/bin/cat /bin</userinput>
|
<userinput>make install &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>mv /usr/bin/cat /bin</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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> hwclock/hwclock.c > hwclock~
|
<userinput> hwclock/hwclock.c > hwclock~ &&</userinput>
|
||||||
&&</userinput>
|
<userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>
|
||||||
<userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>
|
<userinput>mkdir /var/lib/hwclock</userinput>
|
||||||
<userinput>mkdir /var/lib/hwclock</userinput>
|
</screen>
|
||||||
</literallayout></blockquote>
|
</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>
|
||||||
<userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
|
<screen>
|
||||||
<userinput> MCONFIG > MCONFIG~
|
<userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
|
||||||
&&</userinput>
|
<userinput> MCONFIG > MCONFIG~ &&</userinput>
|
||||||
<userinput>mv MCONFIG~ MCONFIG &&</userinput>
|
<userinput>mv MCONFIG~ MCONFIG &&</userinput>
|
||||||
<userinput>./configure &&</userinput>
|
<userinput>./configure &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install</userinput>
|
<userinput>make install</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>./configure --prefix=/usr &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>ln -s vim vi</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>ln -s vim vi</userinput>
|
||||||
|
</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>
|
||||||
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
<screen>
|
||||||
<userinput>make &&</userinput>
|
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>cd /usr/bin &&</userinput>
|
<userinput>make install &&</userinput>
|
||||||
<userinput>ln -s vim vi &&</userinput>
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
<userinput>mkdir /var/lib/vim</userinput>
|
<userinput>ln -s vim vi &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>mkdir /var/lib/vim</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -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 > checkfs << "EOF"</userinput>
|
<userinput>cat > checkfs << "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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>cd /etc &&</userinput>
|
<screen>
|
||||||
<userinput>mkdir rc{0,1,2,3,4,5,6,S}.d init.d sysconfig
|
<userinput>cd /etc &&</userinput>
|
||||||
&&</userinput>
|
<userinput>mkdir rc{0,1,2,3,4,5,6,S}.d init.d sysconfig &&</userinput>
|
||||||
<userinput>cd init.d</userinput>
|
<userinput>cd init.d</userinput>
|
||||||
</literallayout></blockquote>
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -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 > /etc/init.d/ethnet << "EOF"</userinput>
|
<userinput>cat > /etc/init.d/ethnet << "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 >> /etc/sysconfig/network << "EOF"</userinput>
|
<userinput>cat >> /etc/sysconfig/network << "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>
|
||||||
<userinput>mkdir /etc/sysconfig/nic-config</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>mkdir /etc/sysconfig/nic-config</userinput>
|
||||||
|
</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 > /etc/sysconfig/nic-config/ifcfg-eth0
|
<screen>
|
||||||
<< "EOF"</userinput>
|
<userinput>cat > /etc/sysconfig/nic-config/ifcfg-eth0 << "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
|
||||||
|
@ -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 > functions << "EOF"</userinput>
|
<userinput>cat > functions << "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>
|
||||||
|
|
||||||
|
@ -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 > halt << "EOF"</userinput>
|
<userinput>cat > halt << "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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<my-IP> myhost.mydomain.org aliases
|
<screen>
|
||||||
</literallayout></blockquote>
|
<my-IP> myhost.mydomain.org aliases
|
||||||
|
</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 > /etc/hosts << "EOF"</userinput>
|
<userinput>cat > /etc/hosts << "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 > /etc/hosts << "EOF"</userinput>
|
<userinput>cat > /etc/hosts << "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
|
||||||
|
@ -8,7 +8,8 @@ US keyboard layout. A new file
|
|||||||
created:
|
created:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<literallayout>
|
<para>
|
||||||
|
<screen>
|
||||||
<userinput>cat > loadkeys << "EOF"</userinput>
|
<userinput>cat > loadkeys << "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>
|
||||||
|
|
||||||
|
@ -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 > /etc/init.d/localnet << "EOF"</userinput>
|
<userinput>cat > /etc/init.d/localnet << "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>
|
||||||
|
|
||||||
|
@ -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 > mountfs << "EOF"</userinput>
|
<userinput>cat > mountfs << "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>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
<userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput>
|
||||||
|
</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
|
||||||
|
@ -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 > rc << "EOF"</userinput>
|
<userinput>cat > rc << "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>
|
||||||
|
|
||||||
|
@ -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 > rcS << "EOF"</userinput>
|
<userinput>cat > rcS << "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>
|
||||||
|
|
||||||
|
@ -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 > reboot << "EOF"</userinput>
|
<userinput>cat > reboot << "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>
|
||||||
|
|
||||||
|
@ -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 > sendsignals << "EOF"</userinput>
|
<userinput>cat > sendsignals << "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>
|
||||||
|
|
||||||
|
@ -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 > setclock << "EOF"</userinput>
|
<userinput>cat > setclock << "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 > /etc/sysconfig/clock << "EOF"</userinput>
|
<userinput>cat > /etc/sysconfig/clock << "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
|
||||||
|
@ -17,49 +17,47 @@ S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but
|
|||||||
K002otherdaemon.
|
K002otherdaemon.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<blockquote><literallayout>
|
<para>
|
||||||
<userinput>cd /etc/init.d &&</userinput>
|
<screen>
|
||||||
<userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs
|
<userinput>cd /etc/init.d &&</userinput>
|
||||||
reboot &&</userinput>
|
<userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot &&</userinput>
|
||||||
<userinput>chmod 754 sendsignals setclock sysklogd template
|
<userinput>chmod 754 sendsignals setclock sysklogd template &&</userinput>
|
||||||
&&</userinput>
|
<userinput>chmod 754 localnet ethnet &&</userinput>
|
||||||
<userinput>chmod 754 localnet ethnet &&</userinput>
|
<userinput>cd ../rc0.d &&</userinput>
|
||||||
<userinput>cd ../rc0.d &&</userinput>
|
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/sendsignals S800sendsignals &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
<userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
||||||
</userinput>
|
<userinput>ln -s ../init.d/halt S999halt &&</userinput>
|
||||||
<userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
<userinput>cd ../rc6.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/halt S999halt &&</userinput>
|
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
||||||
<userinput>cd ../rc6.d &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
<userinput>ln -s ../init.d/sendsignals S800sendsignals &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
<userinput>ln -s ../init.d/reboot S999reboot &&</userinput>
|
||||||
</userinput>
|
<userinput>cd ../rcS.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
<userinput>ln -s ../init.d/localnet S100localnet &&</userinput>
|
||||||
<userinput>ln -s ../init.d/reboot S999reboot &&</userinput>
|
<userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput>
|
||||||
<userinput>cd ../rcS.d &&</userinput>
|
<userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput>
|
||||||
<userinput>ln -s ../init.d/localnet S100localnet &&</userinput>
|
<userinput>ln -s ../init.d/setclock S400setclock &&</userinput>
|
||||||
<userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput>
|
<userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput>
|
||||||
<userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput>
|
<userinput>cd ../rc1.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/setclock S400setclock &&</userinput>
|
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
||||||
<userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
||||||
<userinput>cd ../rc1.d &&</userinput>
|
<userinput>cd ../rc2.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
||||||
<userinput>cd ../rc2.d &&</userinput>
|
<userinput>cd ../rc3.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
||||||
<userinput>cd ../rc3.d &&</userinput>
|
<userinput>cd ../rc4.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
||||||
<userinput>cd ../rc4.d &&</userinput>
|
<userinput>cd ../rc5.d &&</userinput>
|
||||||
<userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
<userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
|
||||||
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
||||||
<userinput>cd ../rc5.d &&</userinput>
|
</screen>
|
||||||
<userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
|
</para>
|
||||||
<userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
|
||||||
</literallayout></blockquote>
|
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -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 > sysklogd << "EOF"</userinput>
|
<userinput>cat > sysklogd << "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>
|
||||||
|
|
||||||
|
@ -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 > template << "EOF"</userinput>
|
<userinput>cat > template << "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>
|
||||||
|
|
||||||
|
@ -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 > /etc/fstab << "EOF"</userinput>
|
<userinput>cat > /etc/fstab << "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>
|
||||||
<LFS-partition designation>, <swap-partition
|
<LFS-partition designation>, <swap-partition
|
||||||
|
@ -9,18 +9,19 @@ 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>
|
||||||
<userinput>cd /usr/src/linux &&</userinput>
|
<screen>
|
||||||
<userinput>make mrproper &&</userinput>
|
<userinput>cd /usr/src/linux &&</userinput>
|
||||||
<userinput>make menuconfig &&</userinput>
|
<userinput>make mrproper &&</userinput>
|
||||||
<userinput>make dep &&</userinput>
|
<userinput>make menuconfig &&</userinput>
|
||||||
<userinput>make bzImage &&</userinput>
|
<userinput>make dep &&</userinput>
|
||||||
<userinput>make modules &&</userinput>
|
<userinput>make bzImage &&</userinput>
|
||||||
<userinput>make modules_install &&</userinput>
|
<userinput>make modules &&</userinput>
|
||||||
<userinput>cp arch/i386/boot/bzImage /boot/lfskernel &&
|
<userinput>make modules_install &&</userinput>
|
||||||
</userinput>
|
<userinput>cp arch/i386/boot/bzImage /boot/lfskernel &&</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.
|
||||||
|
@ -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>
|
||||||
<userinput>logout</userinput>
|
<screen>
|
||||||
<userinput>cp $LFS/boot/lfskernel /boot</userinput>
|
<userinput>logout</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>cp $LFS/boot/lfskernel /boot</userinput>
|
||||||
|
</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>
|
||||||
<userinput>cat >> /etc/lilo.conf << "EOF"</userinput>
|
<screen>
|
||||||
image=/boot/lfskernel
|
<userinput>cat >> /etc/lilo.conf << "EOF"</userinput>
|
||||||
label=lfs
|
image=/boot/lfskernel
|
||||||
root=<partition>
|
label=lfs
|
||||||
read-only
|
root=<partition>
|
||||||
<userinput>EOF</userinput>
|
read-only
|
||||||
</literallayout>
|
<userinput>EOF</userinput>
|
||||||
|
</screen>
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<partition> must be replaced by the LFS partition's designation.
|
<partition> 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>
|
||||||
<userinput>/sbin/lilo</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>/sbin/lilo</userinput>
|
||||||
|
</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>
|
||||||
<userinput>cp /etc/lilo.conf $LFS/etc &&</userinput>
|
<screen>
|
||||||
<userinput>cp <kernel images> $LFS/boot</userinput>
|
<userinput>cp /etc/lilo.conf $LFS/etc &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>cp <kernel images> $LFS/boot</userinput>
|
||||||
|
</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
|
||||||
|
@ -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>
|
||||||
<userinput>umount $LFS/proc &&</userinput>
|
<screen>
|
||||||
<userinput>umount $LFS</userinput>
|
<userinput>umount $LFS/proc &&</userinput>
|
||||||
</literallayout></blockquote>
|
<userinput>umount $LFS</userinput>
|
||||||
|
</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>
|
||||||
<userinput>/sbin/shutdown -r now</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>/sbin/shutdown -r now</userinput>
|
||||||
|
</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
|
||||||
|
@ -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>
|
||||||
<userinput>touch /etc/lfs-&version;</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>touch /etc/lfs-&version;</userinput>
|
||||||
|
</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>
|
||||||
<userinput>/sbin/lilo</userinput>
|
<screen>
|
||||||
</literallayout></blockquote>
|
<userinput>/sbin/lilo</userinput>
|
||||||
|
</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
|
||||||
|
Loading…
Reference in New Issue
Block a user