config-glibc.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <sect2><title>Configuring Glibc</title>
  2. <para>We need to create the /etc/nsswitch.conf file. Although glibc should
  3. provide defaults when this file is missing or corrupt, its defaults don't work
  4. well with networking which will be dealt with in a later chapter. Also, our
  5. timezone needs to be set up.</para>
  6. <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  7. following:</para>
  8. <para><screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"</userinput>
  9. # Begin /etc/nsswitch.conf
  10. passwd: files
  11. group: files
  12. shadow: files
  13. publickey: files
  14. hosts: files dns
  15. networks: files
  16. protocols: db files
  17. services: db files
  18. ethers: db files
  19. rpc: db files
  20. netgroup: db files
  21. # End /etc/nsswitch.conf
  22. <userinput>EOF</userinput></screen></para>
  23. <para>The <userinput>tzselect</userinput> script has to be run and the
  24. questions regarding your timezone have to be answered.
  25. When you're done, the script will give the
  26. location of the needed timezone file.</para>
  27. <para> Create the <filename class="directory">/etc/localtime</filename> symlink
  28. by running:</para>
  29. <para><screen><userinput>ln -sf ../usr/share/zoneinfo/&lt;tzselect's output&gt; /etc/localtime</userinput></screen></para>
  30. <para>tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
  31. <emphasis>Canada/Eastern</emphasis>.</para>
  32. <para>The symlink you'd create with that information would be:</para>
  33. <para><screen><userinput>ln -sf ../usr/share/zoneinfo/EST5EDT /etc/localtime</userinput></screen></para>
  34. <para>Or:</para>
  35. <para><screen><userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para>
  36. </sect2>