source: networking/netutils/networkmanager.xml@ cc550bc

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since cc550bc was 261fdeb, checked in by Xi Ruoyao <xry111@…>, 14 months ago

networkmanager: Document -Dcrypto= options

  • Property mode set to 100644
File size: 25.8 KB
RevLine 
[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">
[2dc72c2]11 <!ENTITY NetworkManager-md5sum "e2aa7bf567206a55b10f6b2e332c109e">
[06d900b]12 <!ENTITY NetworkManager-size "6.4 MB">
[369a898b]13 <!ENTITY NetworkManager-buildsize "280 MB (with tests and documentation)">
[2dc72c2]14 <!ENTITY NetworkManager-time "0.8 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),
[7d64567]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---&gt; [CONFIG_NET]
[fc88f1f]159 Networking options---&gt;
160 [*] TCP/IP networking [CONFIG_INET]
161 &lt;*/M&gt; IP: tunelling [CONFIG_NET_IPIP]
162 &lt;*/M&gt; IP: GRE demultiplexer [CONFIG_NET_IPGRE_DEMUX]
163 &lt;*/M&gt; IP: GRE tunnels over IP [CONFIG_NET_IPGRE]
164 &lt;*&gt; The IPv6 protocol ---&gt; [CONFIG_IPV6]
165 &lt;*/M&gt; IPv6: IPv6-in-IPv4 tunnel (SIT driver) [CONFIG_IPV6_SIT]
166 &lt;*/M&gt; 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 &lt;*/M&gt; 802.1Q/802.1ad VLAN Support [CONFIG_VLAN_8021Q]
171 [*] QoS and/or fair queueing ---&gt; [CONFIG_NET_SCHED]
172 &lt;*/M&gt; Stochastic Fairness Queueing (SFQ) [CONFIG_NET_SCH_SFQ]
173 &lt;*/M&gt; Token Bucket Filter (TBF) [CONFIG_NET_SCH_TBF]
174 &lt;*/M&gt; Fair Queue Controlled Delay AQM (FQ_CODEL) [CONFIG_NET_SCH_FQ_CODEL]
175 &lt;*/M&gt; Ingress/classifier-action Qdisc [CONFIG_NET_SCH_INGRESS]
176 Device Drivers ---&gt;
177 [*] Network device support ---&gt; [CONFIG_NETDEVICES]
178 [*] Network core driver support [CONFIG_NET_CORE]
179 &lt;*&gt; Bonding driver support [CONFIG_BONDING]
180 &lt;*&gt; Dummy net driver support [CONFIG_DUMMY]
181 &lt;*&gt; Ethernet team driver support ---&gt; [CONFIG_NET_TEAM]
182 &lt;*&gt; MAC-VLAN support [CONFIG_MACVLAN]
183 &lt;*&gt; MAC-VLAN based tap driver [CONFIG_MACVTAP]
184 &lt;*&gt; IP-VLAN support [CONFIG_IPVLAN]
185 &lt;*&gt; Virtual eXtensible Local Area Network (VXLAN) [CONFIG_VXLAN]
186 &lt;*&gt; Virtual ethernet pair device [CONFIG_VETH]
[7ea158e]187 &lt;*&gt; 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 &amp;&amp;
[40d141f]205
[6573fc3]206sed -e 's/Qt/&amp;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/&amp;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 &amp;&amp;
[7d07abd]230cd build &amp;&amp;
[d267a13]231
232CXXFLAGS+="-O2 -fPIC" \
[91318eb]233meson setup .. \
[4b6e2b2]234 --prefix=/usr \
[adf17153]235 --buildtype=release \
[d267a13]236 -Dlibaudit=no \
[39100371]237 -Dlibpsl=false \
238 -Dnmtui=true \
239 -Dovs=false \
240 -Dppp=false \
[d267a13]241 -Dselinux=false \
[51dfb3e]242 -Dsession_tracking=elogind \
[39100371]243 -Dmodem_manager=false \
[d267a13]244 -Dsystemdsystemunitdir=no \
245 -Dsystemd_journal=false \
[91318eb]246 -Dqt=false &amp;&amp;
[d267a13]247ninja</userinput></screen>
248
249<screen revision="systemd"><userinput>mkdir build &amp;&amp;
[7d07abd]250cd build &amp;&amp;
[d267a13]251
252CXXFLAGS+="-O2 -fPIC" \
[91318eb]253meson setup .. \
[4b6e2b2]254 --prefix=/usr \
[adf17153]255 --buildtype=release \
[d267a13]256 -Dlibaudit=no \
[39100371]257 -Dlibpsl=false \
258 -Dnmtui=true \
259 -Dovs=false \
260 -Dppp=false \
[d267a13]261 -Dselinux=false \
262 -Dqt=false \
263 -Dsession_tracking=systemd \
[91318eb]264 -Dmodem_manager=false &amp;&amp;
[d267a13]265ninja</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 &amp;&amp;
282mv -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##*.} &amp;&amp;
292 install -vdm 755 /usr/share/man/man$section
293 install -vm 644 $file /usr/share/man/man$section/
294done</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
[261fdeb]391 <para>
392 <option>-Dcrypto=gnutls</option>: Use this switch if you have GnuTLS
393 installed and want to use it for certificate and key operations in
394 NetworkManager, instead of using NSS (the default).
395 </para>
396
397 <para>
398 <option>-Dcrypto=null</option>: Use this switch if neither NSS nor
399 GnuTLS is installed but you want to build NetworkManager anyway. This
400 switch will make NetworkManager lack some features (for example
401 802.1X).
402 </para>
403
[e33ddee]404 </sect2>
405
[d497e89]406 <sect2 role="configuration">
407 <title>Configuring NetworkManager</title>
408
409 <sect3 id="NetworkManager-config">
410 <title>Config Files</title>
411 <para>
412 <filename>/etc/NetworkManager/NetworkManager.conf</filename>
413 </para>
414
415 <indexterm zone="NetworkManager NetworkManager-config">
416 <primary
417 sortas="e-etc-NetworkManager-NetworkManager.conf">
418 /etc/NetworkManager/NetworkManager.conf</primary>
419 </indexterm>
420
421 </sect3>
422
423 <sect3><title>Configuration Information</title>
424
425 <para>
426 For <application>NetworkManager</application> to work, at least
[21d18f7e]427 a minimal configuration file must be present. Such a file is not
[8df33ae3]428 installed with <command>make install</command>. Issue the following
429 command as the <systemitem class="username">root</systemitem> user to
[21d18f7e]430 create a minimal <filename>NetworkManager.conf</filename> file:
[d497e89]431 </para>
432
433<screen role="root"><userinput>cat &gt;&gt; /etc/NetworkManager/NetworkManager.conf &lt;&lt; "EOF"
434<literal>[main]
435plugins=keyfile</literal>
436EOF</userinput></screen>
437
438 <para>
[7fd06b0]439 This file should not be modified directly by users of the system.
440 Instead, system specific changes should be made using configuration
441 files in the
442 <filename class="directory">/etc/NetworkManager/conf.d</filename>
[21d18f7e]443 directory.
[7fd06b0]444 </para>
445
446 <para>
447 To allow polkit to manage authorizations, add the following
448 configuration file:
449 </para>
450
451<screen role="root"><userinput>cat &gt; /etc/NetworkManager/conf.d/polkit.conf &lt;&lt; "EOF"
452<literal>[main]
453auth-polkit=true</literal>
454EOF</userinput></screen>
455
456 <para>
457 To use something other than the built-in dhcp client (recommended if
458 using only <command>nmcli</command>), use the following configuration
[24627ba]459 (valid values include either dhclient <!--dhcpcd --> or internal):
[7fd06b0]460 </para>
461
462<screen role="nodump"><userinput>cat &gt; /etc/NetworkManager/conf.d/dhcp.conf &lt;&lt; "EOF"
463<literal>[main]
464dhcp=</literal><replaceable>dhclient</replaceable>
465EOF</userinput></screen>
466
467 <para>
468 To prevent <application>NetworkManager</application> from updating the
469 <filename>/etc/resolv.conf</filename> file, add the following
470 configuration file:
471 </para>
472
473<screen role="nodump"><userinput>cat &gt; /etc/NetworkManager/conf.d/no-dns-update.conf &lt;&lt; "EOF"
474<literal>[main]
475dns=none</literal>
476EOF</userinput></screen>
477
478 <para>
[5f729f8]479 For additional configuration options, see
[7fd06b0]480 <command>man 5 NetworkManager.conf</command>.
[0d7900a]481 </para>
[d497e89]482
[8df33ae3]483 <para>
[21d18f7e]484 To allow regular users to configure network connections,
[8df33ae3]485 you should add them to the
486 <systemitem class="groupname">netdev</systemitem>
487 group, and create a <application>polkit</application> rule that grants
488 access. Run the following commands as the
489 <systemitem class="username">root</systemitem> user:
490 </para>
491
[a581662]492<screen role="root"><userinput>groupadd -fg 86 netdev &amp;&amp;
[b88584a]493/usr/sbin/usermod -a -G netdev <replaceable>&lt;username&gt;</replaceable>
[8df33ae3]494
495cat &gt; /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules &lt;&lt; "EOF"
496<literal>polkit.addRule(function(action, subject) {
497 if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &amp;&amp; subject.isInGroup("netdev")) {
498 return polkit.Result.YES;
499 }
500});</literal>
501EOF</userinput></screen>
502
[d497e89]503 </sect3>
504
505 <sect3 id="NetworkManager-init">
[cec6657e]506 <title><phrase revision="sysv">Boot Script</phrase>
507 <phrase revision="systemd">Systemd Unit</phrase></title>
508
509 <para revision="sysv">
510 To automatically start the <command>NetworkManager</command> daemon
511 when the system is rebooted, install the
[8558044]512 <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
[cec6657e]513 <xref linkend="bootscripts"/> package.
514 </para>
[d497e89]515
[cec6657e]516 <para revision="systemd">
517 To start the <command>NetworkManager</command> daemon at boot, enable
518 the previously installed systemd unit by running the following command
519 as the <systemitem class="username">root</systemitem> user:
[d497e89]520 </para>
521
[8df33ae3]522 <note>
523 <para>
524 If using <application>Network Manager</application> to manage
525 an interface, any previous configuration for that interface should be
526 removed, and the interface brought down prior to starting
527 <application>Network Manager</application>.
528 </para>
529 </note>
[8558044]530
[d497e89]531 <indexterm zone="NetworkManager NetworkManager-init">
532 <primary sortas="f-NetworkManager">NetworkManager</primary>
533 </indexterm>
534
[cec6657e]535<screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
536
537<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
[e2a1442]538<!-- The below instruction is obsolete. NetworkManager-wait-online is now
539 enabled by default when enabling NetworkManager. -->
540<!--
[cec6657e]541 <para revision="systemd">
542 <application>NetworkManager</application> also ships a systemd unit
543 called <filename>NetworkManager-wait-online.service</filename> which
544 can be used to prevent services that require network connectivity
545 from starting until <application>NetworkManager</application> has
546 established the connection. To enable it, run the following command
547 as the <systemitem class="username">root</systemitem> user:
548 </para>
549
550<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
[e2a1442]551 -->
552 <!-- As such, let's now provide instructions on how to disable that
553 behavior, for those who wish to do so. -->
554 <para revision="systemd">
555 Starting in version 1.11.2 of <application>NetworkManager</application>,
556 a systemd unit named <filename>NetworkManager-wait-online.service</filename>
557 is enabled, which is used to prevent services that require network
558 connectivity from starting until <application>NetworkManager</application>
559 establishes a connection. To disable this behavior, run the following
560 command as the <systemitem class="username">root</systemitem> user:
561 </para>
562
563<screen role="root" revision="systemd"><userinput>systemctl disable NetworkManager-wait-online</userinput></screen>
[2cd1071]564
[d497e89]565 </sect3>
566
567 </sect2>
568
[e33ddee]569 <sect2 role="content">
570 <title>Contents</title>
571
572 <segmentedlist>
573 <segtitle>Installed Programs</segtitle>
574 <segtitle>Installed Libraries</segtitle>
575 <segtitle>Installed Directories</segtitle>
576
577 <seglistitem>
[d497e89]578 <seg>
[8c7390c]579 NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
580 nmtui-connect, nmtui-edit, and nmtui-hostname
[d497e89]581 </seg>
582 <seg>
[b9f17a8]583 libnm.so
[52c95143]584 and several modules under /usr/lib/NetworkManager
[d497e89]585 </seg>
586 <seg>
[5aa7dce]587 /etc/NetworkManager,
[05a433b]588 /usr/include/libnm,
[5aa7dce]589 /usr/lib/NetworkManager,
590 /usr/share/doc/NetworkManager-&NetworkManager-version;,
[b9f17a8]591 /usr/share/gtk-doc/html/{libnm,NetworkManager}
592 (if the documentation is built),
[5aa7dce]593 and
[262a108]594 /var/lib/NetworkManager
[d497e89]595 </seg>
[e33ddee]596 </seglistitem>
597 </segmentedlist>
598
599 <variablelist>
600 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
601 <?dbfo list-presentation="list"?>
602 <?dbhtml list-presentation="table"?>
603
[d497e89]604 <varlistentry id="nmcli">
605 <term><command>nmcli</command></term>
[e33ddee]606 <listitem>
[7ded7e3]607 <para>
608 is a command-line tool for controlling
[0d7900a]609 <application>NetworkManager</application>
[4c24eb0a]610 and getting its status
[7ded7e3]611 </para>
[d497e89]612 <indexterm zone="NetworkManager nmcli">
613 <primary sortas="b-nmcli">nmcli</primary>
[e33ddee]614 </indexterm>
615 </listitem>
616 </varlistentry>
617
618 <varlistentry id="nm-online">
619 <term><command>nm-online</command></term>
620 <listitem>
[7ded7e3]621 <para>
[4c24eb0a]622 is an utility to determine whether you are online
[7ded7e3]623 </para>
[e33ddee]624 <indexterm zone="NetworkManager nm-online">
625 <primary sortas="b-nm-online">nm-online</primary>
626 </indexterm>
627 </listitem>
628 </varlistentry>
629
[acb3e9f]630 <varlistentry id="nmtui">
631 <term><command>nmtui</command></term>
632 <listitem>
633 <para>
[21d18f7e]634 is an interactive ncurses-based user interface for
[4c24eb0a]635 <application>nmcli</application>
[acb3e9f]636 </para>
637 <indexterm zone="NetworkManager nmtui">
638 <primary sortas="b-nmtui">nmtui</primary>
639 </indexterm>
640 </listitem>
641 </varlistentry>
642
643 <varlistentry id="nmtui-connect">
644 <term><command>nmtui-connect</command></term>
645 <listitem>
646 <para>
[21d18f7e]647 is an interactive ncurses-based user interface to
[4c24eb0a]648 activate/deactivate connections
[acb3e9f]649 </para>
650 <indexterm zone="NetworkManager nmtui-connect">
651 <primary sortas="b-nmtui-connect">nmtui-connect</primary>
652 </indexterm>
653 </listitem>
654 </varlistentry>
655
656 <varlistentry id="nmtui-edit">
657 <term><command>nmtui-edit</command></term>
658 <listitem>
659 <para>
[4c24eb0a]660 is an interactive ncurses-based user interface to edit connections
[acb3e9f]661 </para>
662 <indexterm zone="NetworkManager nmtui-edit">
663 <primary sortas="b-nmtui-edit">nmtui-edit</primary>
664 </indexterm>
665 </listitem>
666 </varlistentry>
667
668 <varlistentry id="nmtui-hostname">
669 <term><command>nmtui-hostname</command></term>
[e33ddee]670 <listitem>
[7ded7e3]671 <para>
[4c24eb0a]672 is an interactive ncurses-based user interface to edit the hostname
[7ded7e3]673 </para>
[acb3e9f]674 <indexterm zone="NetworkManager nmtui-hostname">
675 <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
[e33ddee]676 </indexterm>
677 </listitem>
678 </varlistentry>
679
[d497e89]680 <varlistentry id="NetworkManager-prog">
681 <term><command>NetworkManager</command></term>
[e33ddee]682 <listitem>
[7ded7e3]683 <para>
[4c24eb0a]684 is the network management daemon
[7ded7e3]685 </para>
[d497e89]686 <indexterm zone="NetworkManager NetworkManager-prog">
[7ded7e3]687 <primary sortas="b-NetworkManager">NetworkManager</primary>
[e33ddee]688 </indexterm>
689 </listitem>
690 </varlistentry>
691
[262a108]692 <varlistentry id="libnm">
693 <term><filename class="libraryfile">libnm.so</filename></term>
[e33ddee]694 <listitem>
[7ded7e3]695 <para>
[4c24eb0a]696 contains functions used by <application>NetworkManager</application>
[7ded7e3]697 </para>
[262a108]698 <indexterm zone="NetworkManager libnm">
699 <primary sortas="c-libnm">libnm.so</primary>
[e33ddee]700 </indexterm>
701 </listitem>
702 </varlistentry>
703 </variablelist>
704
705 </sect2>
706
707</sect1>
Note: See TracBrowser for help on using the repository browser.