* Fixed problem when BASEDIR paths were given without a trailing '/'.
[linux_from_scratch.git] / newxml / chapter07 / hostname.xml
blobc68b5cb2d6a079d6ca8bb2e5381858a6d2251ffd
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"?>
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
18 running:</para>
20 <screen><userinput>echo "HOSTNAME=lfs" &gt; /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>
27 </sect1>