Changeset 246c904 for connect/dhcp


Ignore:
Timestamp:
06/12/2004 01:11:39 AM (20 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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:
a2d8572
Parents:
8e14c824
Message:

New XML Part IV (Chapters 13-15)

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

Location:
connect/dhcp
Files:
3 edited

Legend:

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

    r8e14c824 r246c904  
     1<?xml version="1.0" encoding="ISO-8859-1"?>
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
     3   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
     4  <!ENTITY % general-entities SYSTEM "../../general.ent">
     5  %general-entities;
     6]>
     7
    18<sect1 id="connect-dhcp-client">
    29<?dbhtml filename="dhcpclient.html"?>
  • connect/dhcp/dhcp.xml

    r8e14c824 r246c904  
     1<?xml version="1.0" encoding="ISO-8859-1"?>
     2<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
     3   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
     4  <!ENTITY % general-entities SYSTEM "../../general.ent">
     5  %general-entities;
     6]>
     7
    18<chapter id="connect-dhcp">
    29<?dbhtml filename="dhcp.html"?>
     
    1926client of your choice.</para>
    2027
    21 &connect-dhcp-client;
    22 &dhcpcd;
     28<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dhcp-client.xml"/> 
     29<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="dhcpcd.xml"/> 
    2330
    2431</chapter>
  • connect/dhcp/dhcpcd.xml

    r8e14c824 r246c904  
     1<?xml version="1.0" encoding="ISO-8859-1"?>
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
     3   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
     4  <!ENTITY % general-entities SYSTEM "../../general.ent">
     5  %general-entities;
     6 
     7  <!ENTITY dhcpcd-download-http "http://www.phystech.com/ftp/dhcpcd-&dhcpcd-version;.tar.gz">
     8  <!ENTITY dhcpcd-download-ftp  "ftp://ftp.phystech.com/pub/dhcpcd-&dhcpcd-version;.tar.gz">
     9  <!ENTITY dhcpcd-size          "145 KB">
     10  <!ENTITY dhcpcd-buildsize     "868 KB">
     11  <!ENTITY dhcpcd-time          "0.04 SBU">
     12]>
     13
    114<sect1 id="dhcpcd" xreflabel="dhcpcd-&dhcpcd-version;">
    215<?dbhtml filename="dhcpcd.html"?>
    316<title>dhcpcd-&dhcpcd-version;</title>
    417
    5 &dhcpcd-intro;
    6 &dhcpcd-inst;
    7 &dhcpcd-exp;
    8 &dhcpcd-config;
    9 &dhcpcd-desc;
     18<sect2>
     19<title>Introduction to <application>dhcpcd</application></title>
     20
     21<para>The <application>dhcpcd</application> package contains the
     22<command>dhcpcd</command> client. This is useful for connecting your computer
     23to a network which uses <acronym>DHCP</acronym> to assign network addresses.
     24</para>
     25
     26<sect3><title>Package information</title>
     27<itemizedlist spacing='compact'>
     28<listitem><para>Download (HTTP): <ulink
     29url="&dhcpcd-download-http;"/></para></listitem>
     30<listitem><para>Download (FTP): <ulink
     31url="&dhcpcd-download-ftp;"/></para></listitem>
     32<listitem><para>Download size: &dhcpcd-size;</para></listitem>
     33<listitem><para>Estimated Disk space required:
     34&dhcpcd-buildsize;</para></listitem>
     35<listitem><para>Estimated build time:
     36&dhcpcd-time;</para></listitem></itemizedlist>
     37</sect3>
     38
     39<sect3><title>Additional downloads</title>
     40<itemizedlist spacing='compact'>
     41<listitem><para>Required patch:
     42<ulink url="&patch-root;/dhcpcd-1.3.22-pl4-fhs-1.patch"/></para></listitem>
     43</itemizedlist>
     44</sect3>
     45
     46
     47</sect2>
     48
     49<sect2>
     50<title>Installation of <application>dhcpcd</application></title>
     51
     52<para>Install <application>dhcpcd</application> by running the following
     53commands:</para>
     54
     55<screen><userinput><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch &amp;&amp;
     56./configure --prefix="" --sysconfdir=/var/lib \
     57--mandir=/usr/share/man &amp;&amp;
     58make &amp;&amp;
     59make install</command></userinput></screen>
     60
     61
     62</sect2>
     63
     64<sect2>
     65<title>Command explanations</title>
     66
     67<para><command>patch -Np1 -i ../dhcpcd-&dhcpcd-version;-fhs-1.patch
     68</command>: <application>Dhcpcd</application> unpatched puts all configuration
     69and temporary files in <filename>/etc/dhcpc</filename>. This becomes very
     70annoying when <application>dhcpcd</application> tells you it's running and it's
     71not.  You look in <filename class="directory">/var/run</filename> for
     72the <filename>PID</filename> file, but it's not
     73there, the <filename>PID</filename> file that needs deleting is in
     74<filename class="directory">/etc/dhcpc</filename>.
     75This patch brings this program into <acronym>FHS</acronym> compliance, but more
     76importantly, puts files where you expect them to be.</para>
     77
     78<para><parameter>--prefix=""</parameter>: There may be a good reason for
     79abandoning the normal <acronym>BLFS</acronym> convention of using
     80<parameter>--prefix=/usr</parameter> here.  If you are installing
     81<acronym>DHCP</acronym>, it is likely that it is
     82required during the boot process and
     83<filename class="directory">/usr</filename> may be network
     84mounted, in which case <command>dhcpcd</command> wouldn't be available due to
     85being on the network!  Therefore, depending on your situation, you may want it
     86to be installed in <filename class="directory">/sbin</filename> or
     87<filename class="directory">/usr/sbin</filename>.  This command installs to
     88<filename class="directory">/sbin</filename>.</para>
     89
     90<para><parameter>--sysconfdir=/var/lib</parameter>: This command installs
     91configuration files in the <filename class="directory">/var/lib</filename>
     92directory.</para>
     93
     94<para><parameter>--mandir=/usr/share/man</parameter>: This command
     95installs the man pages to the <filename class="directory">/usr/share/man</filename>
     96directory.</para>
     97
     98</sect2>
     99
     100<sect2>
     101<title>Configuring <application>dhcpcd</application></title>
     102
     103<sect3><title>Config files</title>
     104<para><filename>/var/lib/dhcpc/*</filename></para></sect3>
     105
     106<sect3><title>Configuration Information</title>
     107
     108<para>To configure <command>dhcpcd</command>, you need to first install
     109the network service script,
     110<filename>/etc/sysconfig/network-devices/services/dhcpcd</filename>
     111included in the <xref linkend="intro-important-bootscripts"/> package.</para>
     112
     113<screen><userinput><command>make install-service-dhcpcd</command></userinput></screen>
     114
     115<para>Now create the <filename>ifconfig.eth0</filename> configuration
     116file using the following commands.  Adjust appropriately for additional
     117interfaces.</para>
     118
     119<para><emphasis>Note:</emphasis> This will overwrite any existing file.</para>
     120
     121<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"</command>
     122ONBOOT=yes
     123DHCP_START="<replaceable>[insert appropriate start options here]</replaceable>"
     124DHCP_STOP="-k <replaceable>[insert other stop options here]</replaceable>"
     125SERVICE=dhcpcd
     126<command>EOF</command></userinput></screen>
     127
     128<para>For more information on the appropriate
     129<envar>DHCP_START</envar> and <envar>DHCP_STOP</envar>
     130values, examine the man page for <command>dhcpcd</command>.</para>
     131
     132<para>Finally, if the <acronym>DHCP</acronym> configured interface is
     133used as your default gateway, you should remove the GATEWAY and GATEWAY_IF
     134variables from <filename>/etc/sysconfig/network</filename>: </para>
     135
     136<screen><userinput><command>sed -i "s/GATEWAY/#&amp;/" /etc/sysconfig/network</command></userinput></screen>
     137
     138</sect3>
     139
     140</sect2>
     141
     142<sect2>
     143<title>Contents</title>
     144
     145<para>The <application>dhcpcd</application> package contains <command>dhcpcd</command>.</para>
     146
     147</sect2>
     148
     149<sect2><title>Description</title>
     150
     151<sect3><title>dhcpcd</title>
     152<para><command>dhcpcd</command> is an implementation of the <acronym>DHCP
     153</acronym> client specified in <acronym>RFC</acronym>2131 and
     154<acronym>RFC</acronym>1541 (depending on which options are specified).</para>
     155</sect3>
     156
     157</sect2>
    10158
    11159</sect1>
Note: See TracChangeset for help on using the changeset viewer.