[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">
|
---|
[365c6fb] | 11 | <!ENTITY NetworkManager-md5sum "ad5332a7fe5d00db7c75b722337be62b">
|
---|
[4a9054a8] | 12 | <!ENTITY NetworkManager-size "4.7 MB">
|
---|
[365c6fb] | 13 | <!ENTITY NetworkManager-buildsize "992 MB (with tests)">
|
---|
| 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 |
|
---|
[96ce7d5] | 193 | <!-- I am really uncomfortable with the length of this sed statement, but I
|
---|
| 194 | can't find an easy way to trim it since it's using an extended regular
|
---|
| 195 | expression. See https://pastebin.com/gRDeqPs8 and
|
---|
| 196 | https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/7d26773138dd4270c45e131761d4e6be58f64d12
|
---|
| 197 | for more details. -->
|
---|
| 198 |
|
---|
| 199 | <para>
|
---|
| 200 | Adapt an internal tool to the latest pygobject:
|
---|
| 201 | </para>
|
---|
| 202 |
|
---|
[40d141f] | 203 | <screen><userinput remap="pre">sed -i -E '/(setting name)/
|
---|
| 204 | {
|
---|
| 205 | s/(description=).%s./\1%s/
|
---|
| 206 | N
|
---|
| 207 | s/(class_desc)/xml_quoteattr(\1)/
|
---|
| 208 | }' tools/generate-docs-nm-settings-docs-gir.py</userinput></screen>
|
---|
[96ce7d5] | 209 |
|
---|
[7ded7e3] | 210 | <para>
|
---|
[7c4f32b] | 211 | Install <application>NetworkManager</application> by running the
|
---|
| 212 | following commands:
|
---|
[7ded7e3] | 213 | </para>
|
---|
[e33ddee] | 214 |
|
---|
[d267a13] | 215 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[7d07abd] | 216 | cd build &&
|
---|
[d267a13] | 217 |
|
---|
| 218 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 219 | meson --prefix /usr \
|
---|
[39100371] | 220 | -Djson_validation=false \
|
---|
[d267a13] | 221 | -Dlibaudit=no \
|
---|
[39100371] | 222 | -Dlibpsl=false \
|
---|
| 223 | -Dnmtui=true \
|
---|
| 224 | -Dovs=false \
|
---|
| 225 | -Dppp=false \
|
---|
[d267a13] | 226 | -Dselinux=false \
|
---|
| 227 | -Dudev_dir=/lib/udev \
|
---|
[51dfb3e] | 228 | -Dsession_tracking=elogind \
|
---|
[39100371] | 229 | -Dmodem_manager=false \
|
---|
[d267a13] | 230 | -Dsystemdsystemunitdir=no \
|
---|
| 231 | -Dsystemd_journal=false \
|
---|
| 232 | -Dqt=false \
|
---|
| 233 | .. &&
|
---|
| 234 | ninja</userinput></screen>
|
---|
| 235 |
|
---|
| 236 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[7d07abd] | 237 | cd build &&
|
---|
[d267a13] | 238 |
|
---|
| 239 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 240 | meson --prefix /usr \
|
---|
[39100371] | 241 | -Djson_validation=false \
|
---|
[d267a13] | 242 | -Dlibaudit=no \
|
---|
[39100371] | 243 | -Dlibpsl=false \
|
---|
| 244 | -Dnmtui=true \
|
---|
| 245 | -Dovs=false \
|
---|
| 246 | -Dppp=false \
|
---|
[d267a13] | 247 | -Dselinux=false \
|
---|
| 248 | -Dqt=false \
|
---|
| 249 | -Dudev_dir=/lib/udev \
|
---|
| 250 | -Dsession_tracking=systemd \
|
---|
[39100371] | 251 | -Dmodem_manager=false \
|
---|
[d267a13] | 252 | -Dsystemdsystemunitdir=/lib/systemd/system \
|
---|
| 253 | .. &&
|
---|
| 254 | ninja</userinput></screen>
|
---|
[cec6657e] | 255 |
|
---|
[7ded7e3] | 256 | <para>
|
---|
[00581ba] | 257 | An already active graphical session
|
---|
| 258 | with a bus address is necessary to run the tests. To test the results,
|
---|
[13b116c] | 259 | as the root user, <!-- needs the "ip" command -->
|
---|
[4a9054a8] | 260 | issue: <command>ninja test</command>. Five tests,
|
---|
[05a433b] | 261 | <filename>devices/test-acd</filename>,
|
---|
[4a9054a8] | 262 | <filename>platform/test-tc-linux</filename>,
|
---|
[05a433b] | 263 | <filename>platform/test-route-linux</filename>,
|
---|
| 264 | <filename>platform/test-link-linux</filename>, and
|
---|
| 265 | <filename>platform/test-cleanup-linux</filename>, are known to fail.
|
---|
[7ded7e3] | 266 | </para>
|
---|
[e33ddee] | 267 |
|
---|
[7ded7e3] | 268 | <para>
|
---|
| 269 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 270 | </para>
|
---|
[e33ddee] | 271 |
|
---|
[d267a13] | 272 | <screen role="root"><userinput>ninja install &&
|
---|
| 273 | mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
|
---|
[e33ddee] | 274 |
|
---|
| 275 | </sect2>
|
---|
| 276 |
|
---|
| 277 | <sect2 role="commands">
|
---|
| 278 | <title>Command Explanations</title>
|
---|
| 279 |
|
---|
[e4d2b8d] | 280 | <para>
|
---|
| 281 | <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
|
---|
| 282 | necessary to build the Qt5 based examples.
|
---|
| 283 | </para>
|
---|
| 284 |
|
---|
[e64cabd] | 285 | <para>
|
---|
[fdbfe39] | 286 | <option>-Ddocs=true</option>: Use this switch to enable building
|
---|
[39100371] | 287 | man pages and documentation if <xref linkend="gtk-doc"/> is installed.
|
---|
[e64cabd] | 288 | </para>
|
---|
| 289 |
|
---|
[7ded7e3] | 290 | <para>
|
---|
[d267a13] | 291 | <parameter>-Dnmtui=true</parameter>: This parameter enables building
|
---|
[acb3e9f] | 292 | <command>nmtui</command>.
|
---|
| 293 | </para>
|
---|
| 294 |
|
---|
[d267a13] | 295 | <para revision="sysv">
|
---|
[51dfb3e] | 296 | <parameter>-Dsystemdsystemunitdir=no</parameter> and
|
---|
[d267a13] | 297 | <parameter>-Dsystemd_journal=false</parameter>: systemd is not
|
---|
| 298 | used for sysv init systems.
|
---|
| 299 | </para>
|
---|
| 300 |
|
---|
[39100371] | 301 | <para>
|
---|
| 302 | <parameter>-Djson_validation=false</parameter>,
|
---|
| 303 | <parameter>-Dlibpsl=false</parameter>, and
|
---|
[e130fead] | 304 | <parameter>-Dovs=false</parameter>: These switches disable building with the
|
---|
[39100371] | 305 | respective libraries. Remove if you have the needed libraries installed.
|
---|
| 306 | </para>
|
---|
[52c95143] | 307 |
|
---|
| 308 | <!--
|
---|
[39100371] | 309 | <para>
|
---|
[f759a25] | 310 | <parameter>-Dlibpsl=false</parameter>: This switch is required if
|
---|
| 311 | <application>libpsl</application> is not installed. Omit this switch if
|
---|
| 312 | you have built <application>libpsl</application>.
|
---|
| 313 | </para>
|
---|
[52c95143] | 314 | -->
|
---|
[f759a25] | 315 |
|
---|
| 316 | <para>
|
---|
[39100371] | 317 | <parameter>-Dmodem_manager=false</parameter>: This switch is requried if
|
---|
| 318 | <application>ModemManager</application> is not installed. Omit if you
|
---|
[a406810] | 319 | have built <application>ModemManager</application> and
|
---|
| 320 | <application>mobile-broadband-provider-info</application>.
|
---|
[39100371] | 321 | </para>
|
---|
| 322 |
|
---|
[51dfb3e] | 323 | <para revision="sysv">
|
---|
| 324 | <parameter>-Dsession_tracking=elogind</parameter>: This switch
|
---|
| 325 | is used to set <command>elogind</command> as the default
|
---|
| 326 | program for session tracking.
|
---|
| 327 | </para>
|
---|
| 328 |
|
---|
[cec6657e] | 329 | <para revision="systemd">
|
---|
[d267a13] | 330 | <parameter>-Dsession_tracking=systemd</parameter>: This switch
|
---|
[cec6657e] | 331 | is used to set <command>systemd-logind</command> as the default
|
---|
| 332 | program for session tracking.
|
---|
| 333 | </para>
|
---|
| 334 |
|
---|
| 335 | <para revision="systemd">
|
---|
[d267a13] | 336 | <parameter>-Dsystemdsystemunitdir=/lib/systemd/system</parameter>:
|
---|
[cec6657e] | 337 | This switch is used to set the correct installation directory for
|
---|
| 338 | systemd units.
|
---|
| 339 | </para>
|
---|
| 340 |
|
---|
[acb3e9f] | 341 | <para>
|
---|
[d267a13] | 342 | <parameter>-Dppp=false</parameter>: This parameter disables
|
---|
[6e1616e2] | 343 | <application>PPP</application> support in
|
---|
| 344 | <application>NetworkManager</application>.
|
---|
[7ded7e3] | 345 | </para>
|
---|
[e33ddee] | 346 |
|
---|
[8c7390c] | 347 | <para>
|
---|
[d267a13] | 348 | <parameter>-Dlibaudit=no</parameter> and
|
---|
| 349 | <parameter>-Dselinux=false</parameter>: libaudit and SELinux are not used
|
---|
| 350 | in BLFS.
|
---|
[d6e164b] | 351 | </para>
|
---|
[e33ddee] | 352 |
|
---|
[b528d0f4] | 353 | <para>
|
---|
[d267a13] | 354 | <parameter>-Dqt=false</parameter>: disables the
|
---|
| 355 | <application>QT</application> examples. Omit if you have
|
---|
| 356 | <application>QT</application> available and wish to install the examples.
|
---|
[b528d0f4] | 357 | </para>
|
---|
| 358 |
|
---|
[e33ddee] | 359 | </sect2>
|
---|
| 360 |
|
---|
[d497e89] | 361 | <sect2 role="configuration">
|
---|
| 362 | <title>Configuring NetworkManager</title>
|
---|
| 363 |
|
---|
| 364 | <sect3 id="NetworkManager-config">
|
---|
| 365 | <title>Config Files</title>
|
---|
| 366 | <para>
|
---|
| 367 | <filename>/etc/NetworkManager/NetworkManager.conf</filename>
|
---|
| 368 | </para>
|
---|
| 369 |
|
---|
| 370 | <indexterm zone="NetworkManager NetworkManager-config">
|
---|
| 371 | <primary
|
---|
| 372 | sortas="e-etc-NetworkManager-NetworkManager.conf">
|
---|
| 373 | /etc/NetworkManager/NetworkManager.conf</primary>
|
---|
| 374 | </indexterm>
|
---|
| 375 |
|
---|
| 376 | </sect3>
|
---|
| 377 |
|
---|
| 378 | <sect3><title>Configuration Information</title>
|
---|
| 379 |
|
---|
| 380 | <para>
|
---|
| 381 | For <application>NetworkManager</application> to work, at least
|
---|
[8df33ae3] | 382 | a minimal configuration file must be present. Such file is not
|
---|
| 383 | installed with <command>make install</command>. Issue the following
|
---|
| 384 | command as the <systemitem class="username">root</systemitem> user to
|
---|
| 385 | create minimal <filename>NetworkManager.conf</filename> file:
|
---|
[d497e89] | 386 | </para>
|
---|
| 387 |
|
---|
| 388 | <screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
---|
| 389 | <literal>[main]
|
---|
| 390 | plugins=keyfile</literal>
|
---|
| 391 | EOF</userinput></screen>
|
---|
| 392 |
|
---|
| 393 | <para>
|
---|
[7fd06b0] | 394 | This file should not be modified directly by users of the system.
|
---|
| 395 | Instead, system specific changes should be made using configuration
|
---|
| 396 | files in the
|
---|
| 397 | <filename class="directory">/etc/NetworkManager/conf.d</filename>
|
---|
| 398 | direcotry.
|
---|
| 399 | </para>
|
---|
| 400 |
|
---|
| 401 | <para>
|
---|
| 402 | To allow polkit to manage authorizations, add the following
|
---|
| 403 | configuration file:
|
---|
| 404 | </para>
|
---|
| 405 |
|
---|
| 406 | <screen role="root"><userinput>cat > /etc/NetworkManager/conf.d/polkit.conf << "EOF"
|
---|
| 407 | <literal>[main]
|
---|
| 408 | auth-polkit=true</literal>
|
---|
| 409 | EOF</userinput></screen>
|
---|
| 410 |
|
---|
| 411 | <para>
|
---|
| 412 | To use something other than the built-in dhcp client (recommended if
|
---|
| 413 | using only <command>nmcli</command>), use the following configuration
|
---|
[24627ba] | 414 | (valid values include either dhclient <!--dhcpcd --> or internal):
|
---|
[7fd06b0] | 415 | </para>
|
---|
| 416 |
|
---|
| 417 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/dhcp.conf << "EOF"
|
---|
| 418 | <literal>[main]
|
---|
| 419 | dhcp=</literal><replaceable>dhclient</replaceable>
|
---|
| 420 | EOF</userinput></screen>
|
---|
| 421 |
|
---|
| 422 | <para>
|
---|
| 423 | To prevent <application>NetworkManager</application> from updating the
|
---|
| 424 | <filename>/etc/resolv.conf</filename> file, add the following
|
---|
| 425 | configuration file:
|
---|
| 426 | </para>
|
---|
| 427 |
|
---|
| 428 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/no-dns-update.conf << "EOF"
|
---|
| 429 | <literal>[main]
|
---|
| 430 | dns=none</literal>
|
---|
| 431 | EOF</userinput></screen>
|
---|
| 432 |
|
---|
| 433 | <para>
|
---|
| 434 | For additional configuation options, see
|
---|
| 435 | <command>man 5 NetworkManager.conf</command>.
|
---|
[0d7900a] | 436 | </para>
|
---|
[d497e89] | 437 |
|
---|
[8df33ae3] | 438 | <para>
|
---|
| 439 | To allow regular users permission to configure network connections,
|
---|
| 440 | you should add them to the
|
---|
| 441 | <systemitem class="groupname">netdev</systemitem>
|
---|
| 442 | group, and create a <application>polkit</application> rule that grants
|
---|
| 443 | access. Run the following commands as the
|
---|
| 444 | <systemitem class="username">root</systemitem> user:
|
---|
| 445 | </para>
|
---|
| 446 |
|
---|
[a581662] | 447 | <screen role="root"><userinput>groupadd -fg 86 netdev &&
|
---|
[b88584a] | 448 | /usr/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
---|
[8df33ae3] | 449 |
|
---|
| 450 | cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
---|
| 451 | <literal>polkit.addRule(function(action, subject) {
|
---|
| 452 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
---|
| 453 | return polkit.Result.YES;
|
---|
| 454 | }
|
---|
| 455 | });</literal>
|
---|
| 456 | EOF</userinput></screen>
|
---|
| 457 |
|
---|
[d497e89] | 458 | </sect3>
|
---|
| 459 |
|
---|
| 460 | <sect3 id="NetworkManager-init">
|
---|
[cec6657e] | 461 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 462 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 463 |
|
---|
| 464 | <para revision="sysv">
|
---|
| 465 | To automatically start the <command>NetworkManager</command> daemon
|
---|
| 466 | when the system is rebooted, install the
|
---|
| 467 | <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
|
---|
| 468 | <xref linkend="bootscripts"/> package.
|
---|
| 469 | </para>
|
---|
[d497e89] | 470 |
|
---|
[cec6657e] | 471 | <para revision="systemd">
|
---|
| 472 | To start the <command>NetworkManager</command> daemon at boot, enable
|
---|
| 473 | the previously installed systemd unit by running the following command
|
---|
| 474 | as the <systemitem class="username">root</systemitem> user:
|
---|
[d497e89] | 475 | </para>
|
---|
| 476 |
|
---|
[8df33ae3] | 477 | <note>
|
---|
| 478 | <para>
|
---|
| 479 | If using <application>Network Manager</application> to manage
|
---|
| 480 | an interface, any previous configuration for that interface should be
|
---|
| 481 | removed, and the interface brought down prior to starting
|
---|
| 482 | <application>Network Manager</application>.
|
---|
| 483 | </para>
|
---|
| 484 | </note>
|
---|
| 485 |
|
---|
[d497e89] | 486 | <indexterm zone="NetworkManager NetworkManager-init">
|
---|
| 487 | <primary sortas="f-NetworkManager">NetworkManager</primary>
|
---|
| 488 | </indexterm>
|
---|
| 489 |
|
---|
[cec6657e] | 490 | <screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
|
---|
| 491 |
|
---|
| 492 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
|
---|
[e2a1442] | 493 | <!-- The below instruction is obsolete. NetworkManager-wait-online is now
|
---|
| 494 | enabled by default when enabling NetworkManager. -->
|
---|
| 495 | <!--
|
---|
[cec6657e] | 496 | <para revision="systemd">
|
---|
| 497 | <application>NetworkManager</application> also ships a systemd unit
|
---|
| 498 | called <filename>NetworkManager-wait-online.service</filename> which
|
---|
| 499 | can be used to prevent services that require network connectivity
|
---|
| 500 | from starting until <application>NetworkManager</application> has
|
---|
| 501 | established the connection. To enable it, run the following command
|
---|
| 502 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 503 | </para>
|
---|
| 504 |
|
---|
| 505 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
|
---|
[e2a1442] | 506 | -->
|
---|
| 507 | <!-- As such, let's now provide instructions on how to disable that
|
---|
| 508 | behavior, for those who wish to do so. -->
|
---|
| 509 | <para revision="systemd">
|
---|
| 510 | Starting in version 1.11.2 of <application>NetworkManager</application>,
|
---|
| 511 | a systemd unit named <filename>NetworkManager-wait-online.service</filename>
|
---|
| 512 | is enabled, which is used to prevent services that require network
|
---|
| 513 | connectivity from starting until <application>NetworkManager</application>
|
---|
| 514 | establishes a connection. To disable this behavior, run the following
|
---|
| 515 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 516 | </para>
|
---|
| 517 |
|
---|
| 518 | <screen role="root" revision="systemd"><userinput>systemctl disable NetworkManager-wait-online</userinput></screen>
|
---|
[2cd1071] | 519 |
|
---|
[d497e89] | 520 | </sect3>
|
---|
| 521 |
|
---|
| 522 | </sect2>
|
---|
| 523 |
|
---|
[e33ddee] | 524 | <sect2 role="content">
|
---|
| 525 | <title>Contents</title>
|
---|
| 526 |
|
---|
| 527 | <segmentedlist>
|
---|
| 528 | <segtitle>Installed Programs</segtitle>
|
---|
| 529 | <segtitle>Installed Libraries</segtitle>
|
---|
| 530 | <segtitle>Installed Directories</segtitle>
|
---|
| 531 |
|
---|
| 532 | <seglistitem>
|
---|
[d497e89] | 533 | <seg>
|
---|
[8c7390c] | 534 | NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
|
---|
| 535 | nmtui-connect, nmtui-edit, and nmtui-hostname
|
---|
[d497e89] | 536 | </seg>
|
---|
| 537 | <seg>
|
---|
[b9f17a8] | 538 | libnm.so
|
---|
[52c95143] | 539 | and several modules under /usr/lib/NetworkManager
|
---|
[d497e89] | 540 | </seg>
|
---|
| 541 | <seg>
|
---|
[5aa7dce] | 542 | /etc/NetworkManager,
|
---|
[05a433b] | 543 | /usr/include/libnm,
|
---|
[5aa7dce] | 544 | /usr/lib/NetworkManager,
|
---|
| 545 | /usr/share/doc/NetworkManager-&NetworkManager-version;,
|
---|
[b9f17a8] | 546 | /usr/share/gtk-doc/html/{libnm,NetworkManager}
|
---|
| 547 | (if the documentation is built),
|
---|
[5aa7dce] | 548 | and
|
---|
[262a108] | 549 | /var/lib/NetworkManager
|
---|
[d497e89] | 550 | </seg>
|
---|
[52c95143] | 551 | <!-- A lot of libraries were removed here. We should verify compatibilty.
|
---|
| 552 | RESTORED AT 1.18.2 -renodr -->
|
---|
[e33ddee] | 553 | </seglistitem>
|
---|
| 554 | </segmentedlist>
|
---|
| 555 |
|
---|
| 556 | <variablelist>
|
---|
| 557 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 558 | <?dbfo list-presentation="list"?>
|
---|
| 559 | <?dbhtml list-presentation="table"?>
|
---|
| 560 |
|
---|
[d497e89] | 561 | <varlistentry id="nmcli">
|
---|
| 562 | <term><command>nmcli</command></term>
|
---|
[e33ddee] | 563 | <listitem>
|
---|
[7ded7e3] | 564 | <para>
|
---|
| 565 | is a command-line tool for controlling
|
---|
[0d7900a] | 566 | <application>NetworkManager</application>
|
---|
[7ded7e3] | 567 | and getting its status.
|
---|
| 568 | </para>
|
---|
[d497e89] | 569 | <indexterm zone="NetworkManager nmcli">
|
---|
| 570 | <primary sortas="b-nmcli">nmcli</primary>
|
---|
[e33ddee] | 571 | </indexterm>
|
---|
| 572 | </listitem>
|
---|
| 573 | </varlistentry>
|
---|
| 574 |
|
---|
| 575 | <varlistentry id="nm-online">
|
---|
| 576 | <term><command>nm-online</command></term>
|
---|
| 577 | <listitem>
|
---|
[7ded7e3] | 578 | <para>
|
---|
[00581ba] | 579 | is an utility to find out whether you are online.
|
---|
[7ded7e3] | 580 | </para>
|
---|
[e33ddee] | 581 | <indexterm zone="NetworkManager nm-online">
|
---|
| 582 | <primary sortas="b-nm-online">nm-online</primary>
|
---|
| 583 | </indexterm>
|
---|
| 584 | </listitem>
|
---|
| 585 | </varlistentry>
|
---|
| 586 |
|
---|
[acb3e9f] | 587 | <varlistentry id="nmtui">
|
---|
| 588 | <term><command>nmtui</command></term>
|
---|
| 589 | <listitem>
|
---|
| 590 | <para>
|
---|
[939653d] | 591 | is an interactive ncurses based interface for
|
---|
[acb3e9f] | 592 | <application>nmcli</application>.
|
---|
| 593 | </para>
|
---|
| 594 | <indexterm zone="NetworkManager nmtui">
|
---|
| 595 | <primary sortas="b-nmtui">nmtui</primary>
|
---|
| 596 | </indexterm>
|
---|
| 597 | </listitem>
|
---|
| 598 | </varlistentry>
|
---|
| 599 |
|
---|
| 600 | <varlistentry id="nmtui-connect">
|
---|
| 601 | <term><command>nmtui-connect</command></term>
|
---|
| 602 | <listitem>
|
---|
| 603 | <para>
|
---|
[939653d] | 604 | is an interactive ncurses based interface connection to
|
---|
| 605 | activate/deactivate connections.
|
---|
[acb3e9f] | 606 | </para>
|
---|
| 607 | <indexterm zone="NetworkManager nmtui-connect">
|
---|
| 608 | <primary sortas="b-nmtui-connect">nmtui-connect</primary>
|
---|
| 609 | </indexterm>
|
---|
| 610 | </listitem>
|
---|
| 611 | </varlistentry>
|
---|
| 612 |
|
---|
| 613 | <varlistentry id="nmtui-edit">
|
---|
| 614 | <term><command>nmtui-edit</command></term>
|
---|
| 615 | <listitem>
|
---|
| 616 | <para>
|
---|
[939653d] | 617 | is an interactive ncurses based interface connection editor.
|
---|
[acb3e9f] | 618 | </para>
|
---|
| 619 | <indexterm zone="NetworkManager nmtui-edit">
|
---|
| 620 | <primary sortas="b-nmtui-edit">nmtui-edit</primary>
|
---|
| 621 | </indexterm>
|
---|
| 622 | </listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
| 625 | <varlistentry id="nmtui-hostname">
|
---|
| 626 | <term><command>nmtui-hostname</command></term>
|
---|
[e33ddee] | 627 | <listitem>
|
---|
[7ded7e3] | 628 | <para>
|
---|
[939653d] | 629 | is an interactive ncurses based interface hostname editor.
|
---|
[7ded7e3] | 630 | </para>
|
---|
[acb3e9f] | 631 | <indexterm zone="NetworkManager nmtui-hostname">
|
---|
| 632 | <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
|
---|
[e33ddee] | 633 | </indexterm>
|
---|
| 634 | </listitem>
|
---|
| 635 | </varlistentry>
|
---|
| 636 |
|
---|
[d497e89] | 637 | <varlistentry id="NetworkManager-prog">
|
---|
| 638 | <term><command>NetworkManager</command></term>
|
---|
[e33ddee] | 639 | <listitem>
|
---|
[7ded7e3] | 640 | <para>
|
---|
| 641 | is the network management daemon.
|
---|
| 642 | </para>
|
---|
[d497e89] | 643 | <indexterm zone="NetworkManager NetworkManager-prog">
|
---|
[7ded7e3] | 644 | <primary sortas="b-NetworkManager">NetworkManager</primary>
|
---|
[e33ddee] | 645 | </indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
[262a108] | 649 | <varlistentry id="libnm">
|
---|
| 650 | <term><filename class="libraryfile">libnm.so</filename></term>
|
---|
[e33ddee] | 651 | <listitem>
|
---|
[7ded7e3] | 652 | <para>
|
---|
| 653 | contains functions used by <application>NetworkManager</application>.
|
---|
| 654 | </para>
|
---|
[262a108] | 655 | <indexterm zone="NetworkManager libnm">
|
---|
| 656 | <primary sortas="c-libnm">libnm.so</primary>
|
---|
[e33ddee] | 657 | </indexterm>
|
---|
| 658 | </listitem>
|
---|
| 659 | </varlistentry>
|
---|
| 660 | </variablelist>
|
---|
| 661 |
|
---|
| 662 | </sect2>
|
---|
| 663 |
|
---|
| 664 | </sect1>
|
---|