Changeset 791e96fa


Ignore:
Timestamp:
02/10/2005 03:49:22 PM (19 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
e51a0eb2
Parents:
9be6d17
Message:

Added md5sum and indexing tags to dhcpcd instructions; minor corrections to WvDial and DHCP-client instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3426 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
connect
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • connect/dhcp/dhcp-client.xml

    r9be6d17 r791e96fa  
    3232to first install the network service script,
    3333<filename>/etc/sysconfig/network-devices/services/dhclient</filename>
    34 included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     34included in the <xref linkend="intro-important-bootscripts"/> package
     35(as root).</para>
    3536<indexterm zone="dhcp-client dhclient-service">
    3637<primary sortas="f-dhclient">dhclient (service script)</primary></indexterm>
    3738
    38 <screen><userinput><command>make install-service-dhclient</command></userinput></screen>
     39<screen><userinput role='root'><command>make install-service-dhclient</command></userinput></screen>
    3940
    4041<para id="dhclient-config1">Next, create the
    4142<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhclient</filename>
    42 configuration file with the following commands.  Adjust as necessary for
    43 additional interfaces.</para>
     43configuration file with the following commands as the root user.  Adjust as
     44necessary for additional interfaces.</para>
    4445<indexterm zone="dhcp-client dhclient-config1">
    4546<primary
     
    4748</indexterm>
    4849
    49 <screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
     50<screen><userinput role='root'><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
    5051cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhclient &lt;&lt; "EOF"</command>
    5152ONBOOT="yes"
     
    6162<para id="dhclient-config2">Finally, you should create the
    6263<filename>/etc/dhclient.conf</filename> file using the following
    63 commands:</para> 
     64commands as the root user:</para> 
    6465<indexterm zone="dhcp-client dhclient-config2">
    6566<primary sortas="e-etc-dhclient.conf">/etc/dhclient.conf</primary></indexterm>
     
    6869have more than one interface.</para></note>
    6970
    70 <screen><userinput><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
     71<screen><userinput role='root'><command>cat &gt; /etc/dhclient.conf &lt;&lt; "EOF"</command>
    7172# dhclient.conf
    7273
  • connect/dhcp/dhcpcd.xml

    r9be6d17 r791e96fa  
    77  <!ENTITY dhcpcd-download-http "http://www.phystech.com/ftp/dhcpcd-&dhcpcd-version;.tar.gz">
    88  <!ENTITY dhcpcd-download-ftp  "ftp://ftp.phystech.com/pub/dhcpcd-&dhcpcd-version;.tar.gz">
     9  <!ENTITY dhcpcd-md5sum        "dd627a121e43835bead3ffef5b1a72fd">
    910  <!ENTITY dhcpcd-size          "145 KB">
    10   <!ENTITY dhcpcd-buildsize     "868 KB">
     11  <!ENTITY dhcpcd-buildsize     "944 KB">
    1112  <!ENTITY dhcpcd-time          "0.04 SBU">
    1213]>
     
    1920<?dbhtml filename="dhcpcd.html"?>
    2021<title>dhcpcd-&dhcpcd-version;</title>
     22<indexterm zone="dhcpcd">
     23<primary sortas="a-Dhcpcd">Dhcpcd</primary></indexterm>
    2124
    2225<sect2>
     
    2528<para>The <application>dhcpcd</application> package contains the
    2629<command>dhcpcd</command> client. This is useful for connecting your computer
    27 to a network which uses <acronym>DHCP</acronym> to assign network addresses.
    28 </para>
     30to a network which uses <acronym>DHCP</acronym> to assign network
     31addresses.</para>
    2932
    3033<sect3><title>Package information</title>
     
    3437<listitem><para>Download (FTP): <ulink
    3538url="&dhcpcd-download-ftp;"/></para></listitem>
     39<listitem><para>Download MD5 sum: &dhcpcd-md5sum;</para></listitem>
    3640<listitem><para>Download size: &dhcpcd-size;</para></listitem>
    3741<listitem><para>Estimated disk space required:
     
    4347<sect3><title>Additional downloads</title>
    4448<itemizedlist spacing='compact'>
    45 <listitem><para>Required Patch:
     49<listitem><para>Required Patch: 
    4650<ulink url="&patch-root;/dhcpcd-&dhcpcd-version;-fhs-1.patch"/></para>
    4751</listitem>
     
    6064./configure --prefix="" --sysconfdir=/var/lib \
    6165--mandir=/usr/share/man &amp;&amp;
    62 make &amp;&amp;
    63 make install</command></userinput></screen>
     66make</command></userinput></screen>
     67
     68<para>Now, as the root user:</para>
     69
     70<screen><userinput role='root'><command>make install</command></userinput></screen>
    6471
    6572</sect2>
     
    6875<title>Command explanations</title>
    6976
    70 <para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch
    71 </command>: <application>Dhcpcd</application> unpatched puts all configuration
    72 and temporary files in <filename>/etc/dhcpc</filename>. This becomes very
    73 annoying when <application>dhcpcd</application> tells you it's running and it's
    74 not.  You look in <filename class="directory">/var/run</filename> for
    75 the <filename>PID</filename> file, but it's not
    76 there, the <filename>PID</filename> file that needs deleting is in
    77 <filename class="directory">/etc/dhcpc</filename>.
    78 This patch brings this program into <acronym>FHS</acronym> compliance, but more
    79 importantly, puts files where you expect them to be.</para>
     77<para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch</command>:
     78<application>dhcpcd</application> unpatched puts all configuration
     79and temporary files in <filename class='directory'>/etc/dhcpc</filename>. This
     80becomes very annoying when <application>dhcpcd</application> tells you it's
     81running and it's not. You look in
     82<filename class="directory">/var/run</filename> for the
     83<filename>PID</filename> file, but it's not there, the
     84<filename>PID</filename> file that needs deleting is in
     85<filename class="directory">/etc/dhcpc</filename>. This patch brings this
     86program into <acronym>FHS</acronym> compliance, but more importantly, puts
     87files where you expect them to be.</para>
    8088
    8189<para><parameter>--prefix=""</parameter>: There may be a good reason for
     
    8492<acronym>DHCP</acronym>, it is likely that it is
    8593required during the boot process and
    86 <filename class="directory">/usr</filename> may be network
    87 mounted, in which case <command>dhcpcd</command> wouldn't be available due to
    88 being on the network!  Therefore, depending on your situation, you may want it
    89 to be installed in <filename class="directory">/sbin</filename> or
    90 <filename class="directory">/usr/sbin</filename>.  This command installs to
     94<filename class="directory">/usr</filename> may be network mounted, in which
     95case <command>dhcpcd</command> wouldn't be available due to being on the
     96network! Therefore, depending on your situation, you may want it to be
     97installed in <filename class="directory">/sbin</filename> or
     98<filename class="directory">/usr/sbin</filename>. This command installs to
    9199<filename class="directory">/sbin</filename>.</para>
    92100
     
    104112<title>Configuring <application>dhcpcd</application></title>
    105113
    106 <sect3><title>Config files</title>
    107 <para><filename>/var/lib/dhcpc/*</filename></para></sect3>
    108 
    109 <sect3><title>Configuration Information</title>
     114<sect3 id="dhcpcd-config"><title>Config files</title>
     115<para><filename>/var/lib/dhcpc/*</filename></para>
     116<indexterm zone="dhcpcd dhcpcd-config">
     117<primary sortas="e-var-lib-dhcpc">/var/lib/dhcpc/*</primary></indexterm>
     118</sect3>
     119
     120<sect3 id="dhcpcd-init"><title>Configuration Information</title>
    110121
    111122<para>To configure <command>dhcpcd</command>, you need to first install
    112123the network service script,
    113124<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
    114 included in the <xref linkend="intro-important-bootscripts"/> package.</para>
    115 
    116 <screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
    117 
    118 <para>Finally, create the
     125included in the <xref linkend="intro-important-bootscripts"/> package
     126(as user root).</para>
     127<indexterm zone="dhcpcd dhcpcd-init">
     128<primary sortas="f-dhcpcd">dhcpcd (service script)</primary></indexterm>
     129
     130<screen><userinput role='root'><command>make install-service-dhcpcd</command></userinput></screen>
     131
     132<para id="dhcpcd-config2">Finally, as the root user create the
    119133<filename>/etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd</filename>
    120134configuration file using the following commands.  Adjust appropriately
    121135for additional interfaces.</para>
    122 
    123 <screen><userinput><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
     136<indexterm zone="dhcpcd dhcpcd-config2">
     137<primary sortas="e-etc-sysconfig-dhcpcd">/etc/sysconfig/.../dhcpcd</primary></indexterm>
     138
     139<screen><userinput role='root'><command>install -d /etc/sysconfig/network-devices/ifconfig.eth0 &amp;&amp;
    124140cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/dhcpcd &lt;&lt; "EOF"</command>
    125141ONBOOT="yes"
     
    137153<command>EOF</command></userinput></screen>
    138154
    139 <para>For more information on the appropriate
    140 <envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
    141 values, examine the man page for <command>dhcpcd</command>.</para>
    142 
    143 <note><para>The default behavior of <command>dhcpcd</command> is to overwrite
    144 (after making backup copies) <filename>/etc/resolv.conf</filename>,
    145 <filename>/etc/yp.conf</filename> and <filename>/etc/ntp.conf</filename>
    146 with new files containing information from the <acronym>DHCP</acronym>
    147 server. If this is undesirable, review the <command>dhcpcd</command>
    148 man page for switches to add to the <envar>DHCP_START</envar>
    149 value.</para></note>
     155<para>For more information on the appropriate <envar>DHCP_START</envar> and
     156<envar>DHCP_STOP</envar> values, examine the man page for
     157<command>dhcpcd</command>.</para>
     158
     159<note><para id="dhcpcd-config3">The default behavior of
     160<command>dhcpcd</command> is to overwrite (after making backup copies)
     161<filename>/etc/resolv.conf</filename>, <filename>/etc/yp.conf</filename> and
     162<filename>/etc/ntp.conf</filename> with new files containing information from
     163the <acronym>DHCP</acronym> server. If this is undesirable, review the
     164<command>dhcpcd</command> man page for switches to add to the
     165<envar>DHCP_START</envar> value.</para></note>
     166<indexterm zone="dhcpcd dhcpcd-config3">
     167<primary sortas="e-etc-resolv.conf">/etc/resolv.conf</primary></indexterm>
     168<indexterm zone="dhcpcd dhcpcd-config3">
     169<primary sortas="e-etc-yp.conf">/etc/yp.conf</primary></indexterm>
     170<indexterm zone="dhcpcd dhcpcd-config3">
     171<primary sortas="e-etc-ntp.conf">/etc/ntp.conf</primary></indexterm>
    150172
    151173</sect3>
     
    156178<title>Contents</title>
    157179
    158 <para>The <application>dhcpcd</application> package contains
    159 <command>dhcpcd</command>.</para>
    160 
    161 </sect2>
    162 
    163 <sect2><title>Description</title>
    164 
    165 <sect3><title>dhcpcd</title>
    166 <para><command>dhcpcd</command> is an implementation of the
    167 <acronym>DHCP</acronym> client specified in <acronym>RFC</acronym>2131 and
    168 <acronym>RFC</acronym>1541 (depending on which options are specified).</para>
    169 </sect3>
     180<segmentedlist>
     181<segtitle>Installed Program</segtitle>
     182<segtitle>Installed Libraries</segtitle>
     183<segtitle>Installed Directories</segtitle>
     184
     185<seglistitem>
     186<seg>dhcpcd</seg>
     187<seg>None</seg>
     188<seg>/var/lib/dhcpc</seg>
     189</seglistitem>
     190</segmentedlist>
     191
     192<variablelist>
     193<bridgehead renderas="sect3">Short Descriptions</bridgehead>
     194<?dbfo list-presentation="list"?>
     195
     196<varlistentry id="dhcpcd-prog">
     197<term><command>dhcpcd</command></term>
     198<listitem><para>is an implementation of the <acronym>DHCP</acronym> client
     199specified in <acronym>RFC</acronym>2131 and <acronym>RFC</acronym>1541
     200(depending on which options are specified).</para>
     201<indexterm zone="dhcpcd dhcpcd-prog">
     202<primary sortas="b-dhcpcd">dhcpcd</primary>
     203</indexterm></listitem>
     204</varlistentry>
     205</variablelist>
    170206
    171207</sect2>
  • connect/dialup/wvdial.xml

    r9be6d17 r791e96fa  
    117117<seg>wvdial and wvdialconf</seg>
    118118<seg>None</seg>
    119 <seg>/etc/ppp</seg>
     119<seg>/etc/ppp/peers</seg>
    120120</seglistitem>
    121121</segmentedlist>
Note: See TracChangeset for help on using the changeset viewer.