diff options
Diffstat (limited to 'chapter06/glibc.xml')
-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 bd68a6075..4eff24af1 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -248,10 +248,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> @@ -274,7 +276,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 @@ -352,9 +359,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"> @@ -397,6 +404,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"> |