2001-01-24 00:31:17 +00:00
|
|
|
<sect2><title>Configuring Glibc</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
We need to create the /etc/nsswitch.conf file. Although glibc should provide
|
2001-04-22 17:06:33 +01:00
|
|
|
defaults when this file is missing or corrupt, it's defaults don't work
|
2001-01-24 00:31:17 +00:00
|
|
|
well with networking which will be dealt with in a later chapter. Also, our
|
|
|
|
timezone needs to be setup.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
|
|
|
following:
|
|
|
|
</para>
|
|
|
|
|
2001-07-10 16:06:31 +01:00
|
|
|
<para>
|
|
|
|
<screen>
|
2001-01-24 00:31:17 +00:00
|
|
|
<userinput>cat > /etc/nsswitch.conf << "EOF"</userinput>
|
|
|
|
# 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
|
|
|
|
<userinput>EOF</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
</screen>
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
2001-03-19 16:02:50 +00:00
|
|
|
The <userinput>tzselect</userinput> script has to be run and the questions
|
2001-04-25 22:21:54 +01:00
|
|
|
regarding your timezone have to be answered.
|
|
|
|
When you're done, the script will give the
|
2001-03-19 16:02:50 +00:00
|
|
|
location of the needed timezone file.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Create the <filename class="directory">/etc/localtime</filename> symlink
|
|
|
|
by running:
|
|
|
|
</para>
|
|
|
|
|
2001-07-10 16:06:31 +01:00
|
|
|
<para>
|
|
|
|
<screen>
|
|
|
|
<userinput>cd /etc &&</userinput>
|
|
|
|
<userinput>ln -sf ../usr/share/zoneinfo/<tzselect's output> localtime</userinput>
|
|
|
|
</screen>
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
|
|
|
|
<emphasis>Canada/Eastern</emphasis>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-04-25 22:21:54 +01:00
|
|
|
The symlink you'd create with that information would be:
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
2001-07-10 16:06:31 +01:00
|
|
|
<para>
|
|
|
|
<screen>
|
|
|
|
<userinput>ln -sf ../usr/share/zoneinfo/EST5EDT localtime</userinput>
|
|
|
|
</screen>
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Or:
|
|
|
|
</para>
|
|
|
|
|
2001-07-10 16:06:31 +01:00
|
|
|
<para>
|
|
|
|
<screen>
|
|
|
|
<userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern localtime </userinput>
|
|
|
|
</screen>
|
|
|
|
</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|