source: chapter07/hostname.xml@ f3317d4

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since f3317d4 was f3317d4, checked in by Krejzi <krejzi@…>, 11 years ago

Move Chapter 7 in place for Systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10159 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.1 KB
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>&lt;lfs&gt;</replaceable>" &gt; /etc/hostname</userinput></screen>
25
26 <para><replaceable>&lt;lfs&gt;</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.