From 6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 24 Jan 2001 00:31:17 +0000 Subject: Initial commit - LFS 2.4.4 files git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/config-glibc.sgml | 88 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 chapter06/config-glibc.sgml (limited to 'chapter06/config-glibc.sgml') diff --git a/chapter06/config-glibc.sgml b/chapter06/config-glibc.sgml new file mode 100644 index 000000000..5272c536e --- /dev/null +++ b/chapter06/config-glibc.sgml @@ -0,0 +1,88 @@ +Configuring Glibc + + +We need to create the /etc/nsswitch.conf file. Although glibc should provide +defaults when this file is missing or corrupt, it's defaults don't work work +well with networking which will be dealt with in a later chapter. Also, our +timezone needs to be setup. + + + +Create a new file /etc/nsswitch.conf by running the +following: + + + + +cat > /etc/nsswitch.conf << "EOF" +# Begin /etc/nsswitch.conf + +passwd: files +group: files +shadow: files + +publickey: files + +hosts: files dns +networks: files + +protocols: db files +services: db files +ethers: db files +rpc: db files + +netgroup: db files + +# End /etc/nsswitch.conf +EOF + + + + +Run the tzselect script and answer the questions +regarding your timezone. When you're done, the script will give you the +location of the timezone file you need. + + + +Create the /etc/localtime symlink +by running: + + +
+ + cd /etc && + rm localtime && + ln -s ../usr/share/zoneinfo/<tzselect's output> + localtime + +
+ + +tzselect's output can be something like EST5EDT or +Canada/Eastern. + + + +The symlink you would create with that information would be: + + +
+ + ln -s ../usr/share/zoneinfo/EST5EDT localtime + +
+ + +Or: + + +
+ + ln -s ../usr/share/zoneinfo/Canada/Eastern localtime + + +
+ +
+ -- cgit v1.2.3-54-g00ecf