[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">
|
---|
[d3494cd6] | 11 | <!ENTITY NetworkManager-md5sum "465761b2b614c1f778a34c59adfabf1a">
|
---|
| 12 | <!ENTITY NetworkManager-size "6.3 MB">
|
---|
| 13 | <!ENTITY NetworkManager-buildsize "278 MB (with tests and documentation)">
|
---|
[299daa19] | 14 | <!ENTITY NetworkManager-time "0.9 SBU (with tests, using parallelism=4)">
|
---|
[e33ddee] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="NetworkManager" xreflabel="NetworkManager-&NetworkManager-version;">
|
---|
| 18 | <?dbhtml filename="networkmanager.html"?>
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | <title>NetworkManager-&NetworkManager-version;</title>
|
---|
| 22 |
|
---|
| 23 | <indexterm zone="NetworkManager">
|
---|
| 24 | <primary sortas="a-NetworkManager">NetworkManager</primary>
|
---|
| 25 | </indexterm>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="package">
|
---|
| 28 | <title>Introduction to NetworkManager</title>
|
---|
| 29 |
|
---|
[7ded7e3] | 30 | <para>
|
---|
| 31 | <application>NetworkManager</application> is a set of co-operative
|
---|
[e130fead] | 32 | tools that make networking simple and straightforward. Whether you use WiFi,
|
---|
[8df33ae3] | 33 | wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from
|
---|
| 34 | one network to another: Once a network has been configured and joined
|
---|
| 35 | once, it can be detected and re-joined automatically the next time it's
|
---|
| 36 | available.
|
---|
[7ded7e3] | 37 | </para>
|
---|
[e33ddee] | 38 |
|
---|
[fe33e3f] | 39 | &lfs112_checked;
|
---|
[e33ddee] | 40 |
|
---|
[cec6657e] | 41 | <note revision="systemd">
|
---|
| 42 | <para>
|
---|
| 43 | Make sure that you disable the <command>systemd-networkd</command>
|
---|
| 44 | service or configure it not to manage the interfaces you want to manage
|
---|
| 45 | with <application>NetworkManager</application>.
|
---|
| 46 | </para>
|
---|
| 47 | </note>
|
---|
| 48 |
|
---|
[e33ddee] | 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
[7ded7e3] | 52 | <para>
|
---|
| 53 | Download (HTTP): <ulink url="&NetworkManager-download-http;"/>
|
---|
| 54 | </para>
|
---|
[e33ddee] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[7ded7e3] | 57 | <para>
|
---|
| 58 | Download (FTP): <ulink url="&NetworkManager-download-ftp;"/>
|
---|
| 59 | </para>
|
---|
[e33ddee] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[7ded7e3] | 62 | <para>
|
---|
| 63 | Download MD5 sum: &NetworkManager-md5sum;
|
---|
| 64 | </para>
|
---|
[e33ddee] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[7ded7e3] | 67 | <para>
|
---|
| 68 | Download size: &NetworkManager-size;
|
---|
| 69 | </para>
|
---|
[e33ddee] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[7ded7e3] | 72 | <para>
|
---|
| 73 | Estimated disk space required: &NetworkManager-buildsize;
|
---|
| 74 | </para>
|
---|
[e33ddee] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[7ded7e3] | 77 | <para>
|
---|
| 78 | Estimated build time: &NetworkManager-time;
|
---|
| 79 | </para>
|
---|
[e33ddee] | 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect3">NetworkManager Dependencies</bridgehead>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d497e89] | 86 | <para role="required">
|
---|
[7be78b9a] | 87 | <xref linkend="jansson"/> and
|
---|
[d267a13] | 88 | <xref linkend="libndp"/>
|
---|
[d497e89] | 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 92 | <para role="recommended">
|
---|
[c4ae27ab] | 93 | <xref linkend="curl"/>,
|
---|
[24627ba] | 94 | <!--<xref linkend="dhcpcd"/> or
|
---|
| 95 | DHCPCD support is known to be broken with dhcpcd-9 -->
|
---|
[cac7f93] | 96 | <xref role="nodep" linkend="dhcp"/> (client only),
|
---|
[4b3c4b2] | 97 | <xref linkend="gobject-introspection"/>,
|
---|
[b7d1d2b] | 98 | <xref linkend="iptables"/>,
|
---|
[696fed8] | 99 | <xref linkend="newt"/> (for <command>nmtui</command>),
|
---|
[d267a13] | 100 | <xref linkend="nss"/>,
|
---|
[6e1616e2] | 101 | <xref linkend="polkit"/>,
|
---|
[b528d0f4] | 102 | <xref linkend="pygobject3"/>,
|
---|
[51dfb3e] | 103 | <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
---|
[cec6657e] | 104 | <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
|
---|
[f3429309] | 105 | <xref linkend="upower"/>,
|
---|
[626bb04] | 106 | <xref linkend="vala"/>, and
|
---|
[9556a94] | 107 | <xref linkend="wpa_supplicant"/> (built with D-Bus support)
|
---|
[d497e89] | 108 | </para>
|
---|
[e33ddee] | 109 |
|
---|
[d0880dfa] | 110 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d497e89] | 111 | <para role="optional">
|
---|
[d4f4107] | 112 | <xref linkend="bluez"/>,
|
---|
[e64cabd] | 113 | <xref linkend="dbus-python"/> (for the test suite),
|
---|
[4a9054a8] | 114 | <!-- <xref linkend="firewalld"/> (For whenever firewalld is reintroduced) -->
|
---|
[d267a13] | 115 | <xref linkend="gnutls"/> (used if <xref linkend="nss"/> is not found),
|
---|
[d497e89] | 116 | <xref linkend="gtk-doc"/>,
|
---|
[1ad3510e] | 117 | <xref linkend="libpsl"/>,
|
---|
[e4d2b8d] | 118 | <xref linkend="qt5"/> (for examples),
|
---|
[7d645679] | 119 | <xref linkend="ModemManager"/>,
|
---|
[acb3e9f] | 120 | <xref linkend="valgrind"/>,
|
---|
[75e3e09] | 121 | <ulink url="https://thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</ulink>,
|
---|
[365c6fb] | 122 | <ulink url="https://firewalld.org/">firewalld</ulink>,
|
---|
[262a108] | 123 | <ulink url="https://github.com/Distrotech/libaudit">libaudit</ulink>,
|
---|
[4f5369a] | 124 | <ulink url="https://github.com/jpirko/libteam">libteam</ulink>,
|
---|
[01701da9] | 125 | <ulink url="&gnome-download-http;/mobile-broadband-provider-info/">mobile-broadband-provider-info</ulink>,
|
---|
[cec6657e] | 126 | <ulink url="https://www.samba.org/ftp/ppp/">PPP</ulink>, and
|
---|
[e130fead] | 127 | <ulink url="https://dianne.skoll.ca/projects/rp-pppoe/">RP-PPPoE</ulink>
|
---|
[d497e89] | 128 | </para>
|
---|
[d0880dfa] | 129 |
|
---|
[e33ddee] | 130 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 131 | <ulink url="&blfs-wiki;/NetworkManager"/>
|
---|
| 132 | </para>
|
---|
[e33ddee] | 133 | </sect2>
|
---|
| 134 |
|
---|
[13b116c] | 135 | <sect2 role="kernel" id="NetworkManager-kernel">
|
---|
| 136 | <title>Kernel Configuration</title>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
[fc88f1f] | 139 | If you wish to run the tests, check that at least the following options
|
---|
| 140 | are enabled in the kernel configuration. Those options have been
|
---|
| 141 | determined to be necessary, but may not be sufficient. Recompile the
|
---|
| 142 | kernel if necessary:
|
---|
[13b116c] | 143 | </para>
|
---|
| 144 |
|
---|
[8558044] | 145 | <!-- Ethernet Teaming support is potentially optional, but I didn't
|
---|
[13b116c] | 146 | run the tests again to test that. It was needed to convince one of
|
---|
| 147 | the Linux Platform tests to move farther along because otherwise
|
---|
| 148 | RTNETLINK would respond with an Error 95 - unknown device type.
|
---|
[fc88f1f] | 149 | This would cause the test to fail early on in the process.
|
---|
| 150 |
|
---|
| 151 | [pierre, Nov 2022]: I cannot tell whether these options are
|
---|
| 152 | the only ones that are needed. They are the options I had to add
|
---|
| 153 | in order to have some tests pass. But I already had some other
|
---|
| 154 | options set for packet filtering (iptables), that may not be
|
---|
| 155 | available by default and may be necessary. Even with the options
|
---|
| 156 | below still one test (test-route) fails.-->
|
---|
| 157 |
|
---|
[7ea158e] | 158 | <screen><literal>[*] Networking support---> [CONFIG_NET]
|
---|
[fc88f1f] | 159 | Networking options--->
|
---|
| 160 | [*] TCP/IP networking [CONFIG_INET]
|
---|
| 161 | <*/M> IP: tunelling [CONFIG_NET_IPIP]
|
---|
| 162 | <*/M> IP: GRE demultiplexer [CONFIG_NET_IPGRE_DEMUX]
|
---|
| 163 | <*/M> IP: GRE tunnels over IP [CONFIG_NET_IPGRE]
|
---|
| 164 | <*> The IPv6 protocol ---> [CONFIG_IPV6]
|
---|
| 165 | <*/M> IPv6: IPv6-in-IPv4 tunnel (SIT driver) [CONFIG_IPV6_SIT]
|
---|
| 166 | <*/M> IPv6: GRE tunnel [CONFIG_IPV6_GRE]
|
---|
| 167 | [*] IPv6: Multiple Routing Tables [CONFIG_IPV6_MULTIPLE_TABLES]
|
---|
| 168 | [*] MPTCP: Multipath TCP [CONFIG_MPTCP]
|
---|
| 169 | [*] MPTCP: IPv6 support for Multipath TCP [CONFIG_MPTCP_IPV6]
|
---|
| 170 | <*/M> 802.1Q/802.1ad VLAN Support [CONFIG_VLAN_8021Q]
|
---|
| 171 | [*] QoS and/or fair queueing ---> [CONFIG_NET_SCHED]
|
---|
| 172 | <*/M> Stochastic Fairness Queueing (SFQ) [CONFIG_NET_SCH_SFQ]
|
---|
| 173 | <*/M> Token Bucket Filter (TBF) [CONFIG_NET_SCH_TBF]
|
---|
| 174 | <*/M> Fair Queue Controlled Delay AQM (FQ_CODEL) [CONFIG_NET_SCH_FQ_CODEL]
|
---|
| 175 | <*/M> Ingress/classifier-action Qdisc [CONFIG_NET_SCH_INGRESS]
|
---|
| 176 | Device Drivers --->
|
---|
| 177 | [*] Network device support ---> [CONFIG_NETDEVICES]
|
---|
| 178 | [*] Network core driver support [CONFIG_NET_CORE]
|
---|
| 179 | <*> Bonding driver support [CONFIG_BONDING]
|
---|
| 180 | <*> Dummy net driver support [CONFIG_DUMMY]
|
---|
| 181 | <*> Ethernet team driver support ---> [CONFIG_NET_TEAM]
|
---|
| 182 | <*> MAC-VLAN support [CONFIG_MACVLAN]
|
---|
| 183 | <*> MAC-VLAN based tap driver [CONFIG_MACVTAP]
|
---|
| 184 | <*> IP-VLAN support [CONFIG_IPVLAN]
|
---|
| 185 | <*> Virtual eXtensible Local Area Network (VXLAN) [CONFIG_VXLAN]
|
---|
| 186 | <*> Virtual ethernet pair device [CONFIG_VETH]
|
---|
[7ea158e] | 187 | <*> Virtual Routing and Forwarding (Lite) [CONFIG_VRF]</literal></screen>
|
---|
[13b116c] | 188 |
|
---|
| 189 | <indexterm zone="NetworkManager NetworkManager-kernel">
|
---|
| 190 | <primary sortas="d-NetworkManager">NetworkManager</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </sect2>
|
---|
| 193 |
|
---|
[e33ddee] | 194 | <sect2 role="installation">
|
---|
| 195 | <title>Installation of NetworkManager</title>
|
---|
| 196 |
|
---|
[7c56ece] | 197 | <para>
|
---|
[8558044] | 198 | If <xref linkend="qt5"/> is installed and the Qt based
|
---|
[7c56ece] | 199 | examples are desired, fix two meson.build files:
|
---|
| 200 | </para>
|
---|
[e4d2b8d] | 201 |
|
---|
[e022b07] | 202 | <screen><userinput>sed -e 's/-qt4/-qt5/' \
|
---|
[e4d2b8d] | 203 | -e 's/moc_location/host_bins/' \
|
---|
[6573fc3] | 204 | -i examples/C/qt/meson.build &&
|
---|
[40d141f] | 205 |
|
---|
[6573fc3] | 206 | sed -e 's/Qt/&5/' \
|
---|
| 207 | -i meson.build</userinput></screen>
|
---|
[d267a13] | 208 |
|
---|
[f61c18e] | 209 | <!--
|
---|
[d267a13] | 210 | <para>
|
---|
| 211 | Fix a missing meson.build file for initrd hooks (not used in BLFS):
|
---|
| 212 | </para>
|
---|
| 213 |
|
---|
[4da49b9] | 214 | <screen><userinput>sed '/initrd/d' -i src/core/meson.build</userinput></screen>
|
---|
[f61c18e] | 215 | -->
|
---|
[e4d2b8d] | 216 |
|
---|
[fdbfe39] | 217 | <para>
|
---|
| 218 | Fix the python scripts so that they use <application>Python
|
---|
| 219 | 3</application>:
|
---|
| 220 | </para>
|
---|
| 221 |
|
---|
| 222 | <screen><userinput>grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'</userinput></screen>
|
---|
| 223 |
|
---|
[7ded7e3] | 224 | <para>
|
---|
[7c4f32b] | 225 | Install <application>NetworkManager</application> by running the
|
---|
| 226 | following commands:
|
---|
[7ded7e3] | 227 | </para>
|
---|
[e33ddee] | 228 |
|
---|
[d267a13] | 229 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[7d07abd] | 230 | cd build &&
|
---|
[d267a13] | 231 |
|
---|
| 232 | CXXFLAGS+="-O2 -fPIC" \
|
---|
[adf17153] | 233 | meson --prefix=/usr \
|
---|
| 234 | --buildtype=release \
|
---|
[d267a13] | 235 | -Dlibaudit=no \
|
---|
[39100371] | 236 | -Dlibpsl=false \
|
---|
| 237 | -Dnmtui=true \
|
---|
| 238 | -Dovs=false \
|
---|
| 239 | -Dppp=false \
|
---|
[d267a13] | 240 | -Dselinux=false \
|
---|
[51dfb3e] | 241 | -Dsession_tracking=elogind \
|
---|
[39100371] | 242 | -Dmodem_manager=false \
|
---|
[d267a13] | 243 | -Dsystemdsystemunitdir=no \
|
---|
| 244 | -Dsystemd_journal=false \
|
---|
| 245 | -Dqt=false \
|
---|
| 246 | .. &&
|
---|
| 247 | ninja</userinput></screen>
|
---|
| 248 |
|
---|
| 249 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[7d07abd] | 250 | cd build &&
|
---|
[d267a13] | 251 |
|
---|
| 252 | CXXFLAGS+="-O2 -fPIC" \
|
---|
[adf17153] | 253 | meson --prefix=/usr \
|
---|
| 254 | --buildtype=release \
|
---|
[d267a13] | 255 | -Dlibaudit=no \
|
---|
[39100371] | 256 | -Dlibpsl=false \
|
---|
| 257 | -Dnmtui=true \
|
---|
| 258 | -Dovs=false \
|
---|
| 259 | -Dppp=false \
|
---|
[d267a13] | 260 | -Dselinux=false \
|
---|
| 261 | -Dqt=false \
|
---|
| 262 | -Dsession_tracking=systemd \
|
---|
[39100371] | 263 | -Dmodem_manager=false \
|
---|
[d267a13] | 264 | .. &&
|
---|
| 265 | ninja</userinput></screen>
|
---|
[cec6657e] | 266 |
|
---|
[7ded7e3] | 267 | <para>
|
---|
[0bfaca0] | 268 | An already active graphical session with a bus address is necessary
|
---|
| 269 | to run the tests. To test the results, issue
|
---|
| 270 | <command>ninja test</command>.
|
---|
[fc88f1f] | 271 | </para>
|
---|
| 272 |
|
---|
| 273 | <para>
|
---|
| 274 | A few tests may fail, depending on enabled kernel options.
|
---|
[7ded7e3] | 275 | </para>
|
---|
[e33ddee] | 276 |
|
---|
[7ded7e3] | 277 | <para>
|
---|
| 278 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 279 | </para>
|
---|
[e33ddee] | 280 |
|
---|
[d267a13] | 281 | <screen role="root"><userinput>ninja install &&
|
---|
| 282 | mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
|
---|
[e33ddee] | 283 |
|
---|
[4d6a0e2] | 284 | <para>
|
---|
| 285 | If you have not passed the <option>-Ddocs=true</option> option to
|
---|
| 286 | <command>meson</command>, you can install the pregenerated manual pages
|
---|
| 287 | with (as the &root; user):
|
---|
| 288 | </para>
|
---|
| 289 |
|
---|
| 290 | <screen role="root"><userinput>for file in $(echo ../man/*.[1578]); do
|
---|
| 291 | section=${file##*.} &&
|
---|
| 292 | install -vdm 755 /usr/share/man/man$section
|
---|
| 293 | install -vm 644 $file /usr/share/man/man$section/
|
---|
| 294 | done</userinput></screen>
|
---|
| 295 |
|
---|
| 296 | <para>
|
---|
| 297 | Still in case you have not used <option>-Ddocs=true</option>, the
|
---|
| 298 | pregenerated HTML documentation can also be installed with (as
|
---|
| 299 | the &root; user):
|
---|
| 300 | </para>
|
---|
| 301 |
|
---|
| 302 | <screen role="root"
|
---|
| 303 | remap="doc"><userinput>cp -Rv ../docs/{api,libnm} /usr/share/doc/NetworkManager-&NetworkManager-version;</userinput></screen>
|
---|
| 304 |
|
---|
[e33ddee] | 305 | </sect2>
|
---|
| 306 |
|
---|
| 307 | <sect2 role="commands">
|
---|
| 308 | <title>Command Explanations</title>
|
---|
| 309 |
|
---|
[e4d2b8d] | 310 | <para>
|
---|
[8558044] | 311 | <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
|
---|
[e4d2b8d] | 312 | necessary to build the Qt5 based examples.
|
---|
| 313 | </para>
|
---|
| 314 |
|
---|
[adf17153] | 315 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 316 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 317 |
|
---|
[e64cabd] | 318 | <para>
|
---|
[fdbfe39] | 319 | <option>-Ddocs=true</option>: Use this switch to enable building
|
---|
[39100371] | 320 | man pages and documentation if <xref linkend="gtk-doc"/> is installed.
|
---|
[e64cabd] | 321 | </para>
|
---|
| 322 |
|
---|
[7ded7e3] | 323 | <para>
|
---|
[d267a13] | 324 | <parameter>-Dnmtui=true</parameter>: This parameter enables building
|
---|
[acb3e9f] | 325 | <command>nmtui</command>.
|
---|
| 326 | </para>
|
---|
| 327 |
|
---|
[d267a13] | 328 | <para revision="sysv">
|
---|
[51dfb3e] | 329 | <parameter>-Dsystemdsystemunitdir=no</parameter> and
|
---|
[d267a13] | 330 | <parameter>-Dsystemd_journal=false</parameter>: systemd is not
|
---|
| 331 | used for sysv init systems.
|
---|
| 332 | </para>
|
---|
| 333 |
|
---|
[39100371] | 334 | <para>
|
---|
[21d18f7e] | 335 | <parameter>-Dlibpsl=false</parameter> and
|
---|
[e130fead] | 336 | <parameter>-Dovs=false</parameter>: These switches disable building with the
|
---|
[39100371] | 337 | respective libraries. Remove if you have the needed libraries installed.
|
---|
| 338 | </para>
|
---|
[8558044] | 339 |
|
---|
[52c95143] | 340 | <!--
|
---|
[39100371] | 341 | <para>
|
---|
[f759a25] | 342 | <parameter>-Dlibpsl=false</parameter>: This switch is required if
|
---|
| 343 | <application>libpsl</application> is not installed. Omit this switch if
|
---|
| 344 | you have built <application>libpsl</application>.
|
---|
| 345 | </para>
|
---|
[52c95143] | 346 | -->
|
---|
[f759a25] | 347 |
|
---|
| 348 | <para>
|
---|
[2c87187] | 349 | <parameter>-Dmodem_manager=false</parameter>: This switch is required if
|
---|
[39100371] | 350 | <application>ModemManager</application> is not installed. Omit if you
|
---|
[a406810] | 351 | have built <application>ModemManager</application> and
|
---|
| 352 | <application>mobile-broadband-provider-info</application>.
|
---|
[39100371] | 353 | </para>
|
---|
| 354 |
|
---|
[51dfb3e] | 355 | <para revision="sysv">
|
---|
| 356 | <parameter>-Dsession_tracking=elogind</parameter>: This switch
|
---|
| 357 | is used to set <command>elogind</command> as the default
|
---|
| 358 | program for session tracking.
|
---|
| 359 | </para>
|
---|
| 360 |
|
---|
[cec6657e] | 361 | <para revision="systemd">
|
---|
[d267a13] | 362 | <parameter>-Dsession_tracking=systemd</parameter>: This switch
|
---|
[cec6657e] | 363 | is used to set <command>systemd-logind</command> as the default
|
---|
| 364 | program for session tracking.
|
---|
| 365 | </para>
|
---|
| 366 |
|
---|
| 367 | <para revision="systemd">
|
---|
[d267a13] | 368 | <parameter>-Dsystemdsystemunitdir=/lib/systemd/system</parameter>:
|
---|
[cec6657e] | 369 | This switch is used to set the correct installation directory for
|
---|
| 370 | systemd units.
|
---|
| 371 | </para>
|
---|
| 372 |
|
---|
[acb3e9f] | 373 | <para>
|
---|
[d267a13] | 374 | <parameter>-Dppp=false</parameter>: This parameter disables
|
---|
[6e1616e2] | 375 | <application>PPP</application> support in
|
---|
| 376 | <application>NetworkManager</application>.
|
---|
[7ded7e3] | 377 | </para>
|
---|
[e33ddee] | 378 |
|
---|
[8c7390c] | 379 | <para>
|
---|
[d267a13] | 380 | <parameter>-Dlibaudit=no</parameter> and
|
---|
| 381 | <parameter>-Dselinux=false</parameter>: libaudit and SELinux are not used
|
---|
| 382 | in BLFS.
|
---|
[d6e164b] | 383 | </para>
|
---|
[e33ddee] | 384 |
|
---|
[b528d0f4] | 385 | <para>
|
---|
[d267a13] | 386 | <parameter>-Dqt=false</parameter>: disables the
|
---|
| 387 | <application>QT</application> examples. Omit if you have
|
---|
| 388 | <application>QT</application> available and wish to install the examples.
|
---|
[b528d0f4] | 389 | </para>
|
---|
| 390 |
|
---|
[e33ddee] | 391 | </sect2>
|
---|
| 392 |
|
---|
[d497e89] | 393 | <sect2 role="configuration">
|
---|
| 394 | <title>Configuring NetworkManager</title>
|
---|
| 395 |
|
---|
| 396 | <sect3 id="NetworkManager-config">
|
---|
| 397 | <title>Config Files</title>
|
---|
| 398 | <para>
|
---|
| 399 | <filename>/etc/NetworkManager/NetworkManager.conf</filename>
|
---|
| 400 | </para>
|
---|
| 401 |
|
---|
| 402 | <indexterm zone="NetworkManager NetworkManager-config">
|
---|
| 403 | <primary
|
---|
| 404 | sortas="e-etc-NetworkManager-NetworkManager.conf">
|
---|
| 405 | /etc/NetworkManager/NetworkManager.conf</primary>
|
---|
| 406 | </indexterm>
|
---|
| 407 |
|
---|
| 408 | </sect3>
|
---|
| 409 |
|
---|
| 410 | <sect3><title>Configuration Information</title>
|
---|
| 411 |
|
---|
| 412 | <para>
|
---|
| 413 | For <application>NetworkManager</application> to work, at least
|
---|
[21d18f7e] | 414 | a minimal configuration file must be present. Such a file is not
|
---|
[8df33ae3] | 415 | installed with <command>make install</command>. Issue the following
|
---|
| 416 | command as the <systemitem class="username">root</systemitem> user to
|
---|
[21d18f7e] | 417 | create a minimal <filename>NetworkManager.conf</filename> file:
|
---|
[d497e89] | 418 | </para>
|
---|
| 419 |
|
---|
| 420 | <screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
---|
| 421 | <literal>[main]
|
---|
| 422 | plugins=keyfile</literal>
|
---|
| 423 | EOF</userinput></screen>
|
---|
| 424 |
|
---|
| 425 | <para>
|
---|
[7fd06b0] | 426 | This file should not be modified directly by users of the system.
|
---|
| 427 | Instead, system specific changes should be made using configuration
|
---|
| 428 | files in the
|
---|
| 429 | <filename class="directory">/etc/NetworkManager/conf.d</filename>
|
---|
[21d18f7e] | 430 | directory.
|
---|
[7fd06b0] | 431 | </para>
|
---|
| 432 |
|
---|
| 433 | <para>
|
---|
| 434 | To allow polkit to manage authorizations, add the following
|
---|
| 435 | configuration file:
|
---|
| 436 | </para>
|
---|
| 437 |
|
---|
| 438 | <screen role="root"><userinput>cat > /etc/NetworkManager/conf.d/polkit.conf << "EOF"
|
---|
| 439 | <literal>[main]
|
---|
| 440 | auth-polkit=true</literal>
|
---|
| 441 | EOF</userinput></screen>
|
---|
| 442 |
|
---|
| 443 | <para>
|
---|
| 444 | To use something other than the built-in dhcp client (recommended if
|
---|
| 445 | using only <command>nmcli</command>), use the following configuration
|
---|
[24627ba] | 446 | (valid values include either dhclient <!--dhcpcd --> or internal):
|
---|
[7fd06b0] | 447 | </para>
|
---|
| 448 |
|
---|
| 449 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/dhcp.conf << "EOF"
|
---|
| 450 | <literal>[main]
|
---|
| 451 | dhcp=</literal><replaceable>dhclient</replaceable>
|
---|
| 452 | EOF</userinput></screen>
|
---|
| 453 |
|
---|
| 454 | <para>
|
---|
| 455 | To prevent <application>NetworkManager</application> from updating the
|
---|
| 456 | <filename>/etc/resolv.conf</filename> file, add the following
|
---|
| 457 | configuration file:
|
---|
| 458 | </para>
|
---|
| 459 |
|
---|
| 460 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/no-dns-update.conf << "EOF"
|
---|
| 461 | <literal>[main]
|
---|
| 462 | dns=none</literal>
|
---|
| 463 | EOF</userinput></screen>
|
---|
| 464 |
|
---|
| 465 | <para>
|
---|
[5f729f8] | 466 | For additional configuration options, see
|
---|
[7fd06b0] | 467 | <command>man 5 NetworkManager.conf</command>.
|
---|
[0d7900a] | 468 | </para>
|
---|
[d497e89] | 469 |
|
---|
[8df33ae3] | 470 | <para>
|
---|
[21d18f7e] | 471 | To allow regular users to configure network connections,
|
---|
[8df33ae3] | 472 | you should add them to the
|
---|
| 473 | <systemitem class="groupname">netdev</systemitem>
|
---|
| 474 | group, and create a <application>polkit</application> rule that grants
|
---|
| 475 | access. Run the following commands as the
|
---|
| 476 | <systemitem class="username">root</systemitem> user:
|
---|
| 477 | </para>
|
---|
| 478 |
|
---|
[a581662] | 479 | <screen role="root"><userinput>groupadd -fg 86 netdev &&
|
---|
[b88584a] | 480 | /usr/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
---|
[8df33ae3] | 481 |
|
---|
| 482 | cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
---|
| 483 | <literal>polkit.addRule(function(action, subject) {
|
---|
| 484 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
---|
| 485 | return polkit.Result.YES;
|
---|
| 486 | }
|
---|
| 487 | });</literal>
|
---|
| 488 | EOF</userinput></screen>
|
---|
| 489 |
|
---|
[d497e89] | 490 | </sect3>
|
---|
| 491 |
|
---|
| 492 | <sect3 id="NetworkManager-init">
|
---|
[cec6657e] | 493 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 494 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 495 |
|
---|
| 496 | <para revision="sysv">
|
---|
| 497 | To automatically start the <command>NetworkManager</command> daemon
|
---|
| 498 | when the system is rebooted, install the
|
---|
[8558044] | 499 | <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
|
---|
[cec6657e] | 500 | <xref linkend="bootscripts"/> package.
|
---|
| 501 | </para>
|
---|
[d497e89] | 502 |
|
---|
[cec6657e] | 503 | <para revision="systemd">
|
---|
| 504 | To start the <command>NetworkManager</command> daemon at boot, enable
|
---|
| 505 | the previously installed systemd unit by running the following command
|
---|
| 506 | as the <systemitem class="username">root</systemitem> user:
|
---|
[d497e89] | 507 | </para>
|
---|
| 508 |
|
---|
[8df33ae3] | 509 | <note>
|
---|
| 510 | <para>
|
---|
| 511 | If using <application>Network Manager</application> to manage
|
---|
| 512 | an interface, any previous configuration for that interface should be
|
---|
| 513 | removed, and the interface brought down prior to starting
|
---|
| 514 | <application>Network Manager</application>.
|
---|
| 515 | </para>
|
---|
| 516 | </note>
|
---|
[8558044] | 517 |
|
---|
[d497e89] | 518 | <indexterm zone="NetworkManager NetworkManager-init">
|
---|
| 519 | <primary sortas="f-NetworkManager">NetworkManager</primary>
|
---|
| 520 | </indexterm>
|
---|
| 521 |
|
---|
[cec6657e] | 522 | <screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
|
---|
| 523 |
|
---|
| 524 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
|
---|
[e2a1442] | 525 | <!-- The below instruction is obsolete. NetworkManager-wait-online is now
|
---|
| 526 | enabled by default when enabling NetworkManager. -->
|
---|
| 527 | <!--
|
---|
[cec6657e] | 528 | <para revision="systemd">
|
---|
| 529 | <application>NetworkManager</application> also ships a systemd unit
|
---|
| 530 | called <filename>NetworkManager-wait-online.service</filename> which
|
---|
| 531 | can be used to prevent services that require network connectivity
|
---|
| 532 | from starting until <application>NetworkManager</application> has
|
---|
| 533 | established the connection. To enable it, run the following command
|
---|
| 534 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 535 | </para>
|
---|
| 536 |
|
---|
| 537 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
|
---|
[e2a1442] | 538 | -->
|
---|
| 539 | <!-- As such, let's now provide instructions on how to disable that
|
---|
| 540 | behavior, for those who wish to do so. -->
|
---|
| 541 | <para revision="systemd">
|
---|
| 542 | Starting in version 1.11.2 of <application>NetworkManager</application>,
|
---|
| 543 | a systemd unit named <filename>NetworkManager-wait-online.service</filename>
|
---|
| 544 | is enabled, which is used to prevent services that require network
|
---|
| 545 | connectivity from starting until <application>NetworkManager</application>
|
---|
| 546 | establishes a connection. To disable this behavior, run the following
|
---|
| 547 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 548 | </para>
|
---|
| 549 |
|
---|
| 550 | <screen role="root" revision="systemd"><userinput>systemctl disable NetworkManager-wait-online</userinput></screen>
|
---|
[2cd1071] | 551 |
|
---|
[d497e89] | 552 | </sect3>
|
---|
| 553 |
|
---|
| 554 | </sect2>
|
---|
| 555 |
|
---|
[e33ddee] | 556 | <sect2 role="content">
|
---|
| 557 | <title>Contents</title>
|
---|
| 558 |
|
---|
| 559 | <segmentedlist>
|
---|
| 560 | <segtitle>Installed Programs</segtitle>
|
---|
| 561 | <segtitle>Installed Libraries</segtitle>
|
---|
| 562 | <segtitle>Installed Directories</segtitle>
|
---|
| 563 |
|
---|
| 564 | <seglistitem>
|
---|
[d497e89] | 565 | <seg>
|
---|
[8c7390c] | 566 | NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
|
---|
| 567 | nmtui-connect, nmtui-edit, and nmtui-hostname
|
---|
[d497e89] | 568 | </seg>
|
---|
| 569 | <seg>
|
---|
[b9f17a8] | 570 | libnm.so
|
---|
[52c95143] | 571 | and several modules under /usr/lib/NetworkManager
|
---|
[d497e89] | 572 | </seg>
|
---|
| 573 | <seg>
|
---|
[5aa7dce] | 574 | /etc/NetworkManager,
|
---|
[05a433b] | 575 | /usr/include/libnm,
|
---|
[5aa7dce] | 576 | /usr/lib/NetworkManager,
|
---|
| 577 | /usr/share/doc/NetworkManager-&NetworkManager-version;,
|
---|
[b9f17a8] | 578 | /usr/share/gtk-doc/html/{libnm,NetworkManager}
|
---|
| 579 | (if the documentation is built),
|
---|
[5aa7dce] | 580 | and
|
---|
[262a108] | 581 | /var/lib/NetworkManager
|
---|
[d497e89] | 582 | </seg>
|
---|
[e33ddee] | 583 | </seglistitem>
|
---|
| 584 | </segmentedlist>
|
---|
| 585 |
|
---|
| 586 | <variablelist>
|
---|
| 587 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 588 | <?dbfo list-presentation="list"?>
|
---|
| 589 | <?dbhtml list-presentation="table"?>
|
---|
| 590 |
|
---|
[d497e89] | 591 | <varlistentry id="nmcli">
|
---|
| 592 | <term><command>nmcli</command></term>
|
---|
[e33ddee] | 593 | <listitem>
|
---|
[7ded7e3] | 594 | <para>
|
---|
| 595 | is a command-line tool for controlling
|
---|
[0d7900a] | 596 | <application>NetworkManager</application>
|
---|
[4c24eb0a] | 597 | and getting its status
|
---|
[7ded7e3] | 598 | </para>
|
---|
[d497e89] | 599 | <indexterm zone="NetworkManager nmcli">
|
---|
| 600 | <primary sortas="b-nmcli">nmcli</primary>
|
---|
[e33ddee] | 601 | </indexterm>
|
---|
| 602 | </listitem>
|
---|
| 603 | </varlistentry>
|
---|
| 604 |
|
---|
| 605 | <varlistentry id="nm-online">
|
---|
| 606 | <term><command>nm-online</command></term>
|
---|
| 607 | <listitem>
|
---|
[7ded7e3] | 608 | <para>
|
---|
[4c24eb0a] | 609 | is an utility to determine whether you are online
|
---|
[7ded7e3] | 610 | </para>
|
---|
[e33ddee] | 611 | <indexterm zone="NetworkManager nm-online">
|
---|
| 612 | <primary sortas="b-nm-online">nm-online</primary>
|
---|
| 613 | </indexterm>
|
---|
| 614 | </listitem>
|
---|
| 615 | </varlistentry>
|
---|
| 616 |
|
---|
[acb3e9f] | 617 | <varlistentry id="nmtui">
|
---|
| 618 | <term><command>nmtui</command></term>
|
---|
| 619 | <listitem>
|
---|
| 620 | <para>
|
---|
[21d18f7e] | 621 | is an interactive ncurses-based user interface for
|
---|
[4c24eb0a] | 622 | <application>nmcli</application>
|
---|
[acb3e9f] | 623 | </para>
|
---|
| 624 | <indexterm zone="NetworkManager nmtui">
|
---|
| 625 | <primary sortas="b-nmtui">nmtui</primary>
|
---|
| 626 | </indexterm>
|
---|
| 627 | </listitem>
|
---|
| 628 | </varlistentry>
|
---|
| 629 |
|
---|
| 630 | <varlistentry id="nmtui-connect">
|
---|
| 631 | <term><command>nmtui-connect</command></term>
|
---|
| 632 | <listitem>
|
---|
| 633 | <para>
|
---|
[21d18f7e] | 634 | is an interactive ncurses-based user interface to
|
---|
[4c24eb0a] | 635 | activate/deactivate connections
|
---|
[acb3e9f] | 636 | </para>
|
---|
| 637 | <indexterm zone="NetworkManager nmtui-connect">
|
---|
| 638 | <primary sortas="b-nmtui-connect">nmtui-connect</primary>
|
---|
| 639 | </indexterm>
|
---|
| 640 | </listitem>
|
---|
| 641 | </varlistentry>
|
---|
| 642 |
|
---|
| 643 | <varlistentry id="nmtui-edit">
|
---|
| 644 | <term><command>nmtui-edit</command></term>
|
---|
| 645 | <listitem>
|
---|
| 646 | <para>
|
---|
[4c24eb0a] | 647 | is an interactive ncurses-based user interface to edit connections
|
---|
[acb3e9f] | 648 | </para>
|
---|
| 649 | <indexterm zone="NetworkManager nmtui-edit">
|
---|
| 650 | <primary sortas="b-nmtui-edit">nmtui-edit</primary>
|
---|
| 651 | </indexterm>
|
---|
| 652 | </listitem>
|
---|
| 653 | </varlistentry>
|
---|
| 654 |
|
---|
| 655 | <varlistentry id="nmtui-hostname">
|
---|
| 656 | <term><command>nmtui-hostname</command></term>
|
---|
[e33ddee] | 657 | <listitem>
|
---|
[7ded7e3] | 658 | <para>
|
---|
[4c24eb0a] | 659 | is an interactive ncurses-based user interface to edit the hostname
|
---|
[7ded7e3] | 660 | </para>
|
---|
[acb3e9f] | 661 | <indexterm zone="NetworkManager nmtui-hostname">
|
---|
| 662 | <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
|
---|
[e33ddee] | 663 | </indexterm>
|
---|
| 664 | </listitem>
|
---|
| 665 | </varlistentry>
|
---|
| 666 |
|
---|
[d497e89] | 667 | <varlistentry id="NetworkManager-prog">
|
---|
| 668 | <term><command>NetworkManager</command></term>
|
---|
[e33ddee] | 669 | <listitem>
|
---|
[7ded7e3] | 670 | <para>
|
---|
[4c24eb0a] | 671 | is the network management daemon
|
---|
[7ded7e3] | 672 | </para>
|
---|
[d497e89] | 673 | <indexterm zone="NetworkManager NetworkManager-prog">
|
---|
[7ded7e3] | 674 | <primary sortas="b-NetworkManager">NetworkManager</primary>
|
---|
[e33ddee] | 675 | </indexterm>
|
---|
| 676 | </listitem>
|
---|
| 677 | </varlistentry>
|
---|
| 678 |
|
---|
[262a108] | 679 | <varlistentry id="libnm">
|
---|
| 680 | <term><filename class="libraryfile">libnm.so</filename></term>
|
---|
[e33ddee] | 681 | <listitem>
|
---|
[7ded7e3] | 682 | <para>
|
---|
[4c24eb0a] | 683 | contains functions used by <application>NetworkManager</application>
|
---|
[7ded7e3] | 684 | </para>
|
---|
[262a108] | 685 | <indexterm zone="NetworkManager libnm">
|
---|
| 686 | <primary sortas="c-libnm">libnm.so</primary>
|
---|
[e33ddee] | 687 | </indexterm>
|
---|
| 688 | </listitem>
|
---|
| 689 | </varlistentry>
|
---|
| 690 | </variablelist>
|
---|
| 691 |
|
---|
| 692 | </sect2>
|
---|
| 693 |
|
---|
| 694 | </sect1>
|
---|