7.5-systemd
7.6-systemd
7.7-systemd
7.8-systemd
7.9-systemd
Line | |
---|
1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-scripts-hostname">
|
---|
9 | <?dbhtml filename="hostname.html"?>
|
---|
10 |
|
---|
11 | <title>Configuring the system hostname</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-scripts-hostname">
|
---|
14 | <primary sortas="d-hostname">hostname</primary>
|
---|
15 | <secondary>configuring</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <para>Systemd reads <filename>/etc/hostname</filename> to determine which
|
---|
19 | hostname should be set.</para>
|
---|
20 |
|
---|
21 | <para>Create the <filename>/etc/hostname</filename> file and enter a
|
---|
22 | hostname by running:</para>
|
---|
23 |
|
---|
24 | <screen><userinput>echo "<replaceable><lfs></replaceable>" > /etc/hostname</userinput></screen>
|
---|
25 |
|
---|
26 | <para><replaceable><lfs></replaceable> needs to be replaced with the name given
|
---|
27 | to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That
|
---|
28 | information is put in the <filename>/etc/hosts</filename> file.</para>
|
---|
29 |
|
---|
30 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.