source: chapter07/hostname.xml@ 29723b9

Last change on this file since 29723b9 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 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 section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-scripts-hostname">
8<title>Configuring the localnet script</title>
9<?dbhtml filename="hostname.html"?>
10
11<indexterm zone="ch-scripts-hostname">
12<primary sortas="d-localnet">localnet</primary>
13<secondary>configuring</secondary></indexterm>
14
15<para>Part of the localnet script is setting up the system's hostname. This
16needs to be configured in the <filename>/etc/sysconfig/network</filename>.</para>
17
18<para>Create the <filename>/etc/sysconfig/network</filename> file and enter a hostname by
19running:</para>
20
21<screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" &gt; /etc/sysconfig/network</userinput></screen>
22
23<para><replaceable>[lfs]</replaceable> needs to be replaced with the name the computer is
24to be called. You should not enter the FQDN (Fully Qualified Domain
25Name) here. That information will be put in the
26<filename>/etc/hosts</filename> file later on.</para>
27
28</section>
Note: See TracBrowser for help on using the repository browser.