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 The tzselect script has to be run and the questions regarding the user's timezone have to be answered. When the user is done, the script will give the location of the needed timezone file. Create the /etc/localtime symlink by running:
cd /etc && ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime
tzselect's output can be something like EST5EDT or Canada/Eastern. The symlink a user would create with that information would be:
ln -s ../usr/share/zoneinfo/EST5EDT localtime
Or:
ln -s ../usr/share/zoneinfo/Canada/Eastern localtime