- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/hostname.xml
r0b9e109 r40b9a5f 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/sysconfig/network</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/ sysconfig/network</filename> file22 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 <screen><userinput>echo " HOSTNAME=<replaceable>[clfs]</replaceable>" > /etc/sysconfig/network</userinput></screen>23 <screen><userinput>echo "<replaceable>[clfs]</replaceable>" > /etc/hostname</userinput></screen> 25 24 26 25 <para><replaceable>[clfs]</replaceable> needs to be replaced with the
Note:
See TracChangeset
for help on using the changeset viewer.