[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
|
---|
[b9f17a8] | 8 | "&gnome-download-http;/NetworkManager/1.20/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[0d7900a] | 9 | <!ENTITY NetworkManager-download-ftp
|
---|
[b9f17a8] | 10 | "&gnome-download-ftp;/NetworkManager/1.20/NetworkManager-&NetworkManager-version;.tar.xz">
|
---|
[69c33ed] | 11 | <!ENTITY NetworkManager-md5sum "eaebc22528c9320f5ba47dba2683d382">
|
---|
| 12 | <!ENTITY NetworkManager-size "4.4 MB">
|
---|
[12b10249] | 13 | <!ENTITY NetworkManager-buildsize "839 MB (with tests)">
|
---|
| 14 | <!ENTITY NetworkManager-time "0.9 SBU (with tests; both using parallelism=4)">
|
---|
[e33ddee] | 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>
|
---|
[28370fe] | 23 | </sect1info>
|
---|
[e33ddee] | 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 |
|
---|
[7ded7e3] | 34 | <para>
|
---|
| 35 | <application>NetworkManager</application> is a set of co-operative
|
---|
[e130fead] | 36 | tools that make networking simple and straightforward. Whether you use WiFi,
|
---|
[8df33ae3] | 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.
|
---|
[7ded7e3] | 41 | </para>
|
---|
[e33ddee] | 42 |
|
---|
[48bcac9] | 43 | &lfs90_checked;
|
---|
[e33ddee] | 44 |
|
---|
[cec6657e] | 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 |
|
---|
[e33ddee] | 53 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 54 | <itemizedlist spacing="compact">
|
---|
| 55 | <listitem>
|
---|
[7ded7e3] | 56 | <para>
|
---|
| 57 | Download (HTTP): <ulink url="&NetworkManager-download-http;"/>
|
---|
| 58 | </para>
|
---|
[e33ddee] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[7ded7e3] | 61 | <para>
|
---|
| 62 | Download (FTP): <ulink url="&NetworkManager-download-ftp;"/>
|
---|
| 63 | </para>
|
---|
[e33ddee] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[7ded7e3] | 66 | <para>
|
---|
| 67 | Download MD5 sum: &NetworkManager-md5sum;
|
---|
| 68 | </para>
|
---|
[e33ddee] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[7ded7e3] | 71 | <para>
|
---|
| 72 | Download size: &NetworkManager-size;
|
---|
| 73 | </para>
|
---|
[e33ddee] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[7ded7e3] | 76 | <para>
|
---|
| 77 | Estimated disk space required: &NetworkManager-buildsize;
|
---|
| 78 | </para>
|
---|
[e33ddee] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[7ded7e3] | 81 | <para>
|
---|
| 82 | Estimated build time: &NetworkManager-time;
|
---|
| 83 | </para>
|
---|
[e33ddee] | 84 | </listitem>
|
---|
| 85 | </itemizedlist>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect3">NetworkManager Dependencies</bridgehead>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d497e89] | 90 | <para role="required">
|
---|
[d267a13] | 91 | <xref linkend="dbus-glib"/> and
|
---|
| 92 | <xref linkend="libndp"/>
|
---|
[d497e89] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 96 | <para role="recommended">
|
---|
[c4ae27ab] | 97 | <xref linkend="curl"/>,
|
---|
[d497e89] | 98 | <xref linkend="dhcpcd"/> or
|
---|
[cac7f93] | 99 | <xref role="nodep" linkend="dhcp"/> (client only),
|
---|
[4b3c4b2] | 100 | <xref linkend="gobject-introspection"/>,
|
---|
[b7d1d2b] | 101 | <xref linkend="iptables"/>,
|
---|
[f759a25] | 102 | <xref linkend="jansson"/>,
|
---|
[696fed8] | 103 | <xref linkend="newt"/> (for <command>nmtui</command>),
|
---|
[d267a13] | 104 | <xref linkend="nss"/>,
|
---|
[6e1616e2] | 105 | <xref linkend="polkit"/>,
|
---|
[b528d0f4] | 106 | <xref linkend="pygobject3"/>,
|
---|
[51dfb3e] | 107 | <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
---|
[cec6657e] | 108 | <phrase revision="systemd"><xref linkend="systemd"/>,</phrase>
|
---|
[f3429309] | 109 | <xref linkend="upower"/>,
|
---|
[626bb04] | 110 | <xref linkend="vala"/>, and
|
---|
| 111 | <xref linkend="wpa_supplicant"/> (built with D-Bus support),
|
---|
[d497e89] | 112 | </para>
|
---|
[e33ddee] | 113 |
|
---|
[d0880dfa] | 114 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d497e89] | 115 | <para role="optional">
|
---|
[d4f4107] | 116 | <xref linkend="bluez"/>,
|
---|
[e64cabd] | 117 | <xref linkend="dbus-python"/> (for the test suite),
|
---|
[d267a13] | 118 | <xref linkend="gnutls"/> (used if <xref linkend="nss"/> is not found),
|
---|
[d497e89] | 119 | <xref linkend="gtk-doc"/>,
|
---|
[1ad3510e] | 120 | <xref linkend="libpsl"/>,
|
---|
[e4d2b8d] | 121 | <xref linkend="qt5"/> (for examples),
|
---|
[7d64567] | 122 | <xref linkend="ModemManager"/>,
|
---|
[acb3e9f] | 123 | <xref linkend="valgrind"/>,
|
---|
[f77c63d0] | 124 | <ulink url="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</ulink>,
|
---|
[262a108] | 125 | <ulink url="https://github.com/Distrotech/libaudit">libaudit</ulink>,
|
---|
[4f5369a] | 126 | <ulink url="https://github.com/jpirko/libteam">libteam</ulink>,
|
---|
[cec6657e] | 127 | <ulink url="https://www.samba.org/ftp/ppp/">PPP</ulink>, and
|
---|
[e130fead] | 128 | <ulink url="https://dianne.skoll.ca/projects/rp-pppoe/">RP-PPPoE</ulink>
|
---|
[d497e89] | 129 | </para>
|
---|
[d0880dfa] | 130 |
|
---|
[e33ddee] | 131 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 132 | <ulink url="&blfs-wiki;/NetworkManager"/>
|
---|
| 133 | </para>
|
---|
[e33ddee] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="installation">
|
---|
| 137 | <title>Installation of NetworkManager</title>
|
---|
| 138 |
|
---|
[e4d2b8d] | 139 | <para>If <xref linkend="qt5"/> is installed and the Qt based
|
---|
| 140 | examples are desired, fix the configure script:</para>
|
---|
| 141 |
|
---|
| 142 | <screen><userinput>sed -e '/Qt[CDN]/s/Qt/Qt5/g' \
|
---|
[e64cabd] | 143 | -e 's/-qt4/-qt5/' \
|
---|
[e4d2b8d] | 144 | -e 's/moc_location/host_bins/' \
|
---|
[d267a13] | 145 | -i examples/C/qt/meson.build</userinput></screen>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | Fix a missing meson.build file for initrd hooks (not used in BLFS):
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
| 151 | <screen><userinput>sed '/initrd/d' -i src/meson.build</userinput></screen>
|
---|
[e4d2b8d] | 152 |
|
---|
[fdbfe39] | 153 | <para>
|
---|
| 154 | Fix the python scripts so that they use <application>Python
|
---|
| 155 | 3</application>:
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
| 158 | <screen><userinput>grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'</userinput></screen>
|
---|
| 159 |
|
---|
[7ded7e3] | 160 | <para>
|
---|
[7c4f32b] | 161 | Install <application>NetworkManager</application> by running the
|
---|
| 162 | following commands:
|
---|
[7ded7e3] | 163 | </para>
|
---|
[e33ddee] | 164 |
|
---|
[d267a13] | 165 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[7d07abd] | 166 | cd build &&
|
---|
[d267a13] | 167 |
|
---|
| 168 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 169 | meson --prefix /usr \
|
---|
| 170 | --sysconfdir /etc \
|
---|
| 171 | --localstatedir /var \
|
---|
[39100371] | 172 | -Djson_validation=false \
|
---|
[d267a13] | 173 | -Dlibaudit=no \
|
---|
[39100371] | 174 | -Dlibpsl=false \
|
---|
| 175 | -Dnmtui=true \
|
---|
| 176 | -Dovs=false \
|
---|
| 177 | -Dppp=false \
|
---|
[d267a13] | 178 | -Dselinux=false \
|
---|
| 179 | -Dudev_dir=/lib/udev \
|
---|
[51dfb3e] | 180 | -Dsession_tracking=elogind \
|
---|
[39100371] | 181 | -Dmodem_manager=false \
|
---|
[d267a13] | 182 | -Dsystemdsystemunitdir=no \
|
---|
| 183 | -Dsystemd_journal=false \
|
---|
| 184 | -Dqt=false \
|
---|
| 185 | .. &&
|
---|
| 186 | ninja</userinput></screen>
|
---|
| 187 |
|
---|
| 188 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[7d07abd] | 189 | cd build &&
|
---|
[d267a13] | 190 |
|
---|
| 191 | CXXFLAGS+="-O2 -fPIC" \
|
---|
| 192 | meson --prefix /usr \
|
---|
| 193 | --sysconfdir /etc \
|
---|
| 194 | --localstatedir /var \
|
---|
[39100371] | 195 | -Djson_validation=false \
|
---|
[d267a13] | 196 | -Dlibaudit=no \
|
---|
[39100371] | 197 | -Dlibpsl=false \
|
---|
| 198 | -Dnmtui=true \
|
---|
| 199 | -Dovs=false \
|
---|
| 200 | -Dppp=false \
|
---|
[d267a13] | 201 | -Dselinux=false \
|
---|
| 202 | -Dqt=false \
|
---|
| 203 | -Dudev_dir=/lib/udev \
|
---|
| 204 | -Dsession_tracking=systemd \
|
---|
[39100371] | 205 | -Dmodem_manager=false \
|
---|
[d267a13] | 206 | -Dsystemdsystemunitdir=/lib/systemd/system \
|
---|
| 207 | .. &&
|
---|
| 208 | ninja</userinput></screen>
|
---|
[cec6657e] | 209 |
|
---|
[7ded7e3] | 210 | <para>
|
---|
[e64cabd] | 211 | An already active <phrase revision="sysv">graphical</phrase> session
|
---|
| 212 | with bus address is necessary to run the tests. To test the results,
|
---|
| 213 | issue: <command>ninja test</command>.
|
---|
[7ded7e3] | 214 | </para>
|
---|
[e33ddee] | 215 |
|
---|
[7ded7e3] | 216 | <para>
|
---|
| 217 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 218 | </para>
|
---|
[e33ddee] | 219 |
|
---|
[d267a13] | 220 | <screen role="root"><userinput>ninja install &&
|
---|
| 221 | mv -v /usr/share/doc/NetworkManager{,-&NetworkManager-version;}</userinput></screen>
|
---|
[e33ddee] | 222 |
|
---|
| 223 | </sect2>
|
---|
| 224 |
|
---|
| 225 | <sect2 role="commands">
|
---|
| 226 | <title>Command Explanations</title>
|
---|
| 227 |
|
---|
[e4d2b8d] | 228 | <para>
|
---|
| 229 | <envar>CXXFLAGS="-O2 -fPIC"</envar>: These compiler options are
|
---|
| 230 | necessary to build the Qt5 based examples.
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
[e64cabd] | 233 | <para>
|
---|
[fdbfe39] | 234 | <option>-Ddocs=true</option>: Use this switch to enable building
|
---|
[39100371] | 235 | man pages and documentation if <xref linkend="gtk-doc"/> is installed.
|
---|
[e64cabd] | 236 | </para>
|
---|
| 237 |
|
---|
[7ded7e3] | 238 | <para>
|
---|
[d267a13] | 239 | <parameter>-Dnmtui=true</parameter>: This parameter enables building
|
---|
[acb3e9f] | 240 | <command>nmtui</command>.
|
---|
| 241 | </para>
|
---|
| 242 |
|
---|
[d267a13] | 243 | <para revision="sysv">
|
---|
[51dfb3e] | 244 | <parameter>-Dsystemdsystemunitdir=no</parameter> and
|
---|
[d267a13] | 245 | <parameter>-Dsystemd_journal=false</parameter>: systemd is not
|
---|
| 246 | used for sysv init systems.
|
---|
| 247 | </para>
|
---|
| 248 |
|
---|
[39100371] | 249 | <para>
|
---|
| 250 | <parameter>-Djson_validation=false</parameter>,
|
---|
| 251 | <parameter>-Dlibpsl=false</parameter>, and
|
---|
[e130fead] | 252 | <parameter>-Dovs=false</parameter>: These switches disable building with the
|
---|
[39100371] | 253 | respective libraries. Remove if you have the needed libraries installed.
|
---|
| 254 | </para>
|
---|
[52c95143] | 255 |
|
---|
| 256 | <!--
|
---|
[39100371] | 257 | <para>
|
---|
[f759a25] | 258 | <parameter>-Dlibpsl=false</parameter>: This switch is required if
|
---|
| 259 | <application>libpsl</application> is not installed. Omit this switch if
|
---|
| 260 | you have built <application>libpsl</application>.
|
---|
| 261 | </para>
|
---|
[52c95143] | 262 | -->
|
---|
[f759a25] | 263 |
|
---|
| 264 | <para>
|
---|
[39100371] | 265 | <parameter>-Dmodem_manager=false</parameter>: This switch is requried if
|
---|
| 266 | <application>ModemManager</application> is not installed. Omit if you
|
---|
[e130fead] | 267 | have built <application>ModemManager</application>.
|
---|
[39100371] | 268 | </para>
|
---|
| 269 |
|
---|
[51dfb3e] | 270 | <para revision="sysv">
|
---|
| 271 | <parameter>-Dsession_tracking=elogind</parameter>: This switch
|
---|
| 272 | is used to set <command>elogind</command> as the default
|
---|
| 273 | program for session tracking.
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
[cec6657e] | 276 | <para revision="systemd">
|
---|
[d267a13] | 277 | <parameter>-Dsession_tracking=systemd</parameter>: This switch
|
---|
[cec6657e] | 278 | is used to set <command>systemd-logind</command> as the default
|
---|
| 279 | program for session tracking.
|
---|
| 280 | </para>
|
---|
| 281 |
|
---|
| 282 | <para revision="systemd">
|
---|
[d267a13] | 283 | <parameter>-Dsystemdsystemunitdir=/lib/systemd/system</parameter>:
|
---|
[cec6657e] | 284 | This switch is used to set the correct installation directory for
|
---|
| 285 | systemd units.
|
---|
| 286 | </para>
|
---|
| 287 |
|
---|
[acb3e9f] | 288 | <para>
|
---|
[d267a13] | 289 | <parameter>-Dppp=false</parameter>: This parameter disables
|
---|
[6e1616e2] | 290 | <application>PPP</application> support in
|
---|
| 291 | <application>NetworkManager</application>.
|
---|
[7ded7e3] | 292 | </para>
|
---|
[e33ddee] | 293 |
|
---|
[8c7390c] | 294 | <para>
|
---|
[d267a13] | 295 | <parameter>-Dlibaudit=no</parameter> and
|
---|
| 296 | <parameter>-Dselinux=false</parameter>: libaudit and SELinux are not used
|
---|
| 297 | in BLFS.
|
---|
[d6e164b] | 298 | </para>
|
---|
[e33ddee] | 299 |
|
---|
[b528d0f4] | 300 | <para>
|
---|
[d267a13] | 301 | <parameter>-Dqt=false</parameter>: disables the
|
---|
| 302 | <application>QT</application> examples. Omit if you have
|
---|
| 303 | <application>QT</application> available and wish to install the examples.
|
---|
[b528d0f4] | 304 | </para>
|
---|
| 305 |
|
---|
[e33ddee] | 306 | </sect2>
|
---|
| 307 |
|
---|
[d497e89] | 308 | <sect2 role="configuration">
|
---|
| 309 | <title>Configuring NetworkManager</title>
|
---|
| 310 |
|
---|
| 311 | <sect3 id="NetworkManager-config">
|
---|
| 312 | <title>Config Files</title>
|
---|
| 313 | <para>
|
---|
| 314 | <filename>/etc/NetworkManager/NetworkManager.conf</filename>
|
---|
| 315 | </para>
|
---|
| 316 |
|
---|
| 317 | <indexterm zone="NetworkManager NetworkManager-config">
|
---|
| 318 | <primary
|
---|
| 319 | sortas="e-etc-NetworkManager-NetworkManager.conf">
|
---|
| 320 | /etc/NetworkManager/NetworkManager.conf</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 |
|
---|
| 323 | </sect3>
|
---|
| 324 |
|
---|
| 325 | <sect3><title>Configuration Information</title>
|
---|
| 326 |
|
---|
| 327 | <para>
|
---|
| 328 | For <application>NetworkManager</application> to work, at least
|
---|
[8df33ae3] | 329 | a minimal configuration file must be present. Such file is not
|
---|
| 330 | installed with <command>make install</command>. Issue the following
|
---|
| 331 | command as the <systemitem class="username">root</systemitem> user to
|
---|
| 332 | create minimal <filename>NetworkManager.conf</filename> file:
|
---|
[d497e89] | 333 | </para>
|
---|
| 334 |
|
---|
| 335 | <screen role="root"><userinput>cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
|
---|
| 336 | <literal>[main]
|
---|
| 337 | plugins=keyfile</literal>
|
---|
| 338 | EOF</userinput></screen>
|
---|
| 339 |
|
---|
| 340 | <para>
|
---|
[7fd06b0] | 341 | This file should not be modified directly by users of the system.
|
---|
| 342 | Instead, system specific changes should be made using configuration
|
---|
| 343 | files in the
|
---|
| 344 | <filename class="directory">/etc/NetworkManager/conf.d</filename>
|
---|
| 345 | direcotry.
|
---|
| 346 | </para>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
| 349 | To allow polkit to manage authorizations, add the following
|
---|
| 350 | configuration file:
|
---|
| 351 | </para>
|
---|
| 352 |
|
---|
| 353 | <screen role="root"><userinput>cat > /etc/NetworkManager/conf.d/polkit.conf << "EOF"
|
---|
| 354 | <literal>[main]
|
---|
| 355 | auth-polkit=true</literal>
|
---|
| 356 | EOF</userinput></screen>
|
---|
| 357 |
|
---|
| 358 | <para>
|
---|
| 359 | To use something other than the built-in dhcp client (recommended if
|
---|
| 360 | using only <command>nmcli</command>), use the following configuration
|
---|
| 361 | (valid values are dhclient, dhcpcd, and internal):
|
---|
| 362 | </para>
|
---|
| 363 |
|
---|
| 364 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/dhcp.conf << "EOF"
|
---|
| 365 | <literal>[main]
|
---|
| 366 | dhcp=</literal><replaceable>dhclient</replaceable>
|
---|
| 367 | EOF</userinput></screen>
|
---|
| 368 |
|
---|
| 369 | <para>
|
---|
| 370 | To prevent <application>NetworkManager</application> from updating the
|
---|
| 371 | <filename>/etc/resolv.conf</filename> file, add the following
|
---|
| 372 | configuration file:
|
---|
| 373 | </para>
|
---|
| 374 |
|
---|
| 375 | <screen role="nodump"><userinput>cat > /etc/NetworkManager/conf.d/no-dns-update.conf << "EOF"
|
---|
| 376 | <literal>[main]
|
---|
| 377 | dns=none</literal>
|
---|
| 378 | EOF</userinput></screen>
|
---|
| 379 |
|
---|
| 380 | <para>
|
---|
| 381 | For additional configuation options, see
|
---|
| 382 | <command>man 5 NetworkManager.conf</command>.
|
---|
[0d7900a] | 383 | </para>
|
---|
[d497e89] | 384 |
|
---|
[8df33ae3] | 385 | <para>
|
---|
| 386 | To allow regular users permission to configure network connections,
|
---|
| 387 | you should add them to the
|
---|
| 388 | <systemitem class="groupname">netdev</systemitem>
|
---|
| 389 | group, and create a <application>polkit</application> rule that grants
|
---|
| 390 | access. Run the following commands as the
|
---|
| 391 | <systemitem class="username">root</systemitem> user:
|
---|
| 392 | </para>
|
---|
| 393 |
|
---|
[a581662] | 394 | <screen role="root"><userinput>groupadd -fg 86 netdev &&
|
---|
[b88584a] | 395 | /usr/sbin/usermod -a -G netdev <replaceable><username></replaceable>
|
---|
[8df33ae3] | 396 |
|
---|
| 397 | cat > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules << "EOF"
|
---|
| 398 | <literal>polkit.addRule(function(action, subject) {
|
---|
| 399 | if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
|
---|
| 400 | return polkit.Result.YES;
|
---|
| 401 | }
|
---|
| 402 | });</literal>
|
---|
| 403 | EOF</userinput></screen>
|
---|
| 404 |
|
---|
[d497e89] | 405 | </sect3>
|
---|
| 406 |
|
---|
| 407 | <sect3 id="NetworkManager-init">
|
---|
[cec6657e] | 408 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 409 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 410 |
|
---|
| 411 | <para revision="sysv">
|
---|
| 412 | To automatically start the <command>NetworkManager</command> daemon
|
---|
| 413 | when the system is rebooted, install the
|
---|
| 414 | <filename>/etc/rc.d/init.d/networkmanager</filename>bootscript from the
|
---|
| 415 | <xref linkend="bootscripts"/> package.
|
---|
| 416 | </para>
|
---|
[d497e89] | 417 |
|
---|
[cec6657e] | 418 | <para revision="systemd">
|
---|
| 419 | To start the <command>NetworkManager</command> daemon at boot, enable
|
---|
| 420 | the previously installed systemd unit by running the following command
|
---|
| 421 | as the <systemitem class="username">root</systemitem> user:
|
---|
[d497e89] | 422 | </para>
|
---|
| 423 |
|
---|
[8df33ae3] | 424 | <note>
|
---|
| 425 | <para>
|
---|
| 426 | If using <application>Network Manager</application> to manage
|
---|
| 427 | an interface, any previous configuration for that interface should be
|
---|
| 428 | removed, and the interface brought down prior to starting
|
---|
| 429 | <application>Network Manager</application>.
|
---|
| 430 | </para>
|
---|
| 431 | </note>
|
---|
| 432 |
|
---|
[d497e89] | 433 | <indexterm zone="NetworkManager NetworkManager-init">
|
---|
| 434 | <primary sortas="f-NetworkManager">NetworkManager</primary>
|
---|
| 435 | </indexterm>
|
---|
| 436 |
|
---|
[cec6657e] | 437 | <screen role="root" revision="sysv"><userinput>make install-networkmanager</userinput></screen>
|
---|
| 438 |
|
---|
| 439 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager</userinput></screen>
|
---|
[e2a1442] | 440 | <!-- The below instruction is obsolete. NetworkManager-wait-online is now
|
---|
| 441 | enabled by default when enabling NetworkManager. -->
|
---|
| 442 | <!--
|
---|
[cec6657e] | 443 | <para revision="systemd">
|
---|
| 444 | <application>NetworkManager</application> also ships a systemd unit
|
---|
| 445 | called <filename>NetworkManager-wait-online.service</filename> which
|
---|
| 446 | can be used to prevent services that require network connectivity
|
---|
| 447 | from starting until <application>NetworkManager</application> has
|
---|
| 448 | established the connection. To enable it, run the following command
|
---|
| 449 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 450 | </para>
|
---|
| 451 |
|
---|
| 452 | <screen role="root" revision="systemd"><userinput>systemctl enable NetworkManager-wait-online</userinput></screen>
|
---|
[e2a1442] | 453 | -->
|
---|
| 454 | <!-- As such, let's now provide instructions on how to disable that
|
---|
| 455 | behavior, for those who wish to do so. -->
|
---|
| 456 | <para revision="systemd">
|
---|
| 457 | Starting in version 1.11.2 of <application>NetworkManager</application>,
|
---|
| 458 | a systemd unit named <filename>NetworkManager-wait-online.service</filename>
|
---|
| 459 | is enabled, which is used to prevent services that require network
|
---|
| 460 | connectivity from starting until <application>NetworkManager</application>
|
---|
| 461 | establishes a connection. To disable this behavior, run the following
|
---|
| 462 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 463 | </para>
|
---|
| 464 |
|
---|
| 465 | <screen role="root" revision="systemd"><userinput>systemctl disable NetworkManager-wait-online</userinput></screen>
|
---|
[2cd1071] | 466 |
|
---|
[d497e89] | 467 | </sect3>
|
---|
| 468 |
|
---|
| 469 | </sect2>
|
---|
| 470 |
|
---|
[e33ddee] | 471 | <sect2 role="content">
|
---|
| 472 | <title>Contents</title>
|
---|
| 473 |
|
---|
| 474 | <segmentedlist>
|
---|
| 475 | <segtitle>Installed Programs</segtitle>
|
---|
| 476 | <segtitle>Installed Libraries</segtitle>
|
---|
| 477 | <segtitle>Installed Directories</segtitle>
|
---|
| 478 |
|
---|
| 479 | <seglistitem>
|
---|
[d497e89] | 480 | <seg>
|
---|
[8c7390c] | 481 | NetworkManager, nmcli, nm-online, nmtui, and, symlinked to nmtui:
|
---|
| 482 | nmtui-connect, nmtui-edit, and nmtui-hostname
|
---|
[d497e89] | 483 | </seg>
|
---|
| 484 | <seg>
|
---|
[b9f17a8] | 485 | libnm.so
|
---|
[52c95143] | 486 | and several modules under /usr/lib/NetworkManager
|
---|
[d497e89] | 487 | </seg>
|
---|
| 488 | <seg>
|
---|
[5aa7dce] | 489 | /etc/NetworkManager,
|
---|
[b9f17a8] | 490 | /usr/include/NetworkManager,
|
---|
[5aa7dce] | 491 | /usr/lib/NetworkManager,
|
---|
| 492 | /usr/share/doc/NetworkManager-&NetworkManager-version;,
|
---|
[b9f17a8] | 493 | /usr/share/gtk-doc/html/{libnm,NetworkManager}
|
---|
| 494 | (if the documentation is built),
|
---|
[5aa7dce] | 495 | and
|
---|
[262a108] | 496 | /var/lib/NetworkManager
|
---|
[d497e89] | 497 | </seg>
|
---|
[52c95143] | 498 | <!-- A lot of libraries were removed here. We should verify compatibilty.
|
---|
| 499 | RESTORED AT 1.18.2 -renodr -->
|
---|
[e33ddee] | 500 | </seglistitem>
|
---|
| 501 | </segmentedlist>
|
---|
| 502 |
|
---|
| 503 | <variablelist>
|
---|
| 504 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 505 | <?dbfo list-presentation="list"?>
|
---|
| 506 | <?dbhtml list-presentation="table"?>
|
---|
| 507 |
|
---|
[d497e89] | 508 | <varlistentry id="nmcli">
|
---|
| 509 | <term><command>nmcli</command></term>
|
---|
[e33ddee] | 510 | <listitem>
|
---|
[7ded7e3] | 511 | <para>
|
---|
| 512 | is a command-line tool for controlling
|
---|
[0d7900a] | 513 | <application>NetworkManager</application>
|
---|
[7ded7e3] | 514 | and getting its status.
|
---|
| 515 | </para>
|
---|
[d497e89] | 516 | <indexterm zone="NetworkManager nmcli">
|
---|
| 517 | <primary sortas="b-nmcli">nmcli</primary>
|
---|
[e33ddee] | 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
| 522 | <varlistentry id="nm-online">
|
---|
| 523 | <term><command>nm-online</command></term>
|
---|
| 524 | <listitem>
|
---|
[7ded7e3] | 525 | <para>
|
---|
| 526 | is a utility to find out whether you are online.
|
---|
| 527 | </para>
|
---|
[e33ddee] | 528 | <indexterm zone="NetworkManager nm-online">
|
---|
| 529 | <primary sortas="b-nm-online">nm-online</primary>
|
---|
| 530 | </indexterm>
|
---|
| 531 | </listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
[acb3e9f] | 534 | <varlistentry id="nmtui">
|
---|
| 535 | <term><command>nmtui</command></term>
|
---|
| 536 | <listitem>
|
---|
| 537 | <para>
|
---|
[939653d] | 538 | is an interactive ncurses based interface for
|
---|
[acb3e9f] | 539 | <application>nmcli</application>.
|
---|
| 540 | </para>
|
---|
| 541 | <indexterm zone="NetworkManager nmtui">
|
---|
| 542 | <primary sortas="b-nmtui">nmtui</primary>
|
---|
| 543 | </indexterm>
|
---|
| 544 | </listitem>
|
---|
| 545 | </varlistentry>
|
---|
| 546 |
|
---|
| 547 | <varlistentry id="nmtui-connect">
|
---|
| 548 | <term><command>nmtui-connect</command></term>
|
---|
| 549 | <listitem>
|
---|
| 550 | <para>
|
---|
[939653d] | 551 | is an interactive ncurses based interface connection to
|
---|
| 552 | activate/deactivate connections.
|
---|
[acb3e9f] | 553 | </para>
|
---|
| 554 | <indexterm zone="NetworkManager nmtui-connect">
|
---|
| 555 | <primary sortas="b-nmtui-connect">nmtui-connect</primary>
|
---|
| 556 | </indexterm>
|
---|
| 557 | </listitem>
|
---|
| 558 | </varlistentry>
|
---|
| 559 |
|
---|
| 560 | <varlistentry id="nmtui-edit">
|
---|
| 561 | <term><command>nmtui-edit</command></term>
|
---|
| 562 | <listitem>
|
---|
| 563 | <para>
|
---|
[939653d] | 564 | is an interactive ncurses based interface connection editor.
|
---|
[acb3e9f] | 565 | </para>
|
---|
| 566 | <indexterm zone="NetworkManager nmtui-edit">
|
---|
| 567 | <primary sortas="b-nmtui-edit">nmtui-edit</primary>
|
---|
| 568 | </indexterm>
|
---|
| 569 | </listitem>
|
---|
| 570 | </varlistentry>
|
---|
| 571 |
|
---|
| 572 | <varlistentry id="nmtui-hostname">
|
---|
| 573 | <term><command>nmtui-hostname</command></term>
|
---|
[e33ddee] | 574 | <listitem>
|
---|
[7ded7e3] | 575 | <para>
|
---|
[939653d] | 576 | is an interactive ncurses based interface hostname editor.
|
---|
[7ded7e3] | 577 | </para>
|
---|
[acb3e9f] | 578 | <indexterm zone="NetworkManager nmtui-hostname">
|
---|
| 579 | <primary sortas="b-nmtui-hostname">nmtui-hostname</primary>
|
---|
[e33ddee] | 580 | </indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
[d497e89] | 584 | <varlistentry id="NetworkManager-prog">
|
---|
| 585 | <term><command>NetworkManager</command></term>
|
---|
[e33ddee] | 586 | <listitem>
|
---|
[7ded7e3] | 587 | <para>
|
---|
| 588 | is the network management daemon.
|
---|
| 589 | </para>
|
---|
[d497e89] | 590 | <indexterm zone="NetworkManager NetworkManager-prog">
|
---|
[7ded7e3] | 591 | <primary sortas="b-NetworkManager">NetworkManager</primary>
|
---|
[e33ddee] | 592 | </indexterm>
|
---|
| 593 | </listitem>
|
---|
| 594 | </varlistentry>
|
---|
| 595 |
|
---|
[262a108] | 596 | <varlistentry id="libnm">
|
---|
| 597 | <term><filename class="libraryfile">libnm.so</filename></term>
|
---|
[e33ddee] | 598 | <listitem>
|
---|
[7ded7e3] | 599 | <para>
|
---|
| 600 | contains functions used by <application>NetworkManager</application>.
|
---|
| 601 | </para>
|
---|
[262a108] | 602 | <indexterm zone="NetworkManager libnm">
|
---|
| 603 | <primary sortas="c-libnm">libnm.so</primary>
|
---|
[e33ddee] | 604 | </indexterm>
|
---|
| 605 | </listitem>
|
---|
| 606 | </varlistentry>
|
---|
| 607 | </variablelist>
|
---|
| 608 |
|
---|
| 609 | </sect2>
|
---|
| 610 |
|
---|
| 611 | </sect1>
|
---|