mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-05 20:09:57 +01:00
QA Chap6 part2
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2404 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
7bfad056d6
commit
4f8a3af985
@ -55,3 +55,36 @@ by running:</para>
|
|||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
<sect2><title> </title><para> </para></sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Configuring Dynamic Loader</title>
|
||||||
|
|
||||||
|
<para>By default, the dynamic loader
|
||||||
|
(<filename>/lib/ld-linux.so.2</filename>) searches through <filename
|
||||||
|
class="directory">/lib</filename> and <filename
|
||||||
|
class="directory">/usr/lib</filename> for dynamic libraries that are needed
|
||||||
|
by programs when you run them. However, if there are libraries in
|
||||||
|
directories other than <filename class="directory">/lib</filename> and
|
||||||
|
<filename class="directory">/usr/lib</filename>, you need to add them to
|
||||||
|
the <filename>/etc/ld.so.conf</filename> file for the dynamic
|
||||||
|
loader to find them. Two directories that are commonly known to contain
|
||||||
|
additional libraries are <filename
|
||||||
|
class="directory">/usr/local/lib</filename> and <filename
|
||||||
|
class="directory">/opt/lib</filename>, so we add those directories to the
|
||||||
|
dynamic loader's search path.</para>
|
||||||
|
|
||||||
|
<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
||||||
|
following:</para>
|
||||||
|
|
||||||
|
<para><screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
||||||
|
# Begin /etc/ld.so.conf
|
||||||
|
|
||||||
|
/usr/local/lib
|
||||||
|
/opt/lib
|
||||||
|
|
||||||
|
# End /etc/ld.so.conf
|
||||||
|
<userinput>EOF</userinput></screen></para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
<sect2>
|
|
||||||
<title>Configuring Dynamic Loader</title>
|
|
||||||
|
|
||||||
<para>By default, the dynamic loader
|
|
||||||
(<filename>/lib/ld-linux.so.2</filename>) searches through <filename
|
|
||||||
class="directory">/lib</filename> and <filename
|
|
||||||
class="directory">/usr/lib</filename> for dynamic libraries that are needed
|
|
||||||
by programs when you run them. However, if there are libraries in
|
|
||||||
directories other than <filename class="directory">/lib</filename> and
|
|
||||||
<filename class="directory">/usr/lib</filename>, you need to add them to
|
|
||||||
the <filename>/etc/ld.so.conf</filename> file for the dynamic
|
|
||||||
loader to find them. Two directories that are commonly known to contain
|
|
||||||
additional libraries are <filename
|
|
||||||
class="directory">/usr/local/lib</filename> and <filename
|
|
||||||
class="directory">/opt/lib</filename>, so we add those directories to the
|
|
||||||
dynamic loader's search path.</para>
|
|
||||||
|
|
||||||
<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
|
||||||
following:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
|
||||||
# Begin /etc/ld.so.conf
|
|
||||||
|
|
||||||
/usr/local/lib
|
|
||||||
/opt/lib
|
|
||||||
|
|
||||||
# End /etc/ld.so.conf
|
|
||||||
<userinput>EOF</userinput></screen></para>
|
|
||||||
|
|
||||||
</sect2>
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
<sect2><title> </title><para> </para></sect2>
|
||||||
|
|
||||||
<sect2><title>Configuring Shadow Password Suite</title>
|
<sect2><title>Configuring Shadow Password Suite</title>
|
||||||
|
|
||||||
<para>This package contains utilities to modify users' passwords, add
|
<para>This package contains utilities to modify users' passwords, add
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<sect2><title> </title><para> </para></sect2>
|
||||||
|
|
||||||
<sect2><title>Configuring Sysklogd</title>
|
<sect2><title>Configuring Sysklogd</title>
|
||||||
|
|
||||||
<para>Create a new file <filename>/etc/syslog.conf</filename> by running the
|
<para>Create a new file <filename>/etc/syslog.conf</filename> by running the
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<sect2><title> </title><para> </para></sect2>
|
||||||
|
|
||||||
<sect2><title>Configuring Sysvinit</title>
|
<sect2><title>Configuring Sysvinit</title>
|
||||||
|
|
||||||
<para>Create a new file <filename>/etc/inittab</filename> by running the
|
<para>Create a new file <filename>/etc/inittab</filename> by running the
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
<sect2><title> </title><para> </para></sect2>
|
||||||
|
|
||||||
<sect2><title>Configuring Vim</title>
|
<sect2><title>Configuring Vim</title>
|
||||||
|
|
||||||
<para>By default, vim runs in vi compatible mode. Some people might like this,
|
<para>By default, vim runs in vi compatible mode. Some people might like this,
|
||||||
|
@ -1,16 +1,10 @@
|
|||||||
<sect1 id="ch06-configure">
|
<sect1 id="ch06-configure">
|
||||||
<title>Configuring essential software</title>
|
<title>Configuring system components</title>
|
||||||
<?dbhtml filename="configure.html" dir="chapter06"?>
|
<?dbhtml filename="configure.html" dir="chapter06"?>
|
||||||
|
|
||||||
<para>Now that all software is installed, all that we need to do to get a few
|
<para>Now that all software is installed, all that we need to do is perform
|
||||||
programs running properly is to create their configuration files.</para>
|
a few configuration tasks.</para>
|
||||||
|
|
||||||
&c6-cf-vim;
|
|
||||||
&c6-cf-glibc;
|
|
||||||
&c6-cf-ldso;
|
|
||||||
&c6-cf-sysklogd;
|
|
||||||
&c6-cf-shadowpwd;
|
|
||||||
&c6-cf-sysvinit;
|
|
||||||
&c6-cf-keyboard;
|
&c6-cf-keyboard;
|
||||||
&c6-cf-utmp;
|
&c6-cf-utmp;
|
||||||
&c6-cf-password;
|
&c6-cf-password;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<title>Installation of E2fsprogs</title>
|
<title>Installation of E2fsprogs</title>
|
||||||
|
|
||||||
<para>It is recommended to build E2fsprogs outside of the
|
<para>It is recommended to build E2fsprogs outside of the
|
||||||
source tree. Create the build directory:</para>
|
source tree:</para>
|
||||||
|
|
||||||
<para><screen><userinput>mkdir ../e2fsprogs-build &&
|
<para><screen><userinput>mkdir ../e2fsprogs-build &&
|
||||||
cd ../e2fsprogs-build</userinput></screen></para>
|
cd ../e2fsprogs-build</userinput></screen></para>
|
||||||
@ -18,15 +18,14 @@ cd ../e2fsprogs-build</userinput></screen></para>
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
|
||||||
<listitem><para><userinput>--with-root-prefix="":</userinput> This option
|
<listitem><para><userinput>--with-root-prefix="":</userinput> Certain
|
||||||
is used because of the e2fsprogs Makefile. Some programs are essential for
|
programs (such as the e2fsck program) are considered essential programs.
|
||||||
system use when, for example, <filename class="directory">/usr</filename>
|
When, for example, <filename class="directory">/usr</filename> isn't
|
||||||
isn't mounted (like the e2fsck program). These programs and libraries,
|
mounted, these essential program have to be available. They belong in
|
||||||
therefore, belong in directories like <filename
|
directories like <filename class="directory">/lib</filename> and
|
||||||
class="directory">/lib</filename> and <filename
|
<filename class="directory">/sbin</filename>. If this option isn't passed
|
||||||
class="directory">/sbin</filename>. If this option isn't passed to
|
to E2fsprogs's configure, the programs are placed in the
|
||||||
E2fsprogs's configure, the programs are placed in the <filename
|
<filename class="directory">/usr</filename> directory, which is not what we
|
||||||
class="directory">/usr</filename> directory, which is not what we
|
|
||||||
want.</para></listitem>
|
want.</para></listitem>
|
||||||
|
|
||||||
<listitem><para><userinput>--enable-elf-shlibs:</userinput> This creates
|
<listitem><para><userinput>--enable-elf-shlibs:</userinput> This creates
|
||||||
|
@ -15,11 +15,6 @@ GRUB, which is available at <ulink url="&hints-root;grub-howto.txt"/>.</para>
|
|||||||
|
|
||||||
<para><screen><userinput>make install</userinput></screen></para>
|
<para><screen><userinput>make install</userinput></screen></para>
|
||||||
|
|
||||||
<para>It appears that compilation of this package fails on certain machines
|
|
||||||
when the <emphasis>-g</emphasis> compiler flag is used. If you can't compile
|
|
||||||
Lilo at all, you should try to remove the <emphasis>-g</emphasis> value from
|
|
||||||
the CFLAGS variable in the <filename>Makefile</filename> file.</para>
|
|
||||||
|
|
||||||
<para>At the end of the installation, a message will appear stating that
|
<para>At the end of the installation, a message will appear stating that
|
||||||
<filename>/sbin/lilo</filename> has to be executed. This is pointless because
|
<filename>/sbin/lilo</filename> has to be executed. This is pointless because
|
||||||
the <filename>/etc/lilo.conf</filename> file isn't present yet. We will
|
the <filename>/etc/lilo.conf</filename> file isn't present yet. We will
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
<para>Prepare Patch to be compiled:</para>
|
<para>Prepare Patch to be compiled:</para>
|
||||||
|
|
||||||
<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
|
<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen></para>
|
||||||
./configure --prefix=/usr</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>Continue with compiling the package:</para>
|
<para>Continue with compiling the package:</para>
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ be found at <ulink url="&hints-root;shadowpasswd_plus.txt"/>.</para>
|
|||||||
|
|
||||||
<para>Prepare Shadow to be compiled:</para>
|
<para>Prepare Shadow to be compiled:</para>
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=/usr \
|
<para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
|
||||||
--libdir=/usr/lib --enable-shared</userinput></screen></para>
|
--enable-shared</userinput></screen></para>
|
||||||
|
|
||||||
<para>Continue with compiling the package:</para>
|
<para>Continue with compiling the package:</para>
|
||||||
|
|
||||||
|
@ -8,5 +8,6 @@ Estimated required disk space: &shadow-compsize;</screen>
|
|||||||
&aa-shadowpwd-shortdesc;
|
&aa-shadowpwd-shortdesc;
|
||||||
&aa-shadowpwd-dep;
|
&aa-shadowpwd-dep;
|
||||||
&c6-shadowpwd-inst;
|
&c6-shadowpwd-inst;
|
||||||
|
&c6-cf-shadowpwd;
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -8,5 +8,6 @@ Estimated required disk space: &sysklogd-compsize;</screen>
|
|||||||
&aa-sysklogd-shortdesc;
|
&aa-sysklogd-shortdesc;
|
||||||
&aa-sysklogd-dep;
|
&aa-sysklogd-dep;
|
||||||
&c6-sysklogd-inst;
|
&c6-sysklogd-inst;
|
||||||
|
&c6-cf-sysklogd;
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -8,5 +8,6 @@ Estimated required disk space: &sysvinit-compsize;</screen>
|
|||||||
&aa-sysvinit-shortdesc;
|
&aa-sysvinit-shortdesc;
|
||||||
&aa-sysvinit-dep;
|
&aa-sysvinit-dep;
|
||||||
&c6-sysvinit-inst;
|
&c6-sysvinit-inst;
|
||||||
|
&c6-cf-sysvinit;
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -14,8 +14,8 @@ gzip files.</para>
|
|||||||
|
|
||||||
<para>Prepare Tar to be compiled:</para>
|
<para>Prepare Tar to be compiled:</para>
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=/usr \
|
<para><screen><userinput>./configure --prefix=/usr --bindir=/bin \
|
||||||
--libexecdir=/usr/bin --bindir=/bin</userinput></screen></para>
|
--libexecdir=/usr/bin</userinput></screen></para>
|
||||||
|
|
||||||
<para>Continue with compiling the package:</para>
|
<para>Continue with compiling the package:</para>
|
||||||
|
|
||||||
|
@ -9,5 +9,6 @@ Estimated required disk space: &vim-compsize;</screen>
|
|||||||
&aa-vim-alt;
|
&aa-vim-alt;
|
||||||
&aa-vim-dep;
|
&aa-vim-dep;
|
||||||
&c6-vim-inst;
|
&c6-vim-inst;
|
||||||
|
&c6-cf-vim;
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Loading…
Reference in New Issue
Block a user