config-glibc.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <sect2><title>Configuring Glibc</title>
  2. <para>
  3. We need to create the /etc/nsswitch.conf file. Although glibc should provide
  4. defaults when this file is missing or corrupt, it's defaults don't work work
  5. well with networking which will be dealt with in a later chapter. Also, our
  6. timezone needs to be setup.
  7. </para>
  8. <para>
  9. Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  10. following:
  11. </para>
  12. <literallayout>
  13. <userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"</userinput>
  14. # Begin /etc/nsswitch.conf
  15. passwd: files
  16. group: files
  17. shadow: files
  18. publickey: files
  19. hosts: files dns
  20. networks: files
  21. protocols: db files
  22. services: db files
  23. ethers: db files
  24. rpc: db files
  25. netgroup: db files
  26. # End /etc/nsswitch.conf
  27. <userinput>EOF</userinput>
  28. </literallayout>
  29. <para>
  30. The <userinput>tzselect</userinput> script has to be run and the questions
  31. regarding the user's timezone have to be answered.
  32. When the user is done, the script will give the
  33. location of the needed timezone file.
  34. </para>
  35. <para>
  36. Create the <filename class="directory">/etc/localtime</filename> symlink
  37. by running:
  38. </para>
  39. <blockquote><literallayout>
  40. <userinput>cd /etc &amp;&amp;</userinput>
  41. <userinput>ln -sf ../usr/share/zoneinfo/&lt;tzselect's output&gt;
  42. localtime</userinput>
  43. </literallayout></blockquote>
  44. <para>
  45. tzselect's output can be something like <emphasis>EST5EDT</emphasis> or
  46. <emphasis>Canada/Eastern</emphasis>.
  47. </para>
  48. <para>
  49. The symlink a user would create with that information would be:
  50. </para>
  51. <blockquote><literallayout>
  52. <userinput>ln -s ../usr/share/zoneinfo/EST5EDT localtime</userinput>
  53. </literallayout></blockquote>
  54. <para>
  55. Or:
  56. </para>
  57. <blockquote><literallayout>
  58. <userinput>ln -s ../usr/share/zoneinfo/Canada/Eastern localtime
  59. </userinput>
  60. </literallayout></blockquote>
  61. </sect2>