mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Split glibc configuration into separate sections
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10889 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
3375f615d7
commit
a72ca33511
@ -243,10 +243,12 @@ localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
|
||||
<primary sortas="e-/etc/localtime">/etc/localtime</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect3>
|
||||
<title>Adding nsswitch.conf</title>
|
||||
|
||||
<para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
|
||||
because, although Glibc provides defaults when this file is missing or corrupt,
|
||||
the Glibc defaults do not work well in a networked environment. The time zone
|
||||
also needs to be configured.</para>
|
||||
because the Glibc defaults do not work well in a networked environment.
|
||||
</para>
|
||||
|
||||
<para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
||||
following:</para>
|
||||
@ -269,7 +271,12 @@ rpc: files
|
||||
# End /etc/nsswitch.conf</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
<para>Install timezone data:</para>
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>Adding time zone data</title>
|
||||
|
||||
<para>Install and set up the timezone data with the following:</para>
|
||||
<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
|
||||
|
||||
ZONEINFO=/usr/share/zoneinfo
|
||||
@ -347,9 +354,9 @@ unset ZONEINFO</userinput></screen>
|
||||
<para>Replace <replaceable><xxx></replaceable> with the name of the
|
||||
time zone selected (e.g., Canada/Eastern).</para>
|
||||
|
||||
</sect2>
|
||||
</sect3>
|
||||
|
||||
<sect2 id="conf-ld" role="configuration">
|
||||
<sect3 id="conf-ld" role="configuration">
|
||||
<title>Configuring the Dynamic Loader</title>
|
||||
|
||||
<indexterm zone="conf-ld">
|
||||
@ -392,6 +399,7 @@ include /etc/ld.so.conf.d/*.conf
|
||||
EOF
|
||||
mkdir -pv /etc/ld.so.conf.d</userinput></screen>
|
||||
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="contents-glibc" role="content">
|
||||
|
Loading…
Reference in New Issue
Block a user