hostname.xml 711 B

12345678910111213141516171819
  1. <sect1 id="ch07-hostname">
  2. <title>Configuring the localnet script</title>
  3. <?dbhtml filename="hostname.html" dir="chapter07"?>
  4. <para>Part of the localnet script is setting up the system's hostname. This
  5. needs to be configured in the /etc/sysconfig/network.</para>
  6. <para>Create the /etc/sysconfig/network file and enter a hostname by
  7. running:</para>
  8. <para><screen><userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput></screen></para>
  9. <para><quote>lfs</quote> needs to be replaced with the name the computer is
  10. to be called. You should not enter the FQDN (Fully Qualified Domain
  11. Name) here. That information will be put in the
  12. <filename>/etc/hosts</filename> file later on.</para>
  13. </sect1>