[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
|
---|
[eae0d6d1] | 8 | "&gnome-download-http;/NetworkManager/&NetworkManager-minor;/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[0d7900a] | 9 | <!ENTITY NetworkManager-download-ftp
|
---|
[eae0d6d1] | 10 | "&gnome-download-ftp;/NetworkManager/&NetworkManager-minor;/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[372597e] | 11 | <!ENTITY NetworkManager-md5sum "8da5f340426e03823e012c3800497990">
|
---|
| 12 | <!ENTITY NetworkManager-size "4.6 MB">
|
---|
[e022b07] | 13 | <!ENTITY NetworkManager-buildsize "860 MB (with tests)">
|
---|
[12b10249] | 14 | <!ENTITY NetworkManager-time "0.9 SBU (with tests; both using parallelism=4)">
|
---|
[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 |
|
---|
[48bcac9] | 43 | &lfs90_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">
|
---|
[c4ae27ab] | 97 | <xref linkend="curl"/>,
|
---|
[d497e89] | 98 | <xref linkend="dhcpcd"/> or
|
---|
[cac7f93] | 99 | <xref role="nodep" linkend="dhcp"/> (client only),
|
---|
[4b3c4b2] | 100 | <xref linkend="gobject-introspection"/>,
|
---|
[b7d1d2b] | 101 | <xref linkend="iptables"/>,
|
---|
[f759a25] | 102 | <xref linkend="jansson"/>,
|
---|
[696fed8] | 103 | <xref linkend="newt"/> (for <command>nmtui</command>),
|
---|
[d267a13] | 104 | <xref linkend="nss"/>,
|
---|
[6e1616e2] | 105 | <xref linkend="polkit"/>,
|
---|
[b528d0f4] | 106 | <xref linkend="pygobject3"/>,
|
---|
[51dfb3e] | 107 | <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
---|
[cec6657e] | 108 | <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
|
---|
[f3429309] | 109 | <xref linkend="upower"/>,
|
---|
[626bb04] | 110 | <xref linkend="vala"/>, and
|
---|
| 111 | <xref linkend="wpa_supplicant"/> (built with D-Bus support),
|
---|
[d497e89] | 112 | </para>
|
---|
[e33ddee] | 113 |
|
---|
[d0880dfa] | 114 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d497e89] | 115 | <para role="optional">
|
---|
[d4f4107] | 116 | <xref linkend="bluez"/>,
|
---|
[e64cabd] | 117 | <xref linkend="dbus-python"/> (for the test suite),
|
---|
[d267a13] | 118 | <xref linkend="gnutls"/> (used if <xref linkend="nss"/> is not found),
|
---|
[d497e89] | 119 | <xref linkend="gtk-doc"/>,
|
---|
[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 |
|
---|
[13b116c] | 136 | <sect2 role="kernel" id="NetworkManager-kernel">
|
---|
| 137 | <title>Kernel Configuration</title>
|
---|
| 138 |
|
---|
| 139 | <para>
|
---|
| 140 | If you wish to run the tests, enable the following options in the
|
---|
| 141 | kernel configuration and recompile the kernel if necessary:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
| 144 | <!-- Ethernet Teaming support is potentially optional, but I didn't
|
---|
| 145 | run the tests again to test that. It was needed to convince one of
|
---|
| 146 | the Linux Platform tests to move farther along because otherwise
|
---|
| 147 | RTNETLINK would respond with an Error 95 - unknown device type.
|
---|
| 148 | This would cause the test to fail early on in the process. -->
|
---|
| 149 |
|
---|
| 150 | <screen><literal>Device Drivers --->
|
---|
| 151 | [*] Network device support [CONFIG_NETDEVICES] --->
|
---|
| 152 | [*] Bonding driver support [CONFIG_BONDING]
|
---|
| 153 | [*] Dummy net driver support [CONFIG_DUMMY]
|
---|
| 154 | [*] Ethernet team driver support [CONFIG_NET_TEAM]</literal></screen>
|
---|
| 155 |
|
---|
| 156 | <indexterm zone="NetworkManager NetworkManager-kernel">
|
---|
| 157 | <primary sortas="d-NetworkManager">NetworkManager</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </sect2>
|
---|
| 160 |
|
---|
[e33ddee] | 161 | <sect2 role="installation">
|
---|
| 162 | <title>Installation of NetworkManager</title>
|
---|
| 163 |
|
---|
[e4d2b8d] | 164 | <para>If <xref linkend="qt5"/> is installed and the Qt based
|
---|
| 165 | examples are desired, fix the configure script:</para>
|
---|
| 166 |
|
---|
[e022b07] | 167 | <screen><userinput>sed -e 's/-qt4/-qt5/' \
|
---|
[e4d2b8d] | 168 | -e 's/moc_location/host_bins/' \
|
---|
[d267a13] | 169 | -i examples/C/qt/meson.build</userinput></screen>
|
---|
| 170 |
|
---|
| 171 | <para>
|
---|
| 172 | Fix a missing meson.build file for initrd hooks (not used in BLFS):
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
| 175 | <screen><userinput>sed '/initrd/d' -i src/meson.build</userinput></screen>
|
---|
[e4d2b8d] | 176 |
|
---|
[fdbfe39] | 177 | <para>
|
---|
| 178 | Fix the python scripts so that they use <application>Python
|
---|
| 179 | 3</application>:
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <screen><userinput>grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'</userinput></screen>
|
---|
| 183 |
|
---|
[7ded7e3] | 184 | <para>
|
---|
[7c4f32b] | 185 | Install <application>NetworkManager</application> by running the
|
---|
| 186 | following commands:
|
---|
[7ded7e3] | 187 | </para>
|
---|
[e33ddee] | 188 |
|
---|
[d267a13] | 189 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[7d07abd] | 190 | cd build &&
|
---|
[d267a13] | 191 |
|
---|
| 192 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 193 | meson --prefix /usr \
|
---|
| 194 | --sysconfdir /etc \
|
---|
| 195 | --localstatedir /var \
|
---|
[39100371] | 196 | -Djson_validation=false \
|
---|
[d267a13] | 197 | -Dlibaudit=no \
|
---|
[39100371] | 198 | -Dlibpsl=false \
|
---|
| 199 | -Dnmtui=true \
|
---|
| 200 | -Dovs=false \
|
---|
| 201 | -Dppp=false \
|
---|
[d267a13] | 202 | -Dselinux=false \
|
---|
| 203 | -Dudev_dir=/lib/udev \
|
---|
[51dfb3e] | 204 | -Dsession_tracking=elogind \
|
---|
[39100371] | 205 | -Dmodem_manager=false \
|
---|
[d267a13] | 206 | -Dsystemdsystemunitdir=no \
|
---|
| 207 | -Dsystemd_journal=false \
|
---|
| 208 | -Dqt=false \
|
---|
| 209 | .. &&
|
---|
| 210 | ninja</userinput></screen>
|
---|
| 211 |
|
---|
| 212 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[7d07abd] | 213 | cd build &&
|
---|
[d267a13] | 214 |
|
---|
| 215 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 216 | meson --prefix /usr \
|
---|
| 217 | --sysconfdir /etc \
|
---|
| 218 | --localstatedir /var \
|
---|
[39100371] | 219 | -Djson_validation=false \
|
---|
[d267a13] | 220 | -Dlibaudit=no \
|
---|
[39100371] | 221 | -Dlibpsl=false \
|
---|
| 222 | -Dnmtui=true \
|
---|
| 223 | -Dovs=false \
|
---|
| 224 | -Dppp=false \
|
---|
[d267a13] | 225 | -Dselinux=false \
|
---|
| 226 | -Dqt=false \
|
---|
| 227 | -Dudev_dir=/lib/udev \
|
---|
| 228 | -Dsession_tracking=systemd \
|
---|
[39100371] | 229 | -Dmodem_manager=false \
|
---|
[d267a13] | 230 | -Dsystemdsystemunitdir=/lib/systemd/system \
|
---|
| 231 | .. &&
|
---|
| 232 | ninja</userinput></screen>
|
---|
[cec6657e] | 233 |
|
---|
[7ded7e3] | 234 | <para>
|
---|
[e64cabd] | 235 | An already active <phrase revision="sysv">graphical</phrase> session
|
---|
| 236 | with bus address is necessary to run the tests. To test the results,
|
---|
[13b116c] | 237 | as the root user, <!-- needs the "ip" command -->
|
---|
[e022b07] | 238 | issue: <command>ninja test</command>.
|
---|
[7ded7e3] | 239 | </para>
|
---|
[e33ddee] | 240 |
|
---|
[7ded7e3] | 241 | <para>
|
---|
| 242 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 243 | </para>
|
---|
[e33ddee] | 244 |
|
---|
[d267a13] | 245 | <screen role="root"><userinput>ninja install &&
|
---|
| 246 | mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
|
---|
[e33ddee] | 247 |
|
---|
| 248 | </sect2>
|
---|
| 249 |
|
---|
| 250 | <sect2 role="commands">
|
---|
| 251 | <title>Command Explanations</title>
|
---|
| 252 |
|
---|
[e4d2b8d] | 253 | <para>
|
---|
| 254 | <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
|
---|
| 255 | necessary to build the Qt5 based examples.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
[e64cabd] | 258 | <para>
|
---|
[fdbfe39] | 259 | <option>-Ddocs=true</option>: Use this switch to enable building
|
---|
[39100371] | 260 | man pages and documentation if <xref linkend="gtk-doc"/> is installed.
|
---|
[e64cabd] | 261 | </para>
|
---|
| 262 |
|
---|
[7ded7e3] | 263 | <para>
|
---|
[d267a13] | 264 | <parameter>-Dnmtui=true</parameter>: This parameter enables building
|
---|
[acb3e9f] | 265 | <command>nmtui</command>.
|
---|
| 266 | </para>
|
---|
| 267 |
|
---|
[d267a13] | 268 | <para revision="sysv">
|
---|
[51dfb3e] | 269 | <parameter>-Dsystemdsystemunitdir=no</parameter> and
|
---|
[d267a13] | 270 | <parameter>-Dsystemd_journal=false</parameter>: systemd is not
|
---|
| 271 | used for sysv init systems.
|
---|
| 272 | </para>
|
---|
| 273 |
|
---|
[39100371] | 274 | <para>
|
---|
| 275 | <parameter>-Djson_validation=false</parameter>,
|
---|
| 276 | <parameter>-Dlibpsl=false</parameter>, and
|
---|
[e130fead] | 277 | <parameter>-Dovs=false</parameter>: These switches disable building with the
|
---|
[39100371] | 278 | respective libraries. Remove if you have the needed libraries installed.
|
---|
| 279 | </para>
|
---|
[52c95143] | 280 |
|
---|
| 281 | <!--
|
---|
[39100371] | 282 | <para>
|
---|
[f759a25] | 283 | <parameter>-Dlibpsl=false</parameter>: This switch is required if
|
---|
| 284 | <application>libpsl</application> is not installed. Omit this switch if
|
---|
| 285 | you have built <application>libpsl</application>.
|
---|
| 286 | </para>
|
---|
[52c95143] | 287 | -->
|
---|
[f759a25] | 288 |
|
---|
| 289 | <para>
|
---|
[39100371] | 290 | <parameter>-Dmodem_manager=false</parameter>: This switch is requried if
|
---|
| 291 | <application>ModemManager</application> is not installed. Omit if you
|
---|
[e130fead] | 292 | have built <application>ModemManager</application>.
|
---|
[39100371] | 293 | </para>
|
---|
| 294 |
|
---|
[51dfb3e] | 295 | <para revision="sysv">
|
---|
| 296 | <parameter>-Dsession_tracking=elogind</parameter>: This switch
|
---|
| 297 | is used to set <command>elogind</command> as the default
|
---|
| 298 | program for session tracking.
|
---|
| 299 | </para>
|
---|
| 300 |
|
---|
[cec6657e] | 301 | <para revision="systemd">
|
---|
[d267a13] | 302 | <parameter>-Dsession_tracking=systemd</parameter>: This switch
|
---|
[cec6657e] | 303 | is used to set <command>systemd-logind</command> as the default
|
---|
| 304 | program for session tracking.
|
---|
| 305 | </para>
|
---|
| 306 |
|
---|
| 307 | <para revision="systemd">
|
---|
[d267a13] | 308 | <parameter>-Dsystemdsystemunitdir=/lib/systemd/system</parameter>:
|
---|
[cec6657e] | 309 | This switch is used to set the correct installation directory for
|
---|
| 310 | systemd units.
|
---|
| 311 | </para>
|
---|
| 312 |
|
---|
[acb3e9f] | 313 | <para>
|
---|
[d267a13] | 314 | <parameter>-Dppp=false</parameter>: This parameter disables
|
---|
[6e1616e2] | 315 | <application>PPP</application> support in
|
---|
| 316 | <application>NetworkManager</application>.
|
---|
[7ded7e3] | 317 | </para>
|
---|
[e33ddee] | 318 |
|
---|
[8c7390c] | 319 | <para>
|
---|
[d267a13] | 320 | <parameter>-Dlibaudit=no</parameter> and
|
---|
| 321 | <parameter>-Dselinux=false</parameter>: libaudit and SELinux are not used
|
---|
| 322 | in BLFS.
|
---|
[d6e164b] | 323 | </para>
|
---|
[e33ddee] | 324 |
|
---|
[b528d0f4] | 325 | <para>
|
---|
[d267a13] | 326 | <parameter>-Dqt=false</parameter>: disables the
|
---|
| 327 | <application>QT</application> examples. Omit if you have
|
---|
| 328 | <application>QT</application> available and wish to install the examples.
|
---|
[b528d0f4] | 329 | </para>
|
---|
| 330 |
|
---|
[e33ddee] | 331 | </sect2>
|
---|
| 332 |
|
---|
[d497e89] | 333 | <sect2 role="configuration">
|
---|
| 334 | <title>Configuring NetworkManager</title>
|
---|
| 335 |
|
---|
| 336 | <sect3 id="NetworkManager-config">
|
---|
| 337 | <title>Config Files</title>
|
---|
| 338 | <para>
|
---|
| 339 | <filename>/etc/NetworkManager/NetworkManager.conf</filename>
|
---|
| 340 | </para>
|
---|
| 341 |
|
---|
| 342 | <indexterm zone="NetworkManager NetworkManager-config">
|
---|
| 343 | <primary
|
---|
| 344 | sortas="e-etc-NetworkManager-NetworkManager.conf">
|
---|
| 345 | /etc/NetworkManager/NetworkManager.conf</primary>
|
---|
| 346 | </indexterm>
|
---|
| 347 |
|
---|
| 348 | </sect3>
|
---|
| 349 |
|
---|
| 350 | <sect3><title>Configuration Information</title>
|
---|
| 351 |
|
---|
| 352 | <para>
|
---|
| 353 | For <application>NetworkManager</application> to work, at least
|
---|
[8df33ae3] | 354 | a minimal configuration file must be present. Such file is not
|
---|
| 355 | installed with <command>make install</command>. Issue the following
|
---|
| 356 | command as the <systemitem class="username">root</systemitem> user to
|
---|
| 357 | create minimal <filename>NetworkManager.conf</filename> file:
|
---|
[d497e89] | 358 | </para>
|
---|
| 359 |
|
---|
| 360 | <screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
---|
| 361 | <literal>[main]
|
---|
| 362 | plugins=keyfile</literal>
|
---|
| 363 | EOF</userinput></screen>
|
---|
| 364 |
|
---|
| 365 | <para>
|
---|
[7fd06b0] | 366 | This file should not be modified directly by users of the system.
|
---|
| 367 | Instead, system specific changes should be made using configuration
|
---|
| 368 | files in the
|
---|
| 369 | <filename class="directory">/etc/NetworkManager/conf.d</filename>
|
---|
| 370 | direcotry.
|
---|
| 371 | </para>
|
---|
| 372 |
|
---|
| 373 | <para>
|
---|
| 374 | To allow polkit to manage authorizations, add the following
|
---|
| 375 | configuration file:
|
---|
| 376 | </para>
|
---|
| 377 |
|
---|
| 378 | <screen role="root"><userinput>cat > /etc/NetworkManager/conf.d/polkit.conf << "EOF"
|
---|
| 379 | <literal>[main]
|
---|
| 380 | auth-polkit=true</literal>
|
---|
| 381 | EOF</userinput></screen>
|
---|
| 382 |
|
---|
| 383 | <para>
|
---|
| 384 | To use something other than the built-in dhcp client (recommended if
|
---|
| 385 | using only <command>nmcli</command>), use the following configuration
|
---|
| 386 | (valid values are dhclient, dhcpcd, and internal):
|
---|
| 387 | </para>
|
---|
| 388 |
|
---|
| 389 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/dhcp.conf << "EOF"
|
---|
| 390 | <literal>[main]
|
---|
| 391 | dhcp=</literal><replaceable>dhclient</replaceable>
|
---|
| 392 | EOF</userinput></screen>
|
---|
| 393 |
|
---|
| 394 | <para>
|
---|
| 395 | To prevent <application>NetworkManager</application> from updating the
|
---|
| 396 | <filename>/etc/resolv.conf</filename> file, add the following
|
---|
| 397 | configuration file:
|
---|
| 398 | </para>
|
---|
| 399 |
|
---|
| 400 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/no-dns-update.conf << "EOF"
|
---|
| 401 | <literal>[main]
|
---|
| 402 | dns=none</literal>
|
---|
| 403 | EOF</userinput></screen>
|
---|
| 404 |
|
---|
| 405 | <para>
|
---|
| 406 | For additional configuation options, see
|
---|
| 407 | <command>man 5 NetworkManager.conf</command>.
|
---|
[0d7900a] | 408 | </para>
|
---|
[d497e89] | 409 |
|
---|
[8df33ae3] | 410 | <para>
|
---|
| 411 | To allow regular users permission to configure network connections,
|
---|
| 412 | you should add them to the
|
---|
| 413 | <systemitem class="groupname">netdev</systemitem>
|
---|
| 414 | group, and create a <application>polkit</application> rule that grants
|
---|
| 415 | access. Run the following commands as the
|
---|
| 416 | <systemitem class="username">root</systemitem> user:
|
---|
| 417 | </para>
|
---|
| 418 |
|
---|
[a581662] | 419 | <screen role="root"><userinput>groupadd -fg 86 netdev &&
|
---|
[b88584a] | 420 | /usr/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
---|
[8df33ae3] | 421 |
|
---|
| 422 | cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
---|
| 423 | <literal>polkit.addRule(function(action, subject) {
|
---|
| 424 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
---|
| 425 | return polkit.Result.YES;
|
---|
| 426 | }
|
---|
| 427 | });</literal>
|
---|
| 428 | EOF</userinput></screen>
|
---|
| 429 |
|
---|
[d497e89] | 430 | </sect3>
|
---|
| 431 |
|
---|
| 432 | <sect3 id="NetworkManager-init">
|
---|
[cec6657e] | 433 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 434 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 435 |
|
---|
| 436 | <para revision="sysv">
|
---|
| 437 | To automatically start the <command>NetworkManager</command> daemon
|
---|
| 438 | when the system is rebooted, install the
|
---|
| 439 | <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
|
---|
| 440 | <xref linkend="bootscripts"/> package.
|
---|
| 441 | </para>
|
---|
[d497e89] | 442 |
|
---|
[cec6657e] | 443 | <para revision="systemd">
|
---|
| 444 | To start the <command>NetworkManager</command> daemon at boot, enable
|
---|
| 445 | the previously installed systemd unit by running the following command
|
---|
| 446 | as the <systemitem class="username">root</systemitem> user:
|
---|
[d497e89] | 447 | </para>
|
---|
| 448 |
|
---|
[8df33ae3] | 449 | <note>
|
---|
| 450 | <para>
|
---|
| 451 | If using <application>Network Manager</application> to manage
|
---|
| 452 | an interface, any previous configuration for that interface should be
|
---|
| 453 | removed, and the interface brought down prior to starting
|
---|
| 454 | <application>Network Manager</application>.
|
---|
| 455 | </para>
|
---|
| 456 | </note>
|
---|
| 457 |
|
---|
[d497e89] | 458 | <indexterm zone="NetworkManager NetworkManager-init">
|
---|
| 459 | <primary sortas="f-NetworkManager">NetworkManager</primary>
|
---|
| 460 | </indexterm>
|
---|
| 461 |
|
---|
[cec6657e] | 462 | <screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
|
---|
| 463 |
|
---|
| 464 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
|
---|
[e2a1442] | 465 | <!-- The below instruction is obsolete. NetworkManager-wait-online is now
|
---|
| 466 | enabled by default when enabling NetworkManager. -->
|
---|
| 467 | <!--
|
---|
[cec6657e] | 468 | <para revision="systemd">
|
---|
| 469 | <application>NetworkManager</application> also ships a systemd unit
|
---|
| 470 | called <filename>NetworkManager-wait-online.service</filename> which
|
---|
| 471 | can be used to prevent services that require network connectivity
|
---|
| 472 | from starting until <application>NetworkManager</application> has
|
---|
| 473 | established the connection. To enable it, run the following command
|
---|
| 474 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 475 | </para>
|
---|
| 476 |
|
---|
| 477 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
|
---|
[e2a1442] | 478 | -->
|
---|
| 479 | <!-- As such, let's now provide instructions on how to disable that
|
---|
| 480 | behavior, for those who wish to do so. -->
|
---|
| 481 | <para revision="systemd">
|
---|
| 482 | Starting in version 1.11.2 of <application>NetworkManager</application>,
|
---|
| 483 | a systemd unit named <filename>NetworkManager-wait-online.service</filename>
|
---|
| 484 | is enabled, which is used to prevent services that require network
|
---|
| 485 | connectivity from starting until <application>NetworkManager</application>
|
---|
| 486 | establishes a connection. To disable this behavior, run the following
|
---|
| 487 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 488 | </para>
|
---|
| 489 |
|
---|
| 490 | <screen role="root" revision="systemd"><userinput>systemctl disable NetworkManager-wait-online</userinput></screen>
|
---|
[2cd1071] | 491 |
|
---|
[d497e89] | 492 | </sect3>
|
---|
| 493 |
|
---|
| 494 | </sect2>
|
---|
| 495 |
|
---|
[e33ddee] | 496 | <sect2 role="content">
|
---|
| 497 | <title>Contents</title>
|
---|
| 498 |
|
---|
| 499 | <segmentedlist>
|
---|
| 500 | <segtitle>Installed Programs</segtitle>
|
---|
| 501 | <segtitle>Installed Libraries</segtitle>
|
---|
| 502 | <segtitle>Installed Directories</segtitle>
|
---|
| 503 |
|
---|
| 504 | <seglistitem>
|
---|
[d497e89] | 505 | <seg>
|
---|
[8c7390c] | 506 | NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
|
---|
| 507 | nmtui-connect, nmtui-edit, and nmtui-hostname
|
---|
[d497e89] | 508 | </seg>
|
---|
| 509 | <seg>
|
---|
[b9f17a8] | 510 | libnm.so
|
---|
[52c95143] | 511 | and several modules under /usr/lib/NetworkManager
|
---|
[d497e89] | 512 | </seg>
|
---|
| 513 | <seg>
|
---|
[5aa7dce] | 514 | /etc/NetworkManager,
|
---|
[b9f17a8] | 515 | /usr/include/NetworkManager,
|
---|
[5aa7dce] | 516 | /usr/lib/NetworkManager,
|
---|
| 517 | /usr/share/doc/NetworkManager-&NetworkManager-version;,
|
---|
[b9f17a8] | 518 | /usr/share/gtk-doc/html/{libnm,NetworkManager}
|
---|
| 519 | (if the documentation is built),
|
---|
[5aa7dce] | 520 | and
|
---|
[262a108] | 521 | /var/lib/NetworkManager
|
---|
[d497e89] | 522 | </seg>
|
---|
[52c95143] | 523 | <!-- A lot of libraries were removed here. We should verify compatibilty.
|
---|
| 524 | RESTORED AT 1.18.2 -renodr -->
|
---|
[e33ddee] | 525 | </seglistitem>
|
---|
| 526 | </segmentedlist>
|
---|
| 527 |
|
---|
| 528 | <variablelist>
|
---|
| 529 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 530 | <?dbfo list-presentation="list"?>
|
---|
| 531 | <?dbhtml list-presentation="table"?>
|
---|
| 532 |
|
---|
[d497e89] | 533 | <varlistentry id="nmcli">
|
---|
| 534 | <term><command>nmcli</command></term>
|
---|
[e33ddee] | 535 | <listitem>
|
---|
[7ded7e3] | 536 | <para>
|
---|
| 537 | is a command-line tool for controlling
|
---|
[0d7900a] | 538 | <application>NetworkManager</application>
|
---|
[7ded7e3] | 539 | and getting its status.
|
---|
| 540 | </para>
|
---|
[d497e89] | 541 | <indexterm zone="NetworkManager nmcli">
|
---|
| 542 | <primary sortas="b-nmcli">nmcli</primary>
|
---|
[e33ddee] | 543 | </indexterm>
|
---|
| 544 | </listitem>
|
---|
| 545 | </varlistentry>
|
---|
| 546 |
|
---|
| 547 | <varlistentry id="nm-online">
|
---|
| 548 | <term><command>nm-online</command></term>
|
---|
| 549 | <listitem>
|
---|
[7ded7e3] | 550 | <para>
|
---|
| 551 | is a utility to find out whether you are online.
|
---|
| 552 | </para>
|
---|
[e33ddee] | 553 | <indexterm zone="NetworkManager nm-online">
|
---|
| 554 | <primary sortas="b-nm-online">nm-online</primary>
|
---|
| 555 | </indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
| 558 |
|
---|
[acb3e9f] | 559 | <varlistentry id="nmtui">
|
---|
| 560 | <term><command>nmtui</command></term>
|
---|
| 561 | <listitem>
|
---|
| 562 | <para>
|
---|
[939653d] | 563 | is an interactive ncurses based interface for
|
---|
[acb3e9f] | 564 | <application>nmcli</application>.
|
---|
| 565 | </para>
|
---|
| 566 | <indexterm zone="NetworkManager nmtui">
|
---|
| 567 | <primary sortas="b-nmtui">nmtui</primary>
|
---|
| 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
| 572 | <varlistentry id="nmtui-connect">
|
---|
| 573 | <term><command>nmtui-connect</command></term>
|
---|
| 574 | <listitem>
|
---|
| 575 | <para>
|
---|
[939653d] | 576 | is an interactive ncurses based interface connection to
|
---|
| 577 | activate/deactivate connections.
|
---|
[acb3e9f] | 578 | </para>
|
---|
| 579 | <indexterm zone="NetworkManager nmtui-connect">
|
---|
| 580 | <primary sortas="b-nmtui-connect">nmtui-connect</primary>
|
---|
| 581 | </indexterm>
|
---|
| 582 | </listitem>
|
---|
| 583 | </varlistentry>
|
---|
| 584 |
|
---|
| 585 | <varlistentry id="nmtui-edit">
|
---|
| 586 | <term><command>nmtui-edit</command></term>
|
---|
| 587 | <listitem>
|
---|
| 588 | <para>
|
---|
[939653d] | 589 | is an interactive ncurses based interface connection editor.
|
---|
[acb3e9f] | 590 | </para>
|
---|
| 591 | <indexterm zone="NetworkManager nmtui-edit">
|
---|
| 592 | <primary sortas="b-nmtui-edit">nmtui-edit</primary>
|
---|
| 593 | </indexterm>
|
---|
| 594 | </listitem>
|
---|
| 595 | </varlistentry>
|
---|
| 596 |
|
---|
| 597 | <varlistentry id="nmtui-hostname">
|
---|
| 598 | <term><command>nmtui-hostname</command></term>
|
---|
[e33ddee] | 599 | <listitem>
|
---|
[7ded7e3] | 600 | <para>
|
---|
[939653d] | 601 | is an interactive ncurses based interface hostname editor.
|
---|
[7ded7e3] | 602 | </para>
|
---|
[acb3e9f] | 603 | <indexterm zone="NetworkManager nmtui-hostname">
|
---|
| 604 | <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
|
---|
[e33ddee] | 605 | </indexterm>
|
---|
| 606 | </listitem>
|
---|
| 607 | </varlistentry>
|
---|
| 608 |
|
---|
[d497e89] | 609 | <varlistentry id="NetworkManager-prog">
|
---|
| 610 | <term><command>NetworkManager</command></term>
|
---|
[e33ddee] | 611 | <listitem>
|
---|
[7ded7e3] | 612 | <para>
|
---|
| 613 | is the network management daemon.
|
---|
| 614 | </para>
|
---|
[d497e89] | 615 | <indexterm zone="NetworkManager NetworkManager-prog">
|
---|
[7ded7e3] | 616 | <primary sortas="b-NetworkManager">NetworkManager</primary>
|
---|
[e33ddee] | 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
[262a108] | 621 | <varlistentry id="libnm">
|
---|
| 622 | <term><filename class="libraryfile">libnm.so</filename></term>
|
---|
[e33ddee] | 623 | <listitem>
|
---|
[7ded7e3] | 624 | <para>
|
---|
| 625 | contains functions used by <application>NetworkManager</application>.
|
---|
| 626 | </para>
|
---|
[262a108] | 627 | <indexterm zone="NetworkManager libnm">
|
---|
| 628 | <primary sortas="c-libnm">libnm.so</primary>
|
---|
[e33ddee] | 629 | </indexterm>
|
---|
| 630 | </listitem>
|
---|
| 631 | </varlistentry>
|
---|
| 632 | </variablelist>
|
---|
| 633 |
|
---|
| 634 | </sect2>
|
---|
| 635 |
|
---|
| 636 | </sect1>
|
---|