Changeset cec6657e


Ignore:
Timestamp:
06/11/2016 06:14:15 AM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
bea508c
Parents:
7b478500
Message:

[Systemd merge] - Chapter 16

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

Location:
networking/netutils
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • networking/netutils/avahi.xml

    r7b478500 rcec6657e  
    124124
    125125<!-- final part of sed removes " -DGDK_DISABLE_DEPRECATED=1 -DGTK_DISABLE_DEPRECATED=1 \" -->
    126 <screen><userinput>./configure --prefix=/usr        \
     126<screen revision="sysv"><userinput>./configure --prefix=/usr        \
    127127            --sysconfdir=/etc    \
    128128            --localstatedir=/var \
     
    138138make</userinput></screen>
    139139
     140<screen revision="sysstemd"><userinput>./configure --prefix=/usr        \
     141            --sysconfdir=/etc    \
     142            --localstatedir=/var \
     143            --disable-static     \
     144            --disable-mono       \
     145            --disable-monodoc    \
     146            --disable-python     \
     147            --disable-qt3        \
     148            --disable-qt4        \
     149            --enable-core-docs   \
     150            --with-distro=none   \
     151            --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
     152make</userinput></screen>
     153
    140154    <para>
    141155      This package does not come with a test suite.
     
    192206    </para>
    193207
    194     <para>
     208    <para revision="sysv">
    195209      <parameter>--with-systemdsystemunitdir=no</parameter>: Without it, the
    196210      daemon fails to start in BLFS, which does not support
     
    198212    </para>
    199213
     214    <para revision="systemd">
     215      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
     216      This parameter is used to set the correct installation directory for
     217      systemd units.
     218    </para>
     219
    200220    <para>
    201221      <option>--disable-dbus</option>: This parameter disables the use
     
    242262      <title>Boot Script</title>
    243263
    244       <para>
     264      <para revision="sysv">
    245265        To automatically start the <command>avahi-daemon</command>
    246266        when the system is rebooted, install the
    247267        <filename>/etc/rc.d/init.d/avahi</filename> bootscript from
    248         the <xref linkend="bootscripts" revision="sysv"/>
    249         <xref linkend="systemd-units" revision="systemd"/> package.
     268        the <xref linkend="bootscripts"/> package.
     269      </para>
     270
     271      <para revision="systemd">
     272        To start the <command>avahi-daemon</command> daemon at boot, enable
     273        the previously installed systemd unit by running the following command
     274        as the <systemitem class="username">root</systemitem> user:
    250275      </para>
    251276
     
    254279      </indexterm>
    255280
    256 <screen role="root"><userinput>make install-avahi</userinput></screen>
     281<screen role="root" revision="sysv"><userinput>make install-avahi</userinput></screen>
     282
     283<screen role="root" revision="systemd"><userinput>systemctl enable avahi-daemon</userinput></screen>
     284
     285      <para revision="systemd">
     286        To start the <command>avahi-dnsconfd</command> daemon at boot, enable
     287        the previously installed systemd unit by running the following command
     288        as the <systemitem class="username">root</systemitem> user:
     289      </para>
     290
     291<screen role="root" revision="systemd"><userinput>systemctl enable avahi-dnsconfd</userinput></screen>
    257292
    258293    </sect3>
  • networking/netutils/networkmanager.xml

    r7b478500 rcec6657e  
    4141
    4242    &lfs79_checked;&gcc6_checked;
     43
     44    <note revision="systemd">
     45      <para>
     46        Make sure that you disable the <command>systemd-networkd</command>
     47        service or configure it not to manage the interfaces you want to manage
     48        with <application>NetworkManager</application>.
     49      </para>
     50    </note>
    4351
    4452    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    97105      <xref linkend="newt"/> (for <command>nmtui</command>),
    98106      <xref linkend="polkit"/>,
     107      <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
    99108      <xref linkend="upower"/>,
    100109      <xref linkend="vala"/>, and
     
    107116      <xref linkend="gtk-doc"/>,
    108117      <xref linkend="qt5"/> (for examples),
     118      <phrase revision="systemd"><xref linkend="ModemManager"/>,</phrase>
     119      <phrase revision="systemd"><xref linkend="pygobject3"/>,</phrase>
    109120      <xref linkend="valgrind"/>,
    110       <ulink url="http://libteam.org/">libteam</ulink>, and
    111       <ulink url="http://www.freedesktop.org/software/ModemManager/">
    112       ModemManager</ulink>
     121      <ulink url="http://libteam.org/">libteam</ulink>,
     122      <phrase revision="sysv"><ulink
     123      url="http://www.freedesktop.org/software/ModemManager/">
     124      ModemManager</ulink>,</phrase>
     125      <ulink url="https://www.samba.org/ftp/ppp/">PPP</ulink>, and
     126      <ulink url="https://www.roaringpenguin.com/products/pppoe">RP-PPPoE</ulink>
    113127    </para>
    114128
     
    133147    </para>
    134148
    135 <screen><userinput>CXXFLAGS="-O2 -fPIC"             \
     149<screen revision="sysv"><userinput>CXXFLAGS="-O2 -fPIC"             \
    136150./configure --prefix=/usr        \
    137151            --sysconfdir=/etc    \
     
    143157make</userinput></screen>
    144158
     159<screen revision="systemd"><userinput>CXXFLAGS="-O2 -fPIC"                                        \
     160./configure --prefix=/usr                                   \
     161            --sysconfdir=/etc                               \
     162            --localstatedir=/var                            \
     163            --with-nmtui                                    \
     164            --disable-ppp                                   \
     165            --with-session-tracking=systemd                 \
     166            --with-systemdsystemunitdir=/lib/systemd/system \
     167            --docdir=/usr/share/doc/network-manager-&NetworkManager-version; &amp;&amp;
     168make</userinput></screen>
     169
    145170    <para>
    146171      An already active graphical session with bus address is necessary to run
     
    169194    </para>
    170195
    171     <para>
     196    <para revision="systemd">
     197      <parameter>--with-session-tracking=systemd</parameter>: This switch
     198      is used to set <command>systemd-logind</command> as the default
     199      program for session tracking.
     200    </para>
     201
     202    <para revision="sysv">
    172203      <parameter>--with-systemdsystemunitdir=no</parameter>: This parameter is
    173204      used for sysv init systems. If you use systemd, replace "no" by the
    174205      proper directory.
     206    </para>
     207
     208    <para revision="systemd">
     209      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
     210      This switch is used to set the correct installation directory for
     211      systemd units.
    175212    </para>
    176213
     
    236273
    237274    <sect3 id="NetworkManager-init">
    238       <title>Boot Script</title>
    239 
    240       <para>
    241         To automatically start the <command>NetworkManager</command> daemon when the
    242         system is rebooted, install the
    243         <filename>/etc/rc.d/init.d/networkmanager</filename> bootscript from the
    244         <xref linkend="bootscripts" revision="sysv"/>
    245         <xref linkend="systemd-units" revision="systemd"/> package.
     275      <title><phrase revision="sysv">Boot Script</phrase>
     276             <phrase revision="systemd">Systemd Unit</phrase></title>
     277
     278      <para revision="sysv">
     279        To automatically start the <command>NetworkManager</command> daemon
     280        when the system is rebooted, install the
     281        <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
     282        <xref linkend="bootscripts"/> package.
     283      </para>
     284
     285      <para revision="systemd">
     286        To start the <command>NetworkManager</command> daemon at boot, enable
     287        the previously installed systemd unit by running the following command
     288        as the <systemitem class="username">root</systemitem> user:
    246289      </para>
    247290
     
    250293      </indexterm>
    251294
    252 <screen role="root"><userinput>make install-networkmanager</userinput></screen>
     295<screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
     296
     297<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
     298
     299      <para revision="systemd">
     300        <application>NetworkManager</application> also ships a systemd unit
     301        called <filename>NetworkManager-wait-online.service</filename> which
     302        can be used to prevent services that require network connectivity
     303        from starting until <application>NetworkManager</application> has
     304        established the connection. To enable it, run the following command
     305        as the <systemitem class="username">root</systemitem> user:
     306      </para>
     307
     308<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
    253309
    254310    </sect3>
  • networking/netutils/wicd.xml

    r7b478500 rcec6657e  
    193193      <title>Configuration Information</title>
    194194
     195      <note revision="systemd">
     196        <para>
     197          Make sure that you disable the <command>systemd-networkd</command>
     198          service or configure it not to manage the interfaces you want to
     199          manage with <application>Wicd</application>.
     200        </para>
     201      </note>
     202
    195203      <para>To automatically start Wicd at boot time, you need to first install
    196       the Wicd bootscript,
    197       <filename>/etc/rc.d/init.d/wicd</filename>,
     204      the Wicd bootscript,<phrase revision="sysv">
     205      <filename>/etc/rc.d/init.d/wicd</filename></phrase>
     206      <phrase revision="systemd"><filename>wicd.service</filename></phrase>,
    198207      included in the <xref linkend="bootscripts" revision="sysv"/>
    199208      <xref linkend="systemd-units" revision="systemd"/> package
     
    206215      <screen role='root'><userinput>make install-wicd</userinput></screen>
    207216
    208       <para>Since Wicd will now handle all configuration of network devices,
    209       the network bootscript installed by LFS should be disabled. This can be
    210       achieved by either removing any <filename>S*network</filename> and
    211       <filename>K*network</filename> symlinks in the <filename>/etc/rc*.d</filename>
    212       directories or by setting <literal>ONBOOT=no</literal> in any
     217      <para revision="sysv">Since Wicd will now handle all configuration of
     218      network devices, the network bootscript installed by LFS should be
     219      disabled. This can be achieved by either removing any
     220      <filename>S*network</filename> and <filename>K*network</filename>
     221      symlinks in the <filename>/etc/rc*.d</filename> directories or by setting
     222      <literal>ONBOOT=no</literal> in any
    213223      <filename>/etc/sysconfig/ifconfig.*</filename> files.</para>
    214224
    215225      <para>No manual configuration of Wicd is needed if you use the graphical
    216       frontends. If you are only going to use Wicd from command-line, you can configure
    217       it using the configuration files in <filename>/etc/wicd</filename>. For a list of
    218       available options, look at the man-pages for: wicd-manager-settings.conf,
    219       wicd-wired-settings.conf and wicd-wireless-settings.conf.</para>
    220 
    221       <para>Be sure to add all users who are to have rights to open and close network
    222       connections with Wicd to the <systemitem class="groupname">users</systemitem>
    223       group (or the group specified with the <option>--wicdgroup</option> configuration
     226      frontends. If you are only going to use Wicd from command-line, you can
     227      configure it using the configuration files in
     228      <filename>/etc/wicd</filename>. For a list of available options, look at
     229      the man-pages for: wicd-manager-settings.conf, wicd-wired-settings.conf
     230      and wicd-wireless-settings.conf.</para>
     231
     232      <para>Be sure to add all users who are to have rights to open and close
     233      network connections with Wicd to the
     234      <systemitem class="groupname">users</systemitem> group (or the group
     235      specified with the <option>--wicdgroup</option> configuration
    224236      option).</para>
    225237
Note: See TracChangeset for help on using the changeset viewer.