mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-07 14:52:10 +00:00
f3317d4d6e
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10159 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
31 lines
1.1 KiB
XML
31 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>Configuring the system hostname</title>
|
|
|
|
<indexterm zone="ch-scripts-hostname">
|
|
<primary sortas="d-hostname">hostname</primary>
|
|
<secondary>configuring</secondary>
|
|
</indexterm>
|
|
|
|
<para>Systemd reads <filename>/etc/hostname</filename> to determine which
|
|
hostname should be set.</para>
|
|
|
|
<para>Create the <filename>/etc/hostname</filename> file and enter a
|
|
hostname by running:</para>
|
|
|
|
<screen><userinput>echo "<replaceable><lfs></replaceable>" > /etc/hostname</userinput></screen>
|
|
|
|
<para><replaceable><lfs></replaceable> needs to be replaced with the name given
|
|
to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That
|
|
information is put in the <filename>/etc/hosts</filename> file.</para>
|
|
|
|
</sect1>
|