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