Subversion Repositories svn LFS-FR


Blame | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 "" [
 <!ENTITY % general-entities SYSTEM "../../general.ent">

<sect1 id="ch-network-hostname">
  <?dbhtml filename="hostname.html"?>

  <title>Configuring the localnet Script</title>

  <indexterm zone="ch-network-hostname">
    <primary sortas="d-localnet">localnet</primary>

  <para>Part of the job of the <command>localnet</command> script is
  setting the system's hostname. This needs to be configured in the
  <filename>/etc/sysconfig/network</filename> file.</para>

  <para>Create the <filename>/etc/sysconfig/network</filename> file
  and enter a hostname by running:</para>

<screen><userinput>cat &gt; ${CLFS}/etc/sysconfig/network &lt;&lt; EOF

  <para><replaceable>[clfs]</replaceable> needs to be replaced with the
  name given to the computer. Do not enter the Fully Qualified
  Domain Name (FQDN) here. That information will be put in the
  <filename>/etc/hosts</filename> file in the next section.</para>