[e33ddee] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0d7900a] | 7 | <!ENTITY NetworkManager-download-http
|
---|
[f88263d] | 8 | "&gnome-download-http;/NetworkManager/1.14/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[0d7900a] | 9 | <!ENTITY NetworkManager-download-ftp
|
---|
[f88263d] | 10 | "&gnome-download-ftp;/NetworkManager/1.14/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[e64cabd] | 11 | <!ENTITY NetworkManager-md5sum "54ce62f0aa18ef6c5e754eaac47494ac">
|
---|
[d267a13] | 12 | <!ENTITY NetworkManager-size "4.2 MB">
|
---|
[e64cabd] | 13 | <!ENTITY NetworkManager-buildsize "721 MB (with tests)">
|
---|
[d267a13] | 14 | <!ENTITY NetworkManager-time "0.5 SBU (with tests)">
|
---|
[e33ddee] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="NetworkManager" xreflabel="NetworkManager-&NetworkManager-version;">
|
---|
| 18 | <?dbhtml filename="networkmanager.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
[28370fe] | 23 | </sect1info>
|
---|
[e33ddee] | 24 |
|
---|
| 25 | <title>NetworkManager-&NetworkManager-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="NetworkManager">
|
---|
| 28 | <primary sortas="a-NetworkManager">NetworkManager</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to NetworkManager</title>
|
---|
| 33 |
|
---|
[7ded7e3] | 34 | <para>
|
---|
| 35 | <application>NetworkManager</application> is a set of co-operative
|
---|
[e130fead] | 36 | tools that make networking simple and straightforward. Whether you use WiFi,
|
---|
[8df33ae3] | 37 | wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from
|
---|
| 38 | one network to another: Once a network has been configured and joined
|
---|
| 39 | once, it can be detected and re-joined automatically the next time it's
|
---|
| 40 | available.
|
---|
[7ded7e3] | 41 | </para>
|
---|
[e33ddee] | 42 |
|
---|
[6b3a3fe4] | 43 | &lfs83_checked;
|
---|
[e33ddee] | 44 |
|
---|
[cec6657e] | 45 | <note revision="systemd">
|
---|
| 46 | <para>
|
---|
| 47 | Make sure that you disable the <command>systemd-networkd</command>
|
---|
| 48 | service or configure it not to manage the interfaces you want to manage
|
---|
| 49 | with <application>NetworkManager</application>.
|
---|
| 50 | </para>
|
---|
| 51 | </note>
|
---|
| 52 |
|
---|
[e33ddee] | 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
[7ded7e3] | 56 | <para>
|
---|
| 57 | Download (HTTP): <ulink url="&NetworkManager-download-http;"/>
|
---|
| 58 | </para>
|
---|
[e33ddee] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[7ded7e3] | 61 | <para>
|
---|
| 62 | Download (FTP): <ulink url="&NetworkManager-download-ftp;"/>
|
---|
| 63 | </para>
|
---|
[e33ddee] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[7ded7e3] | 66 | <para>
|
---|
| 67 | Download MD5 sum: &NetworkManager-md5sum;
|
---|
| 68 | </para>
|
---|
[e33ddee] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[7ded7e3] | 71 | <para>
|
---|
| 72 | Download size: &NetworkManager-size;
|
---|
| 73 | </para>
|
---|
[e33ddee] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[7ded7e3] | 76 | <para>
|
---|
| 77 | Estimated disk space required: &NetworkManager-buildsize;
|
---|
| 78 | </para>
|
---|
[e33ddee] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[7ded7e3] | 81 | <para>
|
---|
| 82 | Estimated build time: &NetworkManager-time;
|
---|
| 83 | </para>
|
---|
[e33ddee] | 84 | </listitem>
|
---|
| 85 | </itemizedlist>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect3">NetworkManager Dependencies</bridgehead>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d497e89] | 90 | <para role="required">
|
---|
[d267a13] | 91 | <xref linkend="dbus-glib"/> and
|
---|
| 92 | <xref linkend="libndp"/>
|
---|
[d497e89] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 96 | <para role="recommended">
|
---|
[f1ce80b] | 97 | <phrase revision="sysv"><xref linkend="consolekit"/>,</phrase>
|
---|
[c4ae27ab] | 98 | <xref linkend="curl"/>,
|
---|
[d497e89] | 99 | <xref linkend="dhcpcd"/> or
|
---|
[697cb83f] | 100 | <xref linkend="dhcp"/> (client only),
|
---|
[4b3c4b2] | 101 | <xref linkend="gobject-introspection"/>,
|
---|
[b7d1d2b] | 102 | <xref linkend="iptables"/>,
|
---|
[696fed8] | 103 | <xref linkend="newt"/> (for <command>nmtui</command>),
|
---|
[d267a13] | 104 | <xref linkend="nss"/>,
|
---|
[6e1616e2] | 105 | <xref linkend="polkit"/>,
|
---|
[b528d0f4] | 106 | <xref linkend="pygobject3"/>,
|
---|
[cec6657e] | 107 | <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
|
---|
[f3429309] | 108 | <xref linkend="upower"/>,
|
---|
[626bb04] | 109 | <xref linkend="vala"/>, and
|
---|
| 110 | <xref linkend="wpa_supplicant"/> (built with D-Bus support),
|
---|
[d497e89] | 111 | </para>
|
---|
[e33ddee] | 112 |
|
---|
[d0880dfa] | 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d497e89] | 114 | <para role="optional">
|
---|
[d4f4107] | 115 | <xref linkend="bluez"/>,
|
---|
[e64cabd] | 116 | <xref linkend="dbus-python"/> (for the test suite),
|
---|
[d267a13] | 117 | <xref linkend="gnutls"/> (used if <xref linkend="nss"/> is not found),
|
---|
[d497e89] | 118 | <xref linkend="gtk-doc"/>,
|
---|
[d6d0a2cb] | 119 | <xref linkend="jansson"/>,
|
---|
[1ad3510e] | 120 | <xref linkend="libpsl"/>,
|
---|
[e4d2b8d] | 121 | <xref linkend="qt5"/> (for examples),
|
---|
[7d645679] | 122 | <xref linkend="ModemManager"/>,
|
---|
[acb3e9f] | 123 | <xref linkend="valgrind"/>,
|
---|
[f77c63d0] | 124 | <ulink url="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</ulink>,
|
---|
[262a108] | 125 | <ulink url="https://github.com/Distrotech/libaudit">libaudit</ulink>,
|
---|
[4f5369a] | 126 | <ulink url="https://github.com/jpirko/libteam">libteam</ulink>,
|
---|
[cec6657e] | 127 | <ulink url="https://www.samba.org/ftp/ppp/">PPP</ulink>, and
|
---|
[e130fead] | 128 | <ulink url="https://dianne.skoll.ca/projects/rp-pppoe/">RP-PPPoE</ulink>
|
---|
[d497e89] | 129 | </para>
|
---|
[d0880dfa] | 130 |
|
---|
[e33ddee] | 131 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 132 | <ulink url="&blfs-wiki;/NetworkManager"/>
|
---|
| 133 | </para>
|
---|
[e33ddee] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="installation">
|
---|
| 137 | <title>Installation of NetworkManager</title>
|
---|
| 138 |
|
---|
[e4d2b8d] | 139 | <para>If <xref linkend="qt5"/> is installed and the Qt based
|
---|
| 140 | examples are desired, fix the configure script:</para>
|
---|
| 141 |
|
---|
| 142 | <screen><userinput>sed -e '/Qt[CDN]/s/Qt/Qt5/g' \
|
---|
[e64cabd] | 143 | -e 's/-qt4/-qt5/' \
|
---|
[e4d2b8d] | 144 | -e 's/moc_location/host_bins/' \
|
---|
[d267a13] | 145 | -i examples/C/qt/meson.build</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | Fix a missing meson.build file for initrd hooks (not used in BLFS):
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <screen><userinput>sed '/initrd/d' -i src/meson.build</userinput></screen>
|
---|
[e4d2b8d] | 152 |
|
---|
[7ded7e3] | 153 | <para>
|
---|
[7c4f32b] | 154 | Install <application>NetworkManager</application> by running the
|
---|
| 155 | following commands:
|
---|
[7ded7e3] | 156 | </para>
|
---|
[e33ddee] | 157 |
|
---|
[d267a13] | 158 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
| 159 | cd build &&
|
---|
| 160 |
|
---|
| 161 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 162 | meson --prefix /usr \
|
---|
| 163 | --sysconfdir /etc \
|
---|
| 164 | --localstatedir /var \
|
---|
[39100371] | 165 | -Djson_validation=false \
|
---|
[d267a13] | 166 | -Dlibaudit=no \
|
---|
| 167 | -Dlibnm_glib=true \
|
---|
[39100371] | 168 | -Dlibpsl=false \
|
---|
| 169 | -Dnmtui=true \
|
---|
| 170 | -Dovs=false \
|
---|
| 171 | -Dppp=false \
|
---|
[d267a13] | 172 | -Dselinux=false \
|
---|
| 173 | -Dudev_dir=/lib/udev \
|
---|
| 174 | -Dsession_tracking=no \
|
---|
[39100371] | 175 | -Dmodem_manager=false \
|
---|
[d267a13] | 176 | -Dsystemdsystemunitdir=no \
|
---|
| 177 | -Dsystemd_journal=false \
|
---|
| 178 | -Dqt=false \
|
---|
| 179 | .. &&
|
---|
| 180 | ninja</userinput></screen>
|
---|
| 181 |
|
---|
| 182 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 183 | cd build &&
|
---|
| 184 |
|
---|
| 185 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 186 | meson --prefix /usr \
|
---|
| 187 | --sysconfdir /etc \
|
---|
| 188 | --localstatedir /var \
|
---|
[39100371] | 189 | -Djson_validation=false \
|
---|
[d267a13] | 190 | -Dlibaudit=no \
|
---|
| 191 | -Dlibnm_glib=true \
|
---|
[39100371] | 192 | -Dlibpsl=false \
|
---|
| 193 | -Dnmtui=true \
|
---|
| 194 | -Dovs=false \
|
---|
| 195 | -Dppp=false \
|
---|
[d267a13] | 196 | -Dselinux=false \
|
---|
| 197 | -Dqt=false \
|
---|
| 198 | -Dudev_dir=/lib/udev \
|
---|
| 199 | -Dsession_tracking=systemd \
|
---|
[39100371] | 200 | -Dmodem_manager=false \
|
---|
[d267a13] | 201 | -Dsystemdsystemunitdir=/lib/systemd/system \
|
---|
| 202 | .. &&
|
---|
| 203 | ninja</userinput></screen>
|
---|
[cec6657e] | 204 |
|
---|
[7ded7e3] | 205 | <para>
|
---|
[e64cabd] | 206 | An already active <phrase revision="sysv">graphical</phrase> session
|
---|
| 207 | with bus address is necessary to run the tests. To test the results,
|
---|
| 208 | issue: <command>ninja test</command>.
|
---|
[7ded7e3] | 209 | </para>
|
---|
[e33ddee] | 210 |
|
---|
[7ded7e3] | 211 | <para>
|
---|
| 212 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 213 | </para>
|
---|
[e33ddee] | 214 |
|
---|
[d267a13] | 215 | <screen role="root"><userinput>ninja install &&
|
---|
| 216 | mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
|
---|
[e33ddee] | 217 |
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | <sect2 role="commands">
|
---|
| 221 | <title>Command Explanations</title>
|
---|
| 222 |
|
---|
[e4d2b8d] | 223 | <para>
|
---|
| 224 | <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
|
---|
| 225 | necessary to build the Qt5 based examples.
|
---|
| 226 | </para>
|
---|
| 227 |
|
---|
[e64cabd] | 228 | <para>
|
---|
[e130fead] | 229 | <parameter>-Ddocs=true</parameter>: Use this switch to enable building
|
---|
[39100371] | 230 | man pages and documentation if <xref linkend="gtk-doc"/> is installed.
|
---|
[e64cabd] | 231 | </para>
|
---|
| 232 |
|
---|
[7ded7e3] | 233 | <para>
|
---|
[d267a13] | 234 | <parameter>-Dnmtui=true</parameter>: This parameter enables building
|
---|
[acb3e9f] | 235 | <command>nmtui</command>.
|
---|
| 236 | </para>
|
---|
| 237 |
|
---|
[d267a13] | 238 | <para revision="sysv">
|
---|
| 239 | <parameter>-Dsession_tracking=no</parameter>,
|
---|
| 240 | <parameter>-Dsystemdsystemunitdir=no</parameter>, and
|
---|
| 241 | <parameter>-Dsystemd_journal=false</parameter>: systemd is not
|
---|
| 242 | used for sysv init systems.
|
---|
| 243 | </para>
|
---|
| 244 |
|
---|
[39100371] | 245 | <para>
|
---|
| 246 | <parameter>-Djson_validation=false</parameter>,
|
---|
| 247 | <parameter>-Dlibpsl=false</parameter>, and
|
---|
[e130fead] | 248 | <parameter>-Dovs=false</parameter>: These switches disable building with the
|
---|
[39100371] | 249 | respective libraries. Remove if you have the needed libraries installed.
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
| 252 | <para>
|
---|
| 253 | <parameter>-Dmodem_manager=false</parameter>: This switch is requried if
|
---|
| 254 | <application>ModemManager</application> is not installed. Omit if you
|
---|
[e130fead] | 255 | have built <application>ModemManager</application>.
|
---|
[39100371] | 256 | </para>
|
---|
| 257 |
|
---|
[cec6657e] | 258 | <para revision="systemd">
|
---|
[d267a13] | 259 | <parameter>-Dsession_tracking=systemd</parameter>: This switch
|
---|
[cec6657e] | 260 | is used to set <command>systemd-logind</command> as the default
|
---|
| 261 | program for session tracking.
|
---|
| 262 | </para>
|
---|
| 263 |
|
---|
| 264 | <para revision="systemd">
|
---|
[d267a13] | 265 | <parameter>-Dsystemdsystemunitdir=/lib/systemd/system</parameter>:
|
---|
[cec6657e] | 266 | This switch is used to set the correct installation directory for
|
---|
| 267 | systemd units.
|
---|
| 268 | </para>
|
---|
| 269 |
|
---|
[acb3e9f] | 270 | <para>
|
---|
[d267a13] | 271 | <parameter>-Dppp=false</parameter>: This parameter disables
|
---|
[6e1616e2] | 272 | <application>PPP</application> support in
|
---|
| 273 | <application>NetworkManager</application>.
|
---|
[7ded7e3] | 274 | </para>
|
---|
[e33ddee] | 275 |
|
---|
[8c7390c] | 276 | <para>
|
---|
[d267a13] | 277 | <parameter>-Dlibaudit=no</parameter> and
|
---|
| 278 | <parameter>-Dselinux=false</parameter>: libaudit and SELinux are not used
|
---|
| 279 | in BLFS.
|
---|
[d6e164b] | 280 | </para>
|
---|
[e33ddee] | 281 |
|
---|
[b528d0f4] | 282 | <para>
|
---|
[d267a13] | 283 | <parameter>-Dqt=false</parameter>: disables the
|
---|
| 284 | <application>QT</application> examples. Omit if you have
|
---|
| 285 | <application>QT</application> available and wish to install the examples.
|
---|
[b528d0f4] | 286 | </para>
|
---|
| 287 |
|
---|
[e33ddee] | 288 | </sect2>
|
---|
| 289 |
|
---|
[d497e89] | 290 | <sect2 role="configuration">
|
---|
| 291 | <title>Configuring NetworkManager</title>
|
---|
| 292 |
|
---|
| 293 | <sect3 id="NetworkManager-config">
|
---|
| 294 | <title>Config Files</title>
|
---|
| 295 | <para>
|
---|
| 296 | <filename>/etc/NetworkManager/NetworkManager.conf</filename>
|
---|
| 297 | </para>
|
---|
| 298 |
|
---|
| 299 | <indexterm zone="NetworkManager NetworkManager-config">
|
---|
| 300 | <primary
|
---|
| 301 | sortas="e-etc-NetworkManager-NetworkManager.conf">
|
---|
| 302 | /etc/NetworkManager/NetworkManager.conf</primary>
|
---|
| 303 | </indexterm>
|
---|
| 304 |
|
---|
| 305 | </sect3>
|
---|
| 306 |
|
---|
| 307 | <sect3><title>Configuration Information</title>
|
---|
| 308 |
|
---|
| 309 | <para>
|
---|
| 310 | For <application>NetworkManager</application> to work, at least
|
---|
[8df33ae3] | 311 | a minimal configuration file must be present. Such file is not
|
---|
| 312 | installed with <command>make install</command>. Issue the following
|
---|
| 313 | command as the <systemitem class="username">root</systemitem> user to
|
---|
| 314 | create minimal <filename>NetworkManager.conf</filename> file:
|
---|
[d497e89] | 315 | </para>
|
---|
| 316 |
|
---|
| 317 | <screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
---|
| 318 | <literal>[main]
|
---|
| 319 | plugins=keyfile</literal>
|
---|
| 320 | EOF</userinput></screen>
|
---|
| 321 |
|
---|
| 322 | <para>
|
---|
[7fd06b0] | 323 | This file should not be modified directly by users of the system.
|
---|
| 324 | Instead, system specific changes should be made using configuration
|
---|
| 325 | files in the
|
---|
| 326 | <filename class="directory">/etc/NetworkManager/conf.d</filename>
|
---|
| 327 | direcotry.
|
---|
| 328 | </para>
|
---|
| 329 |
|
---|
| 330 | <para>
|
---|
| 331 | To allow polkit to manage authorizations, add the following
|
---|
| 332 | configuration file:
|
---|
| 333 | </para>
|
---|
| 334 |
|
---|
| 335 | <screen role="root"><userinput>cat > /etc/NetworkManager/conf.d/polkit.conf << "EOF"
|
---|
| 336 | <literal>[main]
|
---|
| 337 | auth-polkit=true</literal>
|
---|
| 338 | EOF</userinput></screen>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
| 341 | To use something other than the built-in dhcp client (recommended if
|
---|
| 342 | using only <command>nmcli</command>), use the following configuration
|
---|
| 343 | (valid values are dhclient, dhcpcd, and internal):
|
---|
| 344 | </para>
|
---|
| 345 |
|
---|
| 346 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/dhcp.conf << "EOF"
|
---|
| 347 | <literal>[main]
|
---|
| 348 | dhcp=</literal><replaceable>dhclient</replaceable>
|
---|
| 349 | EOF</userinput></screen>
|
---|
| 350 |
|
---|
| 351 | <para>
|
---|
| 352 | To prevent <application>NetworkManager</application> from updating the
|
---|
| 353 | <filename>/etc/resolv.conf</filename> file, add the following
|
---|
| 354 | configuration file:
|
---|
| 355 | </para>
|
---|
| 356 |
|
---|
| 357 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/no-dns-update.conf << "EOF"
|
---|
| 358 | <literal>[main]
|
---|
| 359 | dns=none</literal>
|
---|
| 360 | EOF</userinput></screen>
|
---|
| 361 |
|
---|
| 362 | <para>
|
---|
| 363 | For additional configuation options, see
|
---|
| 364 | <command>man 5 NetworkManager.conf</command>.
|
---|
[0d7900a] | 365 | </para>
|
---|
[d497e89] | 366 |
|
---|
[8df33ae3] | 367 | <para>
|
---|
| 368 | To allow regular users permission to configure network connections,
|
---|
| 369 | you should add them to the
|
---|
| 370 | <systemitem class="groupname">netdev</systemitem>
|
---|
| 371 | group, and create a <application>polkit</application> rule that grants
|
---|
| 372 | access. Run the following commands as the
|
---|
| 373 | <systemitem class="username">root</systemitem> user:
|
---|
| 374 | </para>
|
---|
| 375 |
|
---|
[a581662] | 376 | <screen role="root"><userinput>groupadd -fg 86 netdev &&
|
---|
[b88584a] | 377 | /usr/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
---|
[8df33ae3] | 378 |
|
---|
| 379 | cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
---|
| 380 | <literal>polkit.addRule(function(action, subject) {
|
---|
| 381 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
---|
| 382 | return polkit.Result.YES;
|
---|
| 383 | }
|
---|
| 384 | });</literal>
|
---|
| 385 | EOF</userinput></screen>
|
---|
| 386 |
|
---|
[d497e89] | 387 | </sect3>
|
---|
| 388 |
|
---|
| 389 | <sect3 id="NetworkManager-init">
|
---|
[cec6657e] | 390 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 391 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 392 |
|
---|
| 393 | <para revision="sysv">
|
---|
| 394 | To automatically start the <command>NetworkManager</command> daemon
|
---|
| 395 | when the system is rebooted, install the
|
---|
| 396 | <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
|
---|
| 397 | <xref linkend="bootscripts"/> package.
|
---|
| 398 | </para>
|
---|
[d497e89] | 399 |
|
---|
[cec6657e] | 400 | <para revision="systemd">
|
---|
| 401 | To start the <command>NetworkManager</command> daemon at boot, enable
|
---|
| 402 | the previously installed systemd unit by running the following command
|
---|
| 403 | as the <systemitem class="username">root</systemitem> user:
|
---|
[d497e89] | 404 | </para>
|
---|
| 405 |
|
---|
[8df33ae3] | 406 | <note>
|
---|
| 407 | <para>
|
---|
| 408 | If using <application>Network Manager</application> to manage
|
---|
| 409 | an interface, any previous configuration for that interface should be
|
---|
| 410 | removed, and the interface brought down prior to starting
|
---|
| 411 | <application>Network Manager</application>.
|
---|
| 412 | </para>
|
---|
| 413 | </note>
|
---|
| 414 |
|
---|
[d497e89] | 415 | <indexterm zone="NetworkManager NetworkManager-init">
|
---|
| 416 | <primary sortas="f-NetworkManager">NetworkManager</primary>
|
---|
| 417 | </indexterm>
|
---|
| 418 |
|
---|
[cec6657e] | 419 | <screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
|
---|
| 420 |
|
---|
| 421 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
|
---|
| 422 |
|
---|
| 423 | <para revision="systemd">
|
---|
| 424 | <application>NetworkManager</application> also ships a systemd unit
|
---|
| 425 | called <filename>NetworkManager-wait-online.service</filename> which
|
---|
| 426 | can be used to prevent services that require network connectivity
|
---|
| 427 | from starting until <application>NetworkManager</application> has
|
---|
| 428 | established the connection. To enable it, run the following command
|
---|
| 429 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 430 | </para>
|
---|
| 431 |
|
---|
| 432 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
|
---|
[2cd1071] | 433 |
|
---|
[d497e89] | 434 | </sect3>
|
---|
| 435 |
|
---|
| 436 | </sect2>
|
---|
| 437 |
|
---|
[e33ddee] | 438 | <sect2 role="content">
|
---|
| 439 | <title>Contents</title>
|
---|
| 440 |
|
---|
| 441 | <segmentedlist>
|
---|
| 442 | <segtitle>Installed Programs</segtitle>
|
---|
| 443 | <segtitle>Installed Libraries</segtitle>
|
---|
| 444 | <segtitle>Installed Directories</segtitle>
|
---|
| 445 |
|
---|
| 446 | <seglistitem>
|
---|
[d497e89] | 447 | <seg>
|
---|
[8c7390c] | 448 | NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
|
---|
| 449 | nmtui-connect, nmtui-edit, and nmtui-hostname
|
---|
[d497e89] | 450 | </seg>
|
---|
| 451 | <seg>
|
---|
[262a108] | 452 | libnm.so and several modules under /usr/lib/NetworkManager
|
---|
[d497e89] | 453 | </seg>
|
---|
| 454 | <seg>
|
---|
[5aa7dce] | 455 | /etc/NetworkManager,
|
---|
[262a108] | 456 | /usr/include/libnm,
|
---|
[5aa7dce] | 457 | /usr/lib/NetworkManager,
|
---|
| 458 | /usr/share/doc/NetworkManager-&NetworkManager-version;,
|
---|
[262a108] | 459 | /usr/share/gtk-doc/html/{libnm,NetworkManager}
|
---|
[8c7390c] | 460 | (if the documentation is built),
|
---|
[5aa7dce] | 461 | and
|
---|
[262a108] | 462 | /var/lib/NetworkManager
|
---|
[d497e89] | 463 | </seg>
|
---|
[262a108] | 464 | <!-- A lot of libraries were removed here. We should verify compatibilty. -->
|
---|
[e33ddee] | 465 | </seglistitem>
|
---|
| 466 | </segmentedlist>
|
---|
| 467 |
|
---|
| 468 | <variablelist>
|
---|
| 469 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 470 | <?dbfo list-presentation="list"?>
|
---|
| 471 | <?dbhtml list-presentation="table"?>
|
---|
| 472 |
|
---|
[d497e89] | 473 | <varlistentry id="nmcli">
|
---|
| 474 | <term><command>nmcli</command></term>
|
---|
[e33ddee] | 475 | <listitem>
|
---|
[7ded7e3] | 476 | <para>
|
---|
| 477 | is a command-line tool for controlling
|
---|
[0d7900a] | 478 | <application>NetworkManager</application>
|
---|
[7ded7e3] | 479 | and getting its status.
|
---|
| 480 | </para>
|
---|
[d497e89] | 481 | <indexterm zone="NetworkManager nmcli">
|
---|
| 482 | <primary sortas="b-nmcli">nmcli</primary>
|
---|
[e33ddee] | 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 |
|
---|
| 487 | <varlistentry id="nm-online">
|
---|
| 488 | <term><command>nm-online</command></term>
|
---|
| 489 | <listitem>
|
---|
[7ded7e3] | 490 | <para>
|
---|
| 491 | is a utility to find out whether you are online.
|
---|
| 492 | </para>
|
---|
[e33ddee] | 493 | <indexterm zone="NetworkManager nm-online">
|
---|
| 494 | <primary sortas="b-nm-online">nm-online</primary>
|
---|
| 495 | </indexterm>
|
---|
| 496 | </listitem>
|
---|
| 497 | </varlistentry>
|
---|
| 498 |
|
---|
[acb3e9f] | 499 | <varlistentry id="nmtui">
|
---|
| 500 | <term><command>nmtui</command></term>
|
---|
| 501 | <listitem>
|
---|
| 502 | <para>
|
---|
[939653d] | 503 | is an interactive ncurses based interface for
|
---|
[acb3e9f] | 504 | <application>nmcli</application>.
|
---|
| 505 | </para>
|
---|
| 506 | <indexterm zone="NetworkManager nmtui">
|
---|
| 507 | <primary sortas="b-nmtui">nmtui</primary>
|
---|
| 508 | </indexterm>
|
---|
| 509 | </listitem>
|
---|
| 510 | </varlistentry>
|
---|
| 511 |
|
---|
| 512 | <varlistentry id="nmtui-connect">
|
---|
| 513 | <term><command>nmtui-connect</command></term>
|
---|
| 514 | <listitem>
|
---|
| 515 | <para>
|
---|
[939653d] | 516 | is an interactive ncurses based interface connection to
|
---|
| 517 | activate/deactivate connections.
|
---|
[acb3e9f] | 518 | </para>
|
---|
| 519 | <indexterm zone="NetworkManager nmtui-connect">
|
---|
| 520 | <primary sortas="b-nmtui-connect">nmtui-connect</primary>
|
---|
| 521 | </indexterm>
|
---|
| 522 | </listitem>
|
---|
| 523 | </varlistentry>
|
---|
| 524 |
|
---|
| 525 | <varlistentry id="nmtui-edit">
|
---|
| 526 | <term><command>nmtui-edit</command></term>
|
---|
| 527 | <listitem>
|
---|
| 528 | <para>
|
---|
[939653d] | 529 | is an interactive ncurses based interface connection editor.
|
---|
[acb3e9f] | 530 | </para>
|
---|
| 531 | <indexterm zone="NetworkManager nmtui-edit">
|
---|
| 532 | <primary sortas="b-nmtui-edit">nmtui-edit</primary>
|
---|
| 533 | </indexterm>
|
---|
| 534 | </listitem>
|
---|
| 535 | </varlistentry>
|
---|
| 536 |
|
---|
| 537 | <varlistentry id="nmtui-hostname">
|
---|
| 538 | <term><command>nmtui-hostname</command></term>
|
---|
[e33ddee] | 539 | <listitem>
|
---|
[7ded7e3] | 540 | <para>
|
---|
[939653d] | 541 | is an interactive ncurses based interface hostname editor.
|
---|
[7ded7e3] | 542 | </para>
|
---|
[acb3e9f] | 543 | <indexterm zone="NetworkManager nmtui-hostname">
|
---|
| 544 | <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
|
---|
[e33ddee] | 545 | </indexterm>
|
---|
| 546 | </listitem>
|
---|
| 547 | </varlistentry>
|
---|
| 548 |
|
---|
[d497e89] | 549 | <varlistentry id="NetworkManager-prog">
|
---|
| 550 | <term><command>NetworkManager</command></term>
|
---|
[e33ddee] | 551 | <listitem>
|
---|
[7ded7e3] | 552 | <para>
|
---|
| 553 | is the network management daemon.
|
---|
| 554 | </para>
|
---|
[d497e89] | 555 | <indexterm zone="NetworkManager NetworkManager-prog">
|
---|
[7ded7e3] | 556 | <primary sortas="b-NetworkManager">NetworkManager</primary>
|
---|
[e33ddee] | 557 | </indexterm>
|
---|
| 558 | </listitem>
|
---|
| 559 | </varlistentry>
|
---|
| 560 |
|
---|
[262a108] | 561 | <varlistentry id="libnm">
|
---|
| 562 | <term><filename class="libraryfile">libnm.so</filename></term>
|
---|
[e33ddee] | 563 | <listitem>
|
---|
[7ded7e3] | 564 | <para>
|
---|
| 565 | contains functions used by <application>NetworkManager</application>.
|
---|
| 566 | </para>
|
---|
[262a108] | 567 | <indexterm zone="NetworkManager libnm">
|
---|
| 568 | <primary sortas="c-libnm">libnm.so</primary>
|
---|
[e33ddee] | 569 | </indexterm>
|
---|
| 570 | </listitem>
|
---|
| 571 | </varlistentry>
|
---|
| 572 |
|
---|
| 573 | </variablelist>
|
---|
| 574 |
|
---|
| 575 | </sect2>
|
---|
| 576 |
|
---|
| 577 | </sect1>
|
---|