Added a few comments here and there
[linux_from_scratch.git] / BOOK / chapter07 / hostname.xml
blobad9ae08d7c58a893c0d297d6d5aedc42def8968d
1 <sect1 id="ch-scripts-hostname">
2 <title>Configuring the localnet script</title>
3 <?dbhtml filename="hostname.html" dir="chapter07"?>
5 <para>Part of the localnet script is setting up the system's hostname. This
6 needs to be configured in the /etc/sysconfig/network.</para>
8 <para>Create the /etc/sysconfig/network file and enter a hostname by
9 running:</para>
11 <screen><userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput></screen>
13 <para><quote>lfs</quote> needs to be replaced with the name the computer is 
14 to be called. You should not enter the FQDN (Fully Qualified Domain
15 Name) here. That information will be put in the
16 <filename>/etc/hosts</filename> file later on.</para>
18 </sect1>