Files
2013-10-15 16:00:05 -04:00

32 lines
1.1 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
]>
<sect1 id="ch-scripts-hostname">
<?dbhtml filename="hostname.html"?>
<title>Setting Hostname</title>
<indexterm zone="ch-scripts-hostname">
<primary sortas="d-localnet">localnet</primary>
<secondary>configuring</secondary></indexterm>
<para>Part of the job of the bootscripts is
setting the system's hostname. This needs to be configured in the
<filename>/etc/HOSTNAME</filename> file.</para>
<para>Create the <filename>HOSTNAME</filename> file
and enter a hostname by running:</para>
<screen><userinput>echo "<replaceable>[clfs]</replaceable>" &gt; ${CLFS}/targetfs/etc/HOSTNAME</userinput></screen>
<para><replaceable>[clfs]</replaceable> needs to be replaced with the
name given to the computer. Do not enter the Fully Qualified
Domain Name (FQDN) here. That information will be put in the
<filename>/etc/hosts</filename> file in the next section.</para>
</sect1>