Ignore:
Timestamp:
07/20/2014 12:47:07 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
96733af
Parents:
6bc6c1c
Message:

Merge some more of Christopher's work into systemd branch.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@13500 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networking/netutils/networkmanager-systemd.xml

    r6bc6c1c rc32ea611  
    102102    <bridgehead renderas="sect4">Optional</bridgehead>
    103103    <para role="optional">
     104      <xref linkend="bluez"/> (runtime),
    104105      <xref linkend="gtk-doc"/>,
    105106      <xref linkend="qt4"/>,
     
    119120    <title>Installation of NetworkManager</title>
    120121
    121     <para>
    122       If <xref linkend="qt4"/> and  <xref linkend="qt5"/> are installed, you
    123       need to choose <application>Qt4</application> with
    124       <command>source setqt4</command>, before starting. Install
    125       <application>NetworkManager</application> by running the following
    126       commands:
    127     </para>
    128 
    129 <screen><userinput>./configure --prefix=/usr        \
    130             --sysconfdir=/etc    \
    131             --localstatedir=/var \
    132             --with-nmtui         \
    133             --disable-ppp        \
    134             --with-systemdsystemunitdir=no &amp;&amp;
     122<screen><userinput>./configure --prefix=/usr                   \
     123            --sysconfdir=/etc               \
     124            --localstatedir=/var            \
     125            --disable-ppp                   \
     126            --with-nmtui                    \
     127            --with-session-tracking=systemd \
     128            --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
    135129make</userinput></screen>
    136130
     
    152146
    153147    <para>
    154       <parameter>--with-nmtui</parameter>: This parameter enables build of
    155       <command>nmtui</command>.
    156     </para>
    157 
    158     <para>
    159       <parameter>--with-systemdsystemunitdir=no</parameter>: This parameter is
    160       used for sysv init systems. If you use systemd, replace "no" by the
    161       proper directory.
    162     </para>
    163 
    164     <para>
    165       <parameter>--disable-ppp</parameter>: This parameter disables parameteral
     148      <parameter>--disable-ppp</parameter>: This switch disables
    166149      <application>PPP</application> support in
    167       <application>NetworkManager</application>.
     150      <application>NetworkManager</application> because
     151      <application>PPP</application> isn't part of BLFS.
     152    </para>
     153
     154    <para>
     155      <parameter>--with-nmtui</parameter>: This switch enables building
     156      of the <command>nmtui</command> program. Remove it if you have
     157      not installed <xref linkend="newt"/>.
     158    </para>
     159
     160    <para>
     161      <parameter>--with-session-tracking=systemd</parameter>: This switch
     162      is used to set <command>systemd-logind</command> as the default
     163      program for session tracking.
     164    </para>
     165
     166    <para>
     167      <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
     168      This switch is used to set the correct installation directory for
     169      systemd units.
    168170    </para>
    169171
     
    190192
    191193      <indexterm zone="NetworkManager NetworkManager-config">
    192         <primary
    193         sortas="e-etc-NetworkManager-NetworkManager.conf">
     194        <primary sortas="e-etc-NetworkManager-NetworkManager.conf">
    194195        /etc/NetworkManager/NetworkManager.conf</primary>
    195196      </indexterm>
     
    200201
    201202      <para>
    202         For <application>NetworkManager</application> to work, at least
    203         minimal configuration file must be present. Such file is not
    204         installed with <command>make install</command>. Issue following
     203        For <application>NetworkManager</application> to work, at least a
     204        basic configuration file must be present. Such file is not
     205        installed with <command>make install</command>. Run the following
    205206        command as the
    206         <systemitem class="username">root</systemitem> user to create
    207         minimal <filename>NetworkManager.conf</filename> file:
     207        <systemitem class="username">root</systemitem> user to create a
     208        basic <filename>NetworkManager.conf</filename> file:
    208209      </para>
    209210
     
    214215
    215216      <para>
    216         You can add <option>dns=none</option> to suppress changes to
     217         You can add <option>dns=none</option> to suppress changes to
    217218         <filename>/etc/resolv.conf</filename>. See
    218219         <command>man 5 NetworkManager.conf</command>
     
    223224
    224225    <sect3 id="NetworkManager-init">
    225       <title>Boot Script</title>
     226      <title>Systemd Units</title>
    226227
    227228      <para>
    228         To automatically start the <command>NetworkManager</command> daemon when the
    229         system is rebooted, install the
    230         <filename>/etc/rc.d/init.d/networkmanager</filename> bootscript from the
    231         <xref linkend="bootscripts"/> package.
     229        To start the <command>NetworkManager</command> daemon at boot, enable
     230        the previously installed systemd unit by running the following command
     231        as the <systemitem class="username">root</systemitem> user:
    232232      </para>
    233233
     
    236236      </indexterm>
    237237
    238 <screen role="root"><userinput>make install-networkmanager</userinput></screen>
     238<screen role="root"><userinput>systemctl enable NetworkManager</userinput></screen>
     239
     240      <para>
     241        <application>NetworkManager</application> also ships a systemd unit
     242        called <filename>NetworkManager-wait-online.service</filename> which
     243        can be used to prevent services that require network connectivity
     244        from starting until <application>NetworkManager</application> has
     245        established the connection. To enable it, run the following command
     246        as the <systemitem class="username">root</systemitem> user:
     247      </para>
     248
     249<screen role="root"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
    239250
    240251    </sect3>
     
    252263      <seglistitem>
    253264        <seg>
    254           NetworkManager, nm-avahi-autoipd.action, nm-dhcp-helper,
    255           nm-dispatcher, nm-online, nmcli, and, hardlinked to each other:
    256           nmtui, nmtui-connect, nmtui-edit, and nmtui-hostname
     265          NetworkManager, nm-online, nmcli, nmtui, nmtui-connect,
     266          nmtui-edit, and nmtui-hostname
    257267        </seg>
    258268        <seg>
    259           libnm-glib.so, libnm-glib-vpn.so, libnm-util.so, and
    260           modules under /usr/lib/NetworkManager
     269          libnm-glib.so, libnm-glib-vpn.so, and libnm-util.so
    261270        </seg>
    262271        <seg>
     
    310319        <listitem>
    311320          <para>
    312             interactive ncurses based interface for
     321            is an interactive ncurses based interface for
    313322            <application>nmcli</application>.
    314323          </para>
     
    323332        <listitem>
    324333          <para>
    325             interactive ncurses based interface connection activate/deactivate.
     334            is an interactive ncurses based interface connection
     335            activate/deactivate.
    326336          </para>
    327337          <indexterm zone="NetworkManager nmtui-connect">
     
    335345        <listitem>
    336346          <para>
    337             interactive ncurses based interface connection editor.
     347            is an interactive ncurses based interface connection
     348            editor.
    338349          </para>
    339350          <indexterm zone="NetworkManager nmtui-edit">
     
    347358        <listitem>
    348359          <para>
    349             interactive ncurses based interface hostname editor.
     360            is an interactive ncurses based interface hostname
     361            editor.
    350362          </para>
    351363          <indexterm zone="NetworkManager nmtui-hostname">
Note: See TracChangeset for help on using the changeset viewer.