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 | <info><title>Configuring the localnet script</title></info>
|
---|
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
|
---|
16 | needs 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
|
---|
19 | running:</para>
|
---|
20 |
|
---|
21 | <screen><userinput>echo "HOSTNAME=<replaceable>[lfs]</replaceable>" > /etc/sysconfig/network</userinput></screen>
|
---|
22 |
|
---|
23 | <para><replaceable>[lfs]</replaceable> needs to be replaced with the name the computer is
|
---|
24 | to be called. You should not enter the FQDN (Fully Qualified Domain
|
---|
25 | Name) 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.