- Timestamp:
- Jan 23, 2014, 11:45:13 AM (11 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 05d3e34
- Parents:
- 69a34d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/hostname.xml
r69a34d7 rc28a198 9 9 <?dbhtml filename="hostname.html"?> 10 10 11 <title>Configuring the localnet Script</title>11 <title>Configuring the system hostname</title> 12 12 13 13 <indexterm zone="ch-network-hostname"> 14 <primary sortas="d- localnet">localnet</primary>14 <primary sortas="d-hostname">hostname</primary> 15 15 <secondary>configuring</secondary></indexterm> 16 16 17 <para>Part of the job of the <command>localnet</command> script is 18 setting the system's hostname. This needs to be configured in the 19 <filename>/etc/hostname</filename> file.</para> 17 <para>Systemd reads <filename>/etc/hostname</filename> to determine which 18 hostname should be set.</para> 20 19 21 <para>Create the <filename>/etc/hostname</filename> file 22 and enter a hostnameby running:</para>20 <para>Create the <filename>/etc/hostname</filename> file and enter a hostname 21 by running:</para> 23 22 24 23 <screen><userinput>echo "HOSTNAME=<replaceable>[clfs]</replaceable>" > /etc/hostname</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.