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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.