source: networking/netutils/networkmanager.xml@ 6f13fc0b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6f13fc0b was 6f13fc0b, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to network-manager-applet-1.4.0
Update to NetworkManager-1.4.0
Update to libksba-1.3.5
Update to gnupg-2.1.15
Update to dhcpcd-6.11.3
Lots of Tags

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

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