source: networking/netutils/networkmanager.xml@ b88584a

10.0 10.1 11.0 11.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since b88584a was b88584a, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Remove lfs7a entities
Touch up some instructions and text.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18403 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 17.8 KB
Line 
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
7 <!ENTITY NetworkManager-download-http
8 "&gnome-download-http;/NetworkManager/1.6/NetworkManager-&NetworkManager-version;.tar.xz">
9 <!ENTITY NetworkManager-download-ftp
10 "&gnome-download-ftp;/NetworkManager/1.6/NetworkManager-&NetworkManager-version;.tar.xz">
11 <!ENTITY NetworkManager-md5sum "89c975afe19fbac854191edb6e9bcd3b">
12 <!ENTITY NetworkManager-size "3.6 MB">
13 <!ENTITY NetworkManager-buildsize "581 MB (with tests)">
14 <!ENTITY NetworkManager-time "3.8 SBU (with tests)">
15]>
16
17<sect1 id="NetworkManager" xreflabel="NetworkManager-&NetworkManager-version;">
18 <?dbhtml filename="networkmanager.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>NetworkManager-&NetworkManager-version;</title>
26
27 <indexterm zone="NetworkManager">
28 <primary sortas="a-NetworkManager">NetworkManager</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to NetworkManager</title>
33
34 <para>
35 <application>NetworkManager</application> is a set of co-operative
36 tools that make networking simple and straightforward. Whether WiFi,
37 wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from
38 one network to another: Once a network has been configured and joined
39 once, it can be detected and re-joined automatically the next time it's
40 available.
41 </para>
42
43 &lfs80_checked;
44
45 <note revision="systemd">
46 <para>
47 Make sure that you disable the <command>systemd-networkd</command>
48 service or configure it not to manage the interfaces you want to manage
49 with <application>NetworkManager</application>.
50 </para>
51 </note>
52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
56 <para>
57 Download (HTTP): <ulink url="&NetworkManager-download-http;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download (FTP): <ulink url="&NetworkManager-download-ftp;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &NetworkManager-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &NetworkManager-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &NetworkManager-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &NetworkManager-time;
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">NetworkManager Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Required</bridgehead>
90 <para role="required">
91 <xref linkend="dbus-glib"/>,
92 <xref linkend="libgudev"/>,
93 <xref linkend="libndp"/>,
94 <xref linkend="libnl"/>, and
95 <xref linkend="nss"/>
96 </para>
97
98 <bridgehead renderas="sect4">Recommended</bridgehead>
99 <para role="recommended">
100 <phrase revision="sysv"><xref linkend="consolekit"/>,</phrase>
101 <xref linkend="dhcpcd"/> or
102 <xref linkend="dhcp"/> (client only),
103 <xref linkend="gobject-introspection"/>,
104 <xref linkend="iptables"/>,
105 <xref linkend="libsoup"/>,
106 <xref linkend="newt"/> (for <command>nmtui</command>),
107 <xref linkend="polkit"/>,
108 <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
109 <xref linkend="upower"/>,
110 <xref linkend="vala"/>, and
111 <xref linkend="wpa_supplicant"/> (built with D-Bus support),
112 </para>
113
114 <bridgehead renderas="sect4">Optional</bridgehead>
115 <para role="optional">
116 <xref linkend="bluez"/>,
117 <xref linkend="gtk-doc"/>,
118 <xref linkend="qt5"/> (for examples),
119 <xref linkend="ModemManager"/>,
120 <phrase revision="systemd"><xref linkend="pygobject3"/>,</phrase>
121 <xref linkend="valgrind"/>,
122 <ulink url="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</ulink>,
123 <ulink url="http://www.digip.org/jansson/">Jansson</ulink>,
124 <ulink url="http://libteam.org/">libteam</ulink>,
125 <ulink url="https://www.samba.org/ftp/ppp/">PPP</ulink>, and
126 <ulink url="https://www.roaringpenguin.com/products/pppoe">RP-PPPoE</ulink>
127 </para>
128
129 <para condition="html" role="usernotes">User Notes:
130 <ulink url="&blfs-wiki;/NetworkManager"/>
131 </para>
132 </sect2>
133
134 <sect2 role="installation">
135 <title>Installation of NetworkManager</title>
136
137 <para>If <xref linkend="qt5"/> is installed and the Qt based
138 examples are desired, fix the configure script:</para>
139
140<screen><userinput>sed -e '/Qt[CDN]/s/Qt/Qt5/g' \
141 -e 's/moc_location/host_bins/' \
142 -i configure</userinput></screen>
143
144 <para>
145 Install <application>NetworkManager</application> by running the
146 following commands:
147 </para>
148
149<screen revision="sysv"><userinput>CXXFLAGS="-O2 -fPIC" \
150./configure --prefix=/usr \
151 --sysconfdir=/etc \
152 --localstatedir=/var \
153 --with-nmtui \
154 --disable-ppp \
155 --disable-json-validation \
156 --with-systemdsystemunitdir=no \
157 --docdir=/usr/share/doc/network-manager-&NetworkManager-version; &amp;&amp;
158make</userinput></screen>
159
160<screen revision="systemd"><userinput>CXXFLAGS="-O2 -fPIC" \
161./configure --prefix=/usr \
162 --sysconfdir=/etc \
163 --localstatedir=/var \
164 --with-nmtui \
165 --disable-ppp \
166 --disable-json-validation \
167 --with-session-tracking=systemd \
168 --with-systemdsystemunitdir=/lib/systemd/system \
169 --docdir=/usr/share/doc/network-manager-&NetworkManager-version; &amp;&amp;
170make</userinput></screen>
171
172 <para>
173 An already active graphical session with bus address is necessary to run
174 the tests. To test the results, issue: <command>make check</command>.
175 </para>
176
177 <para>
178 Now, as the <systemitem class="username">root</systemitem> user:
179 </para>
180
181<screen role="root"><userinput>make install</userinput></screen>
182
183 </sect2>
184
185 <sect2 role="commands">
186 <title>Command Explanations</title>
187
188 <para>
189 <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
190 necessary to build the Qt5 based examples.
191 </para>
192
193 <para>
194 <parameter>--with-nmtui</parameter>: This parameter enables build of
195 <command>nmtui</command>.
196 </para>
197
198 <para revision="systemd">
199 <parameter>--with-session-tracking=systemd</parameter>: This switch
200 is used to set <command>systemd-logind</command> as the default
201 program for session tracking.
202 </para>
203
204 <para revision="sysv">
205 <parameter>--with-systemdsystemunitdir=no</parameter>: This parameter is
206 used for sysv init systems. If you use systemd, replace "no" by the
207 proper directory.
208 </para>
209
210 <para revision="systemd">
211 <parameter>--with-systemdsystemunitdir=/lib/systemd/system</parameter>:
212 This switch is used to set the correct installation directory for
213 systemd units.
214 </para>
215
216 <para>
217 <parameter>--disable-ppp</parameter>: This parameter disables parameteral
218 <application>PPP</application> support in
219 <application>NetworkManager</application>.
220 </para>
221
222 <para>
223 <parameter>--disable-json-validation</parameter>: This parameter allows
224 building without <application>Jansson</application>, which is needed
225 for <quote>team</quote> configuration validation (team is one way
226 of bonding network interfaces for increased throughput).
227 </para>
228
229 <para>
230 <option>--enable-gtk-doc</option>: Use this switch if you have installed
231 <xref linkend="gtk-doc"/> and wish to build the API manuals.
232 </para>
233
234 <para>
235 <option>--without-iptables</option>: Use this switch if you don't have
236 <application>Iptables</application> installed.
237 </para>
238
239 </sect2>
240
241 <sect2 role="configuration">
242 <title>Configuring NetworkManager</title>
243
244 <sect3 id="NetworkManager-config">
245 <title>Config Files</title>
246 <para>
247 <filename>/etc/NetworkManager/NetworkManager.conf</filename>
248 </para>
249
250 <indexterm zone="NetworkManager NetworkManager-config">
251 <primary
252 sortas="e-etc-NetworkManager-NetworkManager.conf">
253 /etc/NetworkManager/NetworkManager.conf</primary>
254 </indexterm>
255
256 </sect3>
257
258 <sect3><title>Configuration Information</title>
259
260 <para>
261 For <application>NetworkManager</application> to work, at least
262 a minimal configuration file must be present. Such file is not
263 installed with <command>make install</command>. Issue the following
264 command as the <systemitem class="username">root</systemitem> user to
265 create minimal <filename>NetworkManager.conf</filename> file:
266 </para>
267
268<screen role="root"><userinput>cat &gt;&gt; /etc/NetworkManager/NetworkManager.conf &lt;&lt; "EOF"
269<literal>[main]
270plugins=keyfile</literal>
271EOF</userinput></screen>
272
273 <para>
274 You can add <option>dns=none</option> to suppress changes to
275 <filename>/etc/resolv.conf</filename>. See
276 <command>man 5 NetworkManager.conf</command>
277 for any additional options.
278 </para>
279
280 <para>
281 To allow regular users permission to configure network connections,
282 you should add them to the
283 <systemitem class="groupname">netdev</systemitem>
284 group, and create a <application>polkit</application> rule that grants
285 access. Run the following commands as the
286 <systemitem class="username">root</systemitem> user:
287 </para>
288
289<screen role="root"><userinput>groupadd -fg 86 netdev &amp;&amp;
290/usr/sbin/usermod -a -G netdev <replaceable>&lt;username&gt;</replaceable>
291
292cat &gt; /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules &lt;&lt; "EOF"
293<literal>polkit.addRule(function(action, subject) {
294 if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &amp;&amp; subject.isInGroup("netdev")) {
295 return polkit.Result.YES;
296 }
297});</literal>
298EOF</userinput></screen>
299
300 </sect3>
301
302 <sect3 id="NetworkManager-init">
303 <title><phrase revision="sysv">Boot Script</phrase>
304 <phrase revision="systemd">Systemd Unit</phrase></title>
305
306 <para revision="sysv">
307 To automatically start the <command>NetworkManager</command> daemon
308 when the system is rebooted, install the
309 <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
310 <xref linkend="bootscripts"/> package.
311 </para>
312
313 <para revision="systemd">
314 To start the <command>NetworkManager</command> daemon at boot, enable
315 the previously installed systemd unit by running the following command
316 as the <systemitem class="username">root</systemitem> user:
317 </para>
318
319 <note>
320 <para>
321 If using <application>Network Manager</application> to manage
322 an interface, any previous configuration for that interface should be
323 removed, and the interface brought down prior to starting
324 <application>Network Manager</application>.
325 </para>
326 </note>
327
328 <indexterm zone="NetworkManager NetworkManager-init">
329 <primary sortas="f-NetworkManager">NetworkManager</primary>
330 </indexterm>
331
332<screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
333
334<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
335
336 <para revision="systemd">
337 <application>NetworkManager</application> also ships a systemd unit
338 called <filename>NetworkManager-wait-online.service</filename> which
339 can be used to prevent services that require network connectivity
340 from starting until <application>NetworkManager</application> has
341 established the connection. To enable it, run the following command
342 as the <systemitem class="username">root</systemitem> user:
343 </para>
344
345<screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
346
347 </sect3>
348
349 </sect2>
350
351 <sect2 role="content">
352 <title>Contents</title>
353
354 <segmentedlist>
355 <segtitle>Installed Programs</segtitle>
356 <segtitle>Installed Libraries</segtitle>
357 <segtitle>Installed Directories</segtitle>
358
359 <seglistitem>
360 <seg>
361 NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
362 nmtui-connect, nmtui-edit, and nmtui-hostname
363 </seg>
364 <seg>
365 libnm-glib.so, libnm-glib-vpn.so, libnm.so, libnm-util.so, and
366 modules under /usr/lib/NetworkManager
367 </seg>
368 <seg>
369 /etc/NetworkManager,
370 /usr/include/{libnm,libnm-glib,NetworkManager},
371 /usr/lib/NetworkManager,
372 /usr/share/doc/NetworkManager-&NetworkManager-version;,
373 /usr/share/gtk-doc/html/{libnm,libnm-glib,libnm-util,NetworkManager}
374 (if the documentation is built),
375 and
376 /var/{lib,run}/NetworkManager
377 </seg>
378 </seglistitem>
379 </segmentedlist>
380
381 <variablelist>
382 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
383 <?dbfo list-presentation="list"?>
384 <?dbhtml list-presentation="table"?>
385
386 <varlistentry id="nmcli">
387 <term><command>nmcli</command></term>
388 <listitem>
389 <para>
390 is a command-line tool for controlling
391 <application>NetworkManager</application>
392 and getting its status.
393 </para>
394 <indexterm zone="NetworkManager nmcli">
395 <primary sortas="b-nmcli">nmcli</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="nm-online">
401 <term><command>nm-online</command></term>
402 <listitem>
403 <para>
404 is a utility to find out whether you are online.
405 </para>
406 <indexterm zone="NetworkManager nm-online">
407 <primary sortas="b-nm-online">nm-online</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="nmtui">
413 <term><command>nmtui</command></term>
414 <listitem>
415 <para>
416 is an interactive ncurses based interface for
417 <application>nmcli</application>.
418 </para>
419 <indexterm zone="NetworkManager nmtui">
420 <primary sortas="b-nmtui">nmtui</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="nmtui-connect">
426 <term><command>nmtui-connect</command></term>
427 <listitem>
428 <para>
429 is an interactive ncurses based interface connection to
430 activate/deactivate connections.
431 </para>
432 <indexterm zone="NetworkManager nmtui-connect">
433 <primary sortas="b-nmtui-connect">nmtui-connect</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="nmtui-edit">
439 <term><command>nmtui-edit</command></term>
440 <listitem>
441 <para>
442 is an interactive ncurses based interface connection editor.
443 </para>
444 <indexterm zone="NetworkManager nmtui-edit">
445 <primary sortas="b-nmtui-edit">nmtui-edit</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
449
450 <varlistentry id="nmtui-hostname">
451 <term><command>nmtui-hostname</command></term>
452 <listitem>
453 <para>
454 is an interactive ncurses based interface hostname editor.
455 </para>
456 <indexterm zone="NetworkManager nmtui-hostname">
457 <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="NetworkManager-prog">
463 <term><command>NetworkManager</command></term>
464 <listitem>
465 <para>
466 is the network management daemon.
467 </para>
468 <indexterm zone="NetworkManager NetworkManager-prog">
469 <primary sortas="b-NetworkManager">NetworkManager</primary>
470 </indexterm>
471 </listitem>
472 </varlistentry>
473
474 <varlistentry id="libnm-glib">
475 <term><filename class="libraryfile">libnm-glib.so</filename></term>
476 <listitem>
477 <para>
478 contains functions used by <application>NetworkManager</application>.
479 </para>
480 <indexterm zone="NetworkManager libnm-glib">
481 <primary sortas="c-libnm-glib">libnm-glib.so</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="libnm-glib-vpn">
487 <term><filename class="libraryfile">libnm-glib-vpn.so</filename></term>
488 <listitem>
489 <para>
490 contains functions used by <application>NetworkManager</application>
491 VPN plugins.
492 </para>
493 <indexterm zone="NetworkManager libnm-glib-vpn">
494 <primary sortas="c-libnm-glib-vpn">libnm-glib-vpn.so</primary>
495 </indexterm>
496 </listitem>
497 </varlistentry>
498
499 <varlistentry id="libnm-util">
500 <term><filename class="libraryfile">libnm-util.so</filename></term>
501 <listitem>
502 <para>
503 contains functions used by <application>NetworkManager</application>
504 utils.
505 </para>
506 <indexterm zone="NetworkManager libnm-util">
507 <primary sortas="c-libnm-util">libnm-util.so</primary>
508 </indexterm>
509 </listitem>
510 </varlistentry>
511
512 </variablelist>
513
514 </sect2>
515
516</sect1>
Note: See TracBrowser for help on using the repository browser.