diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2015-04-07 14:06:14 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2015-04-07 14:06:14 +0000 |
commit | a72ca3351152a43dd55cc536b516860cd9864e53 (patch) | |
tree | 9a8b26331a4b846e88bbeed1ba0795217d88d5a8 /chapter06 | |
parent | 3375f615d76655cf5ce2d934bb2ec7d8511493ed (diff) |
Split glibc configuration into separate sections
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10889 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/glibc.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 183b33c75..c9cfa5aaf 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -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"> |