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">
6 <sect1 id="ch-scripts-hostname">
7 <title>Configuring the localnet script</title>
8 <?dbhtml filename="hostname.html"?>
10 <indexterm zone="ch-scripts-hostname">
11 <primary sortas="d-localnet">localnet</primary>
12 <secondary>configuring</secondary></indexterm>
14 <para>Part of the localnet script is setting up the system's hostname. This
15 needs to be configured in the /etc/sysconfig/network.</para>
17 <para>Create the /etc/sysconfig/network file and enter a hostname by
20 <screen><userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput></screen>
22 <para><quote>lfs</quote> needs to be replaced with the name the computer is
23 to be called. You should not enter the FQDN (Fully Qualified Domain
24 Name) here. That information will be put in the
25 <filename>/etc/hosts</filename> file later on.</para>