2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-scripts-hostname">
|
2005-01-30 11:27:57 +00:00
|
|
|
<title>Configuring the localnet Script</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
<?dbhtml filename="hostname.html"?>
|
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<indexterm zone="ch-scripts-hostname">
|
|
|
|
<primary sortas="d-localnet">localnet</primary>
|
|
|
|
<secondary>configuring</secondary></indexterm>
|
|
|
|
|
2005-06-16 20:53:42 +01:00
|
|
|
<para>Part of the <command>localnet</command> script is setting up the system's
|
|
|
|
hostname. This needs to be configured in the
|
|
|
|
<filename>/etc/sysconfig/network</filename> file.</para>
|
2002-01-15 21:32:01 +00:00
|
|
|
|
2004-06-19 17:54:58 +01:00
|
|
|
<para>Create the <filename>/etc/sysconfig/network</filename> file and enter a hostname by
|
2002-01-15 21:32:01 +00:00
|
|
|
running:</para>
|
|
|
|
|
2004-06-19 17:54:58 +01:00
|
|
|
<screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" > /etc/sysconfig/network</userinput></screen>
|
2002-01-15 21:32:01 +00:00
|
|
|
|
2005-02-19 22:16:42 +00:00
|
|
|
<para><replaceable>[lfs]</replaceable> needs to be replaced with the
|
|
|
|
name the computer is to be called. Do not enter the Fully Qualified
|
|
|
|
Domain Name (FQDN) here. That information will be put in the
|
|
|
|
<filename>/etc/hosts</filename> file later.</para>
|
|
|
|
|
2002-01-15 21:32:01 +00:00
|
|
|
</sect1>
|
2005-02-19 22:16:42 +00:00
|
|
|
|