- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/hostname.xml
r40b9a5f r0b9e109 9 9 <?dbhtml filename="hostname.html"?> 10 10 11 <title>Configuring the system hostname</title>11 <title>Configuring the localnet Script</title> 12 12 13 13 <indexterm zone="ch-network-hostname"> 14 <primary sortas="d- hostname">hostname</primary>14 <primary sortas="d-localnet">localnet</primary> 15 15 <secondary>configuring</secondary></indexterm> 16 16 17 <para>Systemd reads <filename>/etc/hostname</filename> to determine which 18 hostname should be set.</para> 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> 19 20 20 <para>Create the <filename>/etc/ hostname</filename> file and enter a hostname21 by running:</para>21 <para>Create the <filename>/etc/sysconfig/network</filename> file 22 and enter a hostname by running:</para> 22 23 23 <screen><userinput>echo " <replaceable>[clfs]</replaceable>" > /etc/hostname</userinput></screen>24 <screen><userinput>echo "HOSTNAME=<replaceable>[clfs]</replaceable>" > /etc/sysconfig/network</userinput></screen> 24 25 25 26 <para><replaceable>[clfs]</replaceable> needs to be replaced with the
Note:
See TracChangeset
for help on using the changeset viewer.