Changeset 82d2dbe


Ignore:
Timestamp:
05/19/2016 06:45:27 AM (8 years ago)
Author:
DJ Lucas <dj@…>
Children:
33d5aa3
Parents:
60962be
Message:

Update hosts file creation and explanatory text.

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r60962be r82d2dbe  
    3737-->
    3838    <listitem>
     39      <para>2016-05-19</para>
     40      <itemizedlist>
     41        <listitem>
     42          <para>[dj] - Adjust hosts file instructions to account for hosts
     43          using automatic configuration. Ajusted eplanatory text to account for
     44          additional configurations.</para>
     45        </listitem>
     46     </itemizedlist>
     47    </listitem>
     48
     49    <listitem>
    3950      <para>2016-05-18</para>
    4051      <itemizedlist>
  • chapter07/network.xml

    r60962be r82d2dbe  
    198198       <secondary>/etc/hosts</secondary>
    199199     </indexterm>
    200    
    201      <para>Decide on the IP address, fully-qualified domain name (FQDN), and
    202      possible aliases for use in the <filename>/etc/hosts</filename> file. The
    203      syntax is:</para>
    204    
     200
     201     <para>Decide on a fully-qualified domain name (FQDN), and possible aliases
     202     for use in the <filename>/etc/hosts</filename> file. If using static
     203     addresses, you'll also need to decide on an IP address. The syntax
     204     for a hosts file entry is:</para>
     205
    205206<screen><literal>IP_address myhost.example.org aliases</literal></screen>
    206207
     
    217218     <para>x can be any number in the range 16-31. y can be any number in the
    218219     range 0-255.</para>
    219    
     220
    220221     <para>A valid private IP address could be 192.168.1.1. A valid FQDN for
    221222     this IP could be lfs.example.org.</para>
    222    
     223
    223224     <para>Even if not using a network card, a valid FQDN is still required.
    224225     This is necessary for certain programs to operate correctly.</para>
    225    
    226      <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
     226
     227     <para>If using DHCP, DHCPv6, IPv6 Autoconfiguration, or if a network card
     228     is not going to be configured, create the <filename>/etc/hosts</filename>
     229     file by running the following command:</para>
    227230
    228231<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
    229 <literal># Begin /etc/hosts (network card version)
     232<literal># Begin /etc/hosts
     233
     234127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
     235::1       <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
     236
     237# End /etc/hosts</literal>
     238EOF</userinput></screen>
     239
     240     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
     241the IPv6 loopback interface.</para>
     242
     243     <para>If ussing a staic address, create the <filename>/etc/hosts</filename>
     244     file by running this command instead:</para>
     245
     246<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
     247<literal># Begin /etc/hosts
    230248
    231249127.0.0.1 localhost
    232250::1       localhost
    233 <replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
    234 
    235 # End /etc/hosts (network card version)</literal>
    236 EOF</userinput></screen>
    237 
    238      <para>The <replaceable>&lt;192.168.0.2&gt;</replaceable> and
    239      <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> values need to be
     251<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
     252
     253# End /etc/hosts</literal>
     254EOF</userinput></screen>
     255
     256     <para>The <replaceable>&lt;192.168.0.2&gt;</replaceable>,
     257     <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable>, and
     258     <replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be
    240259     changed for specific uses or requirements (if assigned an IP address by a
    241260     network/system administrator and the machine will be connected to an
    242261     existing network). The optional alias name(s) can be omitted.</para>
    243262   
    244      <para>If a network card is not going to be configured, create the
    245      <filename>/etc/hosts</filename> file by running:</para>
    246 
    247 <screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
    248 <literal># Begin /etc/hosts (no network card version)
    249 
    250 127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost
    251 ::1       localhost
    252 
    253 # End /etc/hosts (no network card version)</literal>
    254 EOF</userinput></screen>
    255 
    256      <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents the IPv6 loopback interface.</para>
    257 
    258263   </sect2>
    259264
  • chapter07/systemd-custom.xml

    r60962be r82d2dbe  
    121121  </sect2>
    122122
     123<!--TBA
     124  <sect2>
     125    <title>Working with journalctl</title>
     126
     127    <para>Logging on a system booted with systemd is handled by the systemd
     128    journal.</para>
     129
     130    <itemizedlist>
     131       <listitem><para>journalctl -r </para></listitem>
     132       <listitem><para>journalctl -u <replaceable>UNIT</replaceable></para></listitem>
     133       <listitem><para>journalctl -b[=ID] -r</para></listitem>
     134       <listitem><para>journalctl -f</para></listitem>
     135    </itemizedlist>
     136
     137  </sect2>
     138-->
    123139</sect1>
  • general.ent

    r60962be r82d2dbe  
    1 <!ENTITY version         "20160518-systemd">
     1<!ENTITY version         "20160519-systemd">
    22<!ENTITY short-version   "systemd">  <!-- Used in dbus chapter, change to x.y for release -->
    3 <!ENTITY releasedate     "May 18th, 2016">
     3<!ENTITY releasedate     "May 19th, 2016">
    44<!ENTITY copyrightdate   "1999-2016"><!-- jhalfs needs a literal dash, not &ndash; -->
    55<!ENTITY milestone       "7.10">
Note: See TracChangeset for help on using the changeset viewer.