mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
21ba4e3570
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2958 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
20 lines
698 B
XML
20 lines
698 B
XML
<sect1 id="ch07-hostname">
|
|
<title>Configuring the localnet script</title>
|
|
<?dbhtml filename="hostname.html" dir="chapter07"?>
|
|
|
|
<para>Part of the localnet script is setting up the system's hostname. This
|
|
needs to be configured in the /etc/sysconfig/network.</para>
|
|
|
|
<para>Create the /etc/sysconfig/network file and enter a hostname by
|
|
running:</para>
|
|
|
|
<screen><userinput>echo "HOSTNAME=lfs" > /etc/sysconfig/network</userinput></screen>
|
|
|
|
<para><quote>lfs</quote> needs to be replaced with the name the computer is
|
|
to be called. You should not enter the FQDN (Fully Qualified Domain
|
|
Name) here. That information will be put in the
|
|
<filename>/etc/hosts</filename> file later on.</para>
|
|
|
|
</sect1>
|
|
|