hostname.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-scripts-hostname">
  7. <title>Configuring the localnet script</title>
  8. <?dbhtml filename="hostname.html"?>
  9. <indexterm zone="ch-scripts-hostname">
  10. <primary sortas="d-localnet">localnet</primary>
  11. <secondary>configuring</secondary></indexterm>
  12. <para>Part of the localnet script is setting up the system's hostname. This
  13. needs to be configured in the /etc/sysconfig/network.</para>
  14. <para>Create the /etc/sysconfig/network file and enter a hostname by
  15. running:</para>
  16. <screen><userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput></screen>
  17. <para><quote>lfs</quote> needs to be replaced with the name the computer is
  18. to be called. You should not enter the FQDN (Fully Qualified Domain
  19. Name) here. That information will be put in the
  20. <filename>/etc/hosts</filename> file later on.</para>
  21. </sect1>