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