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 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 your timezone have to be answered. When you're 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 you'd create with that information would be:
ln -sf ../usr/share/zoneinfo/EST5EDT localtime
Or:
ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime