1 <sect2><title>Configuring Glibc</title>
3 <para>We need to create the /etc/nsswitch.conf file. Although glibc should
4 provide defaults when this file is missing or corrupt, its defaults don't work
5 well with networking which will be dealt with in a later chapter. Also, our
6 timezone needs to be set up.</para>
8 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
11 <para><screen><userinput>cat > /etc/nsswitch.conf << "EOF"</userinput>
12 # Begin /etc/nsswitch.conf
30 # End /etc/nsswitch.conf
31 <userinput>EOF</userinput></screen></para>
33 <para>The <userinput>tzselect</userinput> script has to be run and the
34 questions regarding your timezone have to be answered.
35 When you're done, the script will give the
36 location of the needed timezone file.</para>
38 <para> Create the <filename class="directory">/etc/localtime</filename> symlink
41 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> /etc/localtime</userinput></screen></para>
43 <para>tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
44 <emphasis>Canada/Eastern</emphasis>.</para>
46 <para>The symlink you'd create with that information would be:</para>
48 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/EST5EDT /etc/localtime</userinput></screen></para>
52 <para><screen><userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para>