1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2><title>Configuring Glibc</title>
|
---|
4 |
|
---|
5 | <para>We need to create the <filename>/etc/nsswitch.conf</filename> file,
|
---|
6 | because, although Glibc provides defaults when this file is missing or corrupt,
|
---|
7 | the Glibc defaults don't work well with networking. Also, our timezone needs
|
---|
8 | to be set up.</para>
|
---|
9 |
|
---|
10 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
---|
11 | following:</para>
|
---|
12 |
|
---|
13 | <para><screen><userinput>cat > /etc/nsswitch.conf << "EOF"</userinput>
|
---|
14 | # Begin /etc/nsswitch.conf
|
---|
15 |
|
---|
16 | passwd: files
|
---|
17 | group: files
|
---|
18 | shadow: files
|
---|
19 |
|
---|
20 | publickey: files
|
---|
21 |
|
---|
22 | hosts: files dns
|
---|
23 | networks: files
|
---|
24 |
|
---|
25 | protocols: db files
|
---|
26 | services: db files
|
---|
27 | ethers: db files
|
---|
28 | rpc: db files
|
---|
29 |
|
---|
30 | netgroup: db files
|
---|
31 |
|
---|
32 | # End /etc/nsswitch.conf
|
---|
33 | <userinput>EOF</userinput></screen></para>
|
---|
34 |
|
---|
35 | <para>To find out what timezone you're in, run the following script:</para>
|
---|
36 |
|
---|
37 | <para><screen><userinput>tzselect</userinput></screen></para>
|
---|
38 |
|
---|
39 | <para>When you've answered a few questions about your location, the script will
|
---|
40 | output the name of your timezone, something like <emphasis>EST5EDT</emphasis>
|
---|
41 | or <emphasis>Canada/Eastern</emphasis>. Then create the
|
---|
42 | <filename>/etc/localtime</filename> file by running:</para>
|
---|
43 |
|
---|
44 | <para><screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para>
|
---|
45 |
|
---|
46 | <para>Of course, instead of <emphasis>Canada/Eastern</emphasis>, fill in
|
---|
47 | the name of the timezone that the <userinput>tzselect</userinput> script
|
---|
48 | gave you.</para>
|
---|
49 |
|
---|
50 | </sect2>
|
---|
51 |
|
---|
52 | <sect2><title> </title><para> </para></sect2>
|
---|
53 |
|
---|
54 | <sect2>
|
---|
55 | <title>Configuring Dynamic Loader</title>
|
---|
56 |
|
---|
57 | <para>By default, the dynamic loader
|
---|
58 | (<filename>/lib/ld-linux.so.2</filename>) searches through <filename
|
---|
59 | class="directory">/lib</filename> and <filename
|
---|
60 | class="directory">/usr/lib</filename> for dynamic libraries that are needed
|
---|
61 | by programs when you run them. However, if there are libraries in
|
---|
62 | directories other than <filename class="directory">/lib</filename> and
|
---|
63 | <filename class="directory">/usr/lib</filename>, you need to add them to
|
---|
64 | the <filename>/etc/ld.so.conf</filename> file for the dynamic
|
---|
65 | loader to find them. Two directories that are commonly known to contain
|
---|
66 | additional libraries are <filename
|
---|
67 | class="directory">/usr/local/lib</filename> and <filename
|
---|
68 | class="directory">/opt/lib</filename>, so we add those directories to the
|
---|
69 | dynamic loader's search path.</para>
|
---|
70 |
|
---|
71 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
72 | following:</para>
|
---|
73 |
|
---|
74 | <para><screen><userinput>cat > /etc/ld.so.conf << "EOF"</userinput>
|
---|
75 | # Begin /etc/ld.so.conf
|
---|
76 |
|
---|
77 | /usr/local/lib
|
---|
78 | /opt/lib
|
---|
79 |
|
---|
80 | # End /etc/ld.so.conf
|
---|
81 | <userinput>EOF</userinput></screen></para>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|