From a72ca3351152a43dd55cc536b516860cd9864e53 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 7 Apr 2015 14:06:14 +0000 Subject: Split glibc configuration into separate sections git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10889 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/glibc.xml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'chapter06') 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 + -- cgit v1.2.3-54-g00ecf