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 /etc/localtime + + Adding nsswitch.conf + The /etc/nsswitch.conf 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. + because the Glibc defaults do not work well in a networked environment. + Create a new file /etc/nsswitch.conf by running the following: @@ -269,7 +271,12 @@ rpc: files # End /etc/nsswitch.conf EOF - Install timezone data: + + + + Adding time zone data + + Install and set up the timezone data with the following: tar -xf ../tzdata&tzdata-version;.tar.gz ZONEINFO=/usr/share/zoneinfo @@ -347,9 +354,9 @@ unset ZONEINFO Replace <xxx> with the name of the time zone selected (e.g., Canada/Eastern). - + - + Configuring the Dynamic Loader @@ -392,6 +399,7 @@ include /etc/ld.so.conf.d/*.conf EOF mkdir -pv /etc/ld.so.conf.d +