mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 05:27:39 +00:00
f67f5cfed5
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3813 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-scripts-hostname">
|
|
<title>Configuring the localnet script</title>
|
|
<?dbhtml filename="hostname.html"?>
|
|
|
|
<indexterm zone="ch-scripts-hostname">
|
|
<primary sortas="d-localnet">localnet</primary>
|
|
<secondary>configuring</secondary></indexterm>
|
|
|
|
<para>Part of the localnet script is setting up the system's hostname. This
|
|
needs to be configured in the <filename>/etc/sysconfig/network</filename>.</para>
|
|
|
|
<para>Create the <filename>/etc/sysconfig/network</filename> file and enter a hostname by
|
|
running:</para>
|
|
|
|
<screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" > /etc/sysconfig/network</userinput></screen>
|
|
|
|
<para><replaceable>[lfs]</replaceable> 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>
|