Changeset f3317d4 for chapter07/hostname.xml
- Timestamp:
- 02/15/2013 09:14:37 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- b588d62
- Parents:
- 4a4e017
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/hostname.xml
r4a4e017 rf3317d4 16 16 </indexterm> 17 17 18 <para>Part of the job of the <command>localnet</command> script is setting the 19 system's hostname. This needs to be configured in the 20 <filename>/etc/sysconfig/network</filename> file.</para> 18 <para>Systemd reads <filename>/etc/hostname</filename> to determine which 19 hostname should be set.</para> 21 20 22 <para>Create the <filename>/etc/ sysconfig/network</filename> file and enter a21 <para>Create the <filename>/etc/hostname</filename> file and enter a 23 22 hostname by running:</para> 24 23 25 <screen><userinput>echo " HOSTNAME=<replaceable><lfs></replaceable>" > /etc/sysconfig/network</userinput></screen>24 <screen><userinput>echo "<replaceable><lfs></replaceable>" > /etc/hostname</userinput></screen> 26 25 27 26 <para><replaceable><lfs></replaceable> needs to be replaced with the name given
Note:
See TracChangeset
for help on using the changeset viewer.