source: networking/netprogs/wpa_supplicant.xml@ 1895c552

11.1 11.2 11.3 12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1895c552 was 2af0b32f, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Fix patch list in wpa_supplicant

Each patches should be in a separate listitem, so that
there is a mark in front of each. And jhalfs expects that too.

  • Property mode set to 100644
File size: 22.7 KB
RevLine 
[a130a69]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 wpa_supplicant-download-http
[8dfc5c3]8 "https://w1.fi/releases/wpa_supplicant-&wpa_supplicant-version;.tar.gz">
[4c869cdd]9 <!ENTITY wpa_supplicant-download-ftp " ">
[30bce567]10 <!ENTITY wpa_supplicant-md5sum "2d2958c782576dc9901092fbfecb4190">
11 <!ENTITY wpa_supplicant-size "3.1 MB">
12 <!ENTITY wpa_supplicant-buildsize "35 MB">
[09cbfce]13 <!ENTITY wpa_supplicant-time "0.5 SBU (with optional gui)">
[a130a69]14]>
15
16<sect1 id="wpa_supplicant" xreflabel="wpa_supplicant-&wpa_supplicant-version;">
17 <?dbhtml filename="wpa_supplicant.html"?>
18
19 <sect1info>
[34a2d053]20 <date>$Date$</date>
[a130a69]21 </sect1info>
22
23 <title>wpa_supplicant-&wpa_supplicant-version;</title>
24
25 <indexterm zone="wpa_supplicant">
26 <primary sortas="a-wpa_supplicant">wpa_supplicant</primary>
27 </indexterm>
28
29 <sect2 role="package">
[4c869cdd]30 <title>Introduction to WPA Supplicant</title>
31
32 <para>
33 <application>WPA Supplicant</application> is a Wi-Fi Protected Access
34 (WPA) client and IEEE 802.1X supplicant. It implements WPA key negotiation
35 with a WPA Authenticator and Extensible Authentication Protocol (EAP)
36 authentication with an Authentication Server. In addition, it controls the
37 roaming and IEEE 802.11 authentication/association of the wireless LAN
38 driver. This is useful for connecting to a password protected wireless
39 access point.
40 </para>
[a130a69]41
[cdf6da3]42 &lfs110a_checked;
[5603a81]43
[a130a69]44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
[4c869cdd]47 <para>
48 Download (HTTP): <ulink url="&wpa_supplicant-download-http;"/>
49 </para>
[a130a69]50 </listitem>
51 <listitem>
[4c869cdd]52 <para>
53 Download (FTP): <ulink url="&wpa_supplicant-download-ftp;"/>
54 </para>
[a130a69]55 </listitem>
56 <listitem>
[4c869cdd]57 <para>
58 Download MD5 sum: &wpa_supplicant-md5sum;
59 </para>
[a130a69]60 </listitem>
61 <listitem>
[4c869cdd]62 <para>
63 Download size: &wpa_supplicant-size;
64 </para>
[a130a69]65 </listitem>
66 <listitem>
[4c869cdd]67 <para>
68 Estimated disk space required: &wpa_supplicant-buildsize;
69 </para>
[a130a69]70 </listitem>
71 <listitem>
[4c869cdd]72 <para>
73 Estimated build time: &wpa_supplicant-time;
74 </para>
[a130a69]75 </listitem>
76 </itemizedlist>
[7b4961f]77
[f96deed]78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Required patch:
[7b4961f]83 <ulink url="&patch-root;/wpa_supplicant-&wpa_supplicant-version;-security_fixes-1.patch"/>
[f96deed]84 </para>
[2af0b32f]85 </listitem>
86 <listitem>
[3e6dece]87 <para>
88 Required patch:
89 <ulink url="&patch-root;/wpa_supplicant-&wpa_supplicant-version;-openssl3-1.patch"/>
90 </para>
[f96deed]91 </listitem>
92 </itemizedlist>
[7b4961f]93
[4c869cdd]94 <bridgehead renderas="sect3">WPA Supplicant Dependencies</bridgehead>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
[4584c7b]98 <xref linkend="desktop-file-utils"/> (for running
99 <command>update-desktop-database</command>) and
100 <xref linkend="libnl"/>
[4c869cdd]101 </para>
[a130a69]102
103 <bridgehead renderas="sect4">Optional</bridgehead>
[26c1bdd]104 <para role="optional">
[cea7f479]105 <phrase revision="sysv"><xref linkend="dbus"/>,</phrase>
[54666831]106 <xref linkend="libxml2"/>, and
[eb3dbe3]107 <xref linkend="qt5"/>
[26c1bdd]108 </para>
[a130a69]109
110 <para condition="html" role="usernotes">User Notes:
[4c869cdd]111 <ulink url="&blfs-wiki;/wpa_supplicant"/>
112 </para>
[8fa167c]113
[a130a69]114 </sect2>
115
116 <sect2 role="kernel" id="wpa_supplicant-kernel">
117 <title>Kernel Configuration</title>
118
[4c869cdd]119 <para>
[8fa167c]120 Enable the following options in the kernel configuration as well as
121 specific device drivers for your hardware and recompile the kernel if
122 necessary:
[4c869cdd]123 </para>
[a130a69]124
[196d393]125<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
126 [*] Wireless ---&gt; [CONFIG_WIRELESS]
127 &lt;*/M&gt; cfg80211 - wireless configuration API [CONFIG_CFG80211]
128 [*] cfg80211 wireless extensions compatibility [CONFIG_CFG80211_WEXT]
129 &lt;*/M&gt; Generic IEEE 802.11 Networking Stack (mac80211) [CONFIG_MAC80211]
130Device Drivers ---&gt;
131 [*] Network device support ---&gt; [CONFIG_NETDEVICES]
132 [*] Wireless LAN ---&gt; [CONFIG_WLAN]</literal></screen>
[a130a69]133
[4c869cdd]134 <para>
[196d393]135 Open the submenu and select the options that support your hardware:
[0d7900a]136 <command>lspci</command> from <xref linkend="pciutils"/> can be used to
[4c869cdd]137 view your hardware configuration.
138 </para>
[a130a69]139
140 <indexterm zone="wpa_supplicant wpa_supplicant-kernel">
141 <primary sortas="d-wpa_supplicant">wpa_supplicant</primary>
142 </indexterm>
143 </sect2>
144
145 <sect2 role="installation">
[4c869cdd]146 <title>Installation of WPA Supplicant</title>
147
148 <para>
149 First you will need to create an initial configuration file for the
150 build process. You can read <filename>wpa_supplicant/README</filename>
151 and <filename>wpa_supplicant/defconfig</filename> for the explanation
152 of the following options as well as other options that can be used.
153 Create a build configuration file that should work for standard WiFi
154 setups by running the following command:
155 </para>
[a130a69]156
[4c869cdd]157<screen><userinput>cat &gt; wpa_supplicant/.config &lt;&lt; "EOF"
[8fa167c]158<literal>CONFIG_BACKEND=file
[4c869cdd]159CONFIG_CTRL_IFACE=y
[8cce479c]160CONFIG_DEBUG_FILE=y
161CONFIG_DEBUG_SYSLOG=y
162CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
[4c869cdd]163CONFIG_DRIVER_NL80211=y
[a130a69]164CONFIG_DRIVER_WEXT=y
[4c869cdd]165CONFIG_DRIVER_WIRED=y
[a130a69]166CONFIG_EAP_GTC=y
167CONFIG_EAP_LEAP=y
168CONFIG_EAP_MD5=y
169CONFIG_EAP_MSCHAPV2=y
170CONFIG_EAP_OTP=y
171CONFIG_EAP_PEAP=y
172CONFIG_EAP_TLS=y
173CONFIG_EAP_TTLS=y
[4c869cdd]174CONFIG_IEEE8021X_EAPOL=y
175CONFIG_IPV6=y
176CONFIG_LIBNL32=y
[a130a69]177CONFIG_PEERKEY=y
178CONFIG_PKCS12=y
179CONFIG_READLINE=y
[4c869cdd]180CONFIG_SMARTCARD=y
181CONFIG_WPS=y
[8fa167c]182CFLAGS += -I/usr/include/libnl3</literal>
[4c869cdd]183EOF</userinput></screen>
184
185 <para>
186 If you wish to use <application>WPA Supplicant</application> with
187 <xref linkend="NetworkManager"/>, make sure that you have installed
[54666831]188 <xref linkend="dbus"/> and <xref linkend="libxml2"/>, then add the
[4c869cdd]189 following options to the <application>WPA Supplicant</application>
190 build configuration file by running the following command:
191 </para>
[26c1bdd]192
[4c869cdd]193<screen><userinput>cat &gt;&gt; wpa_supplicant/.config &lt;&lt; "EOF"
[8fa167c]194<literal>CONFIG_CTRL_IFACE_DBUS=y
[4c869cdd]195CONFIG_CTRL_IFACE_DBUS_NEW=y
[8fa167c]196CONFIG_CTRL_IFACE_DBUS_INTRO=y</literal>
[4c869cdd]197EOF</userinput></screen>
[a130a69]198
[7b4961f]199 <para>
200 Next, apply a patch that fixes several security vulnerabilities:
201 </para>
202
203<screen><userinput remap="pre">patch -Np1 -i ../wpa_supplicant-&wpa_supplicant-version;-security_fixes-1.patch</userinput></screen>
204
[3e6dece]205 <para>
206 Next, fix several runtime issues with OpenSSL-3:
207 </para>
208
209<screen><userinput remap="pre">patch -Np1 -i ../wpa_supplicant-&wpa_supplicant-version;-openssl3-1.patch</userinput></screen>
210
[4c869cdd]211 <para>
212 Install <application>WPA Supplicant</application> by running the
213 following commands:
214 </para>
[a130a69]215
[abf53e1]216<screen><userinput>cd wpa_supplicant &amp;&amp;
[ef044424]217make BINDIR=/usr/sbin LIBDIR=/usr/lib</userinput></screen>
[a130a69]218
[8cce479c]219 <para>
[eb3dbe3]220 If you have installed <xref linkend="qt5"/> and wish to build
[2946338a]221 the <application>WPA Supplicant</application> GUI program, run
[8cce479c]222 the following commands:
223 </para>
224
[b51fe6e]225 <note>
226 <para>
[8558044]227 The following directory name is labelled qt4, but
[b51fe6e]228 is compatible with <xref linkend="qt5"/>.
229 </para>
230 </note>
[eb3dbe3]231
[8cce479c]232<screen><userinput>pushd wpa_gui-qt4 &amp;&amp;
233qmake wpa_gui.pro &amp;&amp;
234make &amp;&amp;
235popd</userinput></screen>
236
[4c869cdd]237 <para>
238 This package does not come with a test suite.
239 </para>
[a130a69]240
[4c869cdd]241 <para>
[2946338a]242 Now, as the <systemitem class="username">root</systemitem> user:
[4c869cdd]243 </para>
[a130a69]244
[d8d42fa]245<screen role="root"><userinput>install -v -m755 wpa_{cli,passphrase,supplicant} /usr/sbin/ &amp;&amp;
[97a30d62]246install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5/ &amp;&amp;
247install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8/</userinput></screen>
[a130a69]248
[7b478500]249 <para revision="systemd">
250 Install the <application>systemd</application> support files by
251 running the following command as the <systemitem
252 class="username">root</systemitem> user:
253 </para>
254
[0884fe0]255<screen role="root" revision="systemd"><userinput>install -v -m644 systemd/*.service /usr/lib/systemd/system/</userinput></screen>
[7b478500]256
[4c869cdd]257 <para>
258 If you have built <application>WPA Supplicant</application> with
259 <application>D-Bus</application> support, you will need to install
260 <application>D-Bus</application> configuration files. Install them
261 by running the following commands as the
262 <systemitem class="username">root</systemitem> user:
263 </para>
[a130a69]264
[66b1ff0]265<screen role="root"><userinput>install -v -m644 dbus/fi.w1.wpa_supplicant1.service \
[97a30d62]266 /usr/share/dbus-1/system-services/ &amp;&amp;
[83394f2]267install -v -d -m755 /etc/dbus-1/system.d &amp;&amp;
[2946338a]268install -v -m644 dbus/dbus-wpa_supplicant.conf \
269 /etc/dbus-1/system.d/wpa_supplicant.conf</userinput></screen>
[a130a69]270
[7b478500]271 <para revision="systemd">
272 Additionally, enable the <filename>wpa_supplicant.service</filename>
273 so that <application>systemd</application> can properly activate the
[8558044]274 <application>D-Bus</application> service. Note that the
275 per-connection service and the D-Bus service cannot be enabled
[7b478500]276 at the same time. Run the following command as the
277 <systemitem class="username">root</systemitem> user:
278 </para>
279
280<screen role="root" revision="systemd"><userinput>systemctl enable wpa_supplicant</userinput></screen>
281
[8cce479c]282 <para>
[2946338a]283 If you have built the <application>WPA Supplicant</application> GUI
[8cce479c]284 program, install it by running the following commands as the
285 <systemitem class="username">root</systemitem> user:
286 </para>
287
[97a30d62]288<screen role="root"><userinput>install -v -m755 wpa_gui-qt4/wpa_gui /usr/bin/ &amp;&amp;
289install -v -m644 doc/docbook/wpa_gui.8 /usr/share/man/man8/ &amp;&amp;
290install -v -m644 wpa_gui-qt4/wpa_gui.desktop /usr/share/applications/ &amp;&amp;
[2946338a]291install -v -m644 wpa_gui-qt4/icons/wpa_gui.svg /usr/share/pixmaps/</userinput></screen>
[8cce479c]292
[4c869cdd]293 <note>
294 <para>
[2946338a]295 You will need to restart the system <application>D-Bus</application> daemon
296 before you can use the <application>WPA Supplicant</application>
[325113f8]297 <application>D-Bus</application> interface.
[4c869cdd]298 </para>
299 </note>
[a130a69]300
[2946338a]301 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
302 href="../../xincludes/update-desktop-database.xml"/>
[97a30d62]303
[a130a69]304 </sect2>
305
306 <sect2 role="configuration">
307 <title>Configuring wpa_supplicant</title>
308
309 <sect3 id="wpa_supplicant-config">
310 <title>Config File</title>
[97a30d62]311
[7b478500]312 <para revision="sysv">
[97a30d62]313 <filename>/etc/sysconfig/wpa_supplicant-*.conf</filename>
314 </para>
[a130a69]315
[7b478500]316 <para revision="systemd">
317 <filename>/etc/wpa_supplicant/wpa_supplicant-*.conf</filename>
318 </para>
319
320 <indexterm zone="wpa_supplicant wpa_supplicant-config" revision="sysv">
[a130a69]321 <primary
[97a30d62]322 sortas="e-etc-sysconfig-wpa_supplicant-star.conf">/etc/sysconfig/wpa_supplicant-*.conf</primary>
[a130a69]323 </indexterm>
[97a30d62]324
[7b478500]325 <indexterm zone="wpa_supplicant wpa_supplicant-config" revision="systemd">
326 <primary
327 sortas="e-etc-wpa_supplicant-wpa_supplicant-star.conf">/etc/wpa_supplicant/wpa_supplicant-*.conf</primary>
328 </indexterm>
329
[a130a69]330 </sect3>
331
332 <sect3>
333 <title>Configuration Information</title>
334
[4c869cdd]335 <para>
[2946338a]336 To connect to an access point that uses a password, you need to put
[7b478500]337 the pre-shared key in
[b51fe6e]338 <phrase revision="sysv">
339 <filename>
[7c56ece]340 /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
[b51fe6e]341 </phrase>
342 <phrase revision="systemd">
343 <filename>
[7c56ece]344 /etc/wpa_supplicant/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
[b51fe6e]345 </phrase>
[97a30d62]346 SSID is the string that the access point/router transmits to
347 identify itself. Run the following command as the
[4c869cdd]348 <systemitem class="username">root</systemitem> user:
349 </para>
[a130a69]350
[b51fe6e]351<screen role="nodump" revision="sysv"><userinput>wpa_passphrase <replaceable>SSID</replaceable> <replaceable>SECRET_PASSWORD</replaceable> &gt; /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</userinput></screen>
[7b478500]352
[b51fe6e]353<screen role="nodump" revision="systemd"><userinput>install -v -dm755 /etc/wpa_supplicant &amp;&amp;
[7b478500]354wpa_passphrase <replaceable>SSID</replaceable> <replaceable>SECRET_PASSWORD</replaceable> &gt; /etc/wpa_supplicant/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</userinput></screen>
[a130a69]355
[4c869cdd]356 <para>
[b51fe6e]357 <phrase revision="sysv">
358 <filename>
359 /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf
360 </filename>
361 </phrase>
362 <phrase revision="systemd">
363 <filename>
364 /etc/wpa_supplicant/wpa_supplicant-<replaceable>wifi0</replaceable>.conf
365 </filename>
[8558044]366 </phrase>
[7b478500]367 can hold the details of several access points. When
[97a30d62]368 <command>wpa_supplicant</command> is started, it will scan for the
369 SSIDs it can see and choose the appropriate password to connect.
[822cc4a6]370 </para>
[a130a69]371
[4c869cdd]372 <para>
373 If you want to connect to an access point that isn't password
[7b478500]374 protected, put an entry like this in
[b51fe6e]375 <phrase revision="sysv">
376 <filename>
[7c56ece]377/etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
[b51fe6e]378 </phrase>
379 <phrase revision="systemd">
380 <filename>
[7c56ece]381/etc/wpa_supplicant/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
382 </phrase>
[97a30d62]383 Replace "Some-SSID" with the SSID of the access point/router.
[4c869cdd]384 </para>
[a130a69]385
386<screen>network={
387 ssid="<replaceable>Some-SSID</replaceable>"
388 key_mgmt=NONE
389}</screen>
390
[b51fe6e]391 <para>
392 Connecting to a new access point that is not in the configuration
393 file can be accomplished manually via the command line or GUI, but it
394 must be done via a privileged user. To do that, add the following to
395 the configuration file:
396 </para>
[822cc4a6]397
[f77c63d0]398<screen>ctrl_interface=DIR=/run/wpa_supplicant GROUP=&lt;privileged group&gt;
[822cc4a6]399update_config=1</screen>
400
401 <para>
[f77c63d0]402 Replace the &lt;privileged group&gt; above with a system group where
[822cc4a6]403 members have the ability to connect to a wireless access point.
404 </para>
405
[4c869cdd]406 <para>
407 There are many options that you could use to tweak how you connect
408 to each access point. They are described in some detail in the
409 <filename>wpa_supplicant/wpa_supplicant.conf</filename> file in the
410 source tree.
411 </para>
[a130a69]412
[97a30d62]413 </sect3>
414
415 <sect3>
416 <title>Connecting to an Access Point</title>
417
[7b478500]418 <para id="wpa-service" revision="sysv">
[97a30d62]419 If you want to configure network interfaces at boot using
420 <command>wpa_supplicant</command>, you need to install the
421 <filename>/lib/services/wpa</filename> script
[7b478500]422 included in <xref linkend="bootscripts"/> package:
[97a30d62]423 </para>
424
[7b478500]425<screen role="root" revision="sysv"><userinput>make install-service-wpa</userinput></screen>
[97a30d62]426
[7b478500]427 <indexterm zone="wpa_supplicant wpa-service" revision="sysv">
[97a30d62]428 <primary sortas="f-wpa">wpa</primary>
429 </indexterm>
430
[7b478500]431 <para revision="sysv">
[97a30d62]432 If your router/access point uses DHCP to allocate IP addresses, you
433 can install <xref linkend="dhcp"/> client and use it to
434 automatically obtain network addresses. Create the
[2e41a4f]435 <filename>/etc/sysconfig/ifconfig-<replaceable>wifi0</replaceable>
[97a30d62]436 </filename> by running the following command as the
[4c869cdd]437 <systemitem class="username">root</systemitem> user:
438 </para>
[a130a69]439
[7b478500]440<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/ifconfig.<replaceable>wifi0</replaceable> &lt;&lt; "EOF"
[97a30d62]441<literal>ONBOOT="yes"
442IFACE="<replaceable>wlan0</replaceable>"
443SERVICE="wpa"
[a130a69]444
[97a30d62]445# Additional arguments to wpa_supplicant
446WPA_ARGS=""
447
448WPA_SERVICE="dhclient"
449DHCP_START=""
450DHCP_STOP=""
451
452# Set PRINTIP="yes" to have the script print
453# the DHCP assigned IP address
454PRINTIP="no"
455
456# Set PRINTALL="yes" to print the DHCP assigned values for
457# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
458PRINTALL="no"</literal>
459EOF</userinput></screen>
460
[7b478500]461 <para revision="sysv">
[97a30d62]462 If you prefer <xref linkend="dhcpcd"/> instead of
[0d7900a]463 <xref linkend="dhcp"/> client, then create the
[2e41a4f]464 <filename>/etc/sysconfig/ifconfig-<replaceable>wifi0</replaceable>
[97a30d62]465 </filename> by running the following command as the
466 <systemitem class="username">root</systemitem> user:
467 </para>
468
[7b478500]469<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/ifconfig.<replaceable>wifi0</replaceable> &lt;&lt; "EOF"
[97a30d62]470<literal>ONBOOT="yes"
471IFACE="<replaceable>wlan0</replaceable>"
472SERVICE="wpa"
473
474# Additional arguments to wpa_supplicant
475WPA_ARGS=""
476
477WPA_SERVICE="dhcpcd"
478DHCP_START="-b -q <replaceable>&lt;insert appropriate start options here&gt;</replaceable>"
479DHCP_STOP="-k <replaceable>&lt;insert additional stop options here&gt;</replaceable>"</literal>
480EOF</userinput></screen>
[a130a69]481
[7b478500]482 <para revision="sysv">
[97a30d62]483 Alternatively, if you use static addresses on your local network,
484 then create the
[2e41a4f]485 <filename>/etc/sysconfig/ifconfig-<replaceable>wifi0</replaceable>
[97a30d62]486 </filename> by running the following command as the
[4c869cdd]487 <systemitem class="username">root</systemitem> user:
488 </para>
[a130a69]489
[7b478500]490<screen role="root" revision="sysv"><userinput>cat &gt; /etc/sysconfig/ifconfig.<replaceable>wifi0</replaceable> &lt;&lt; "EOF"
[97a30d62]491<literal>ONBOOT="yes"
492IFACE="<replaceable>wlan0</replaceable>"
493SERVICE="wpa"
494
495# Additional arguments to wpa_supplicant
496WPA_ARGS=""
497
498WPA_SERVICE="ipv4-static"
499IP="192.168.1.1"
500GATEWAY="192.168.1.2"
501PREFIX="24"
502BROADCAST="192.168.1.255"</literal>
503EOF</userinput></screen>
[a130a69]504
[7b478500]505 <para revision="systemd">
506 There are 3 types of <application>systemd</application> units
507 that were installed:
508 </para>
509
510 <itemizedlist spacing="compact" revision="systemd">
511 <listitem>
512 <para>
513 wpa_supplicant@.service
514 </para>
515 </listitem>
516 <listitem>
517 <para>
518 wpa_supplicant-nl80211@.service
519 </para>
520 </listitem>
521 <listitem>
522 <para>
523 wpa_supplicant-wired@.service
524 </para>
525 </listitem>
526 </itemizedlist>
527
528 <para revision="systemd">
529 The only difference between 3 of them is what driver
530 is used for connecting (-D option). The first one uses
531 the default driver, the second one uses the nl80211
532 driver and the third one uses the wired driver.
533 </para>
534
[4c869cdd]535 <para>
[97a30d62]536 You can connect to the wireless access point by
537 running the following command as the
[4c869cdd]538 <systemitem class="username">root</systemitem> user:
539 </para>
[a130a69]540
[7b478500]541<screen role="root" revision="sysv"><userinput>ifup <replaceable>wifi0</replaceable></userinput></screen>
[97a30d62]542
[7b478500]543 <para revision="sysv">
[97a30d62]544 Replace <replaceable>wlan0</replaceable> with the correct
[2e41a4f]545 wireless interface and <replaceable>wifi0</replaceable>
546 with desired name for the configuration file. Please note
547 that <filename>wpa_supplicant-*.conf</filename> and
548 <filename>ifconfig.*</filename> configuration files need
549 to have identical names, ie both contain
550 <replaceable>wifi0</replaceable> in their name.
[97a30d62]551 </para>
[a130a69]552
[7b478500]553<screen role="root" revision="systemd"><userinput>systemctl start wpa_supplicant@<replaceable>wlan0</replaceable></userinput></screen>
554
555 <para revision="systemd">
556 To connect to the wireless access point at
557 boot, simply enable the appropriate
558 <command>wpa_supplicant</command> service
559 by running the following command as the
560 <systemitem class="username">root</systemitem> user:
561 </para>
562
563<screen role="root" revision="systemd"><userinput>systemctl enable wpa_supplicant@<replaceable>wlan0</replaceable></userinput></screen>
564
565 <para revision="systemd">
566 Depending on your setup, you can replace the
567 <filename>wpa_supplicant@.service</filename>
568 with any other listed above.
569 </para>
570
571 <para revision="systemd">
572 To assign a network address to your wireless interface, consult the
[f0dc9578]573 <ulink url="&lfs-root;/chapter09/network.html">General Network Configuration</ulink>
[7b478500]574 page in LFS.
575 </para>
576
[a130a69]577 </sect3>
[97a30d62]578
[a130a69]579 </sect2>
580
581 <sect2 role="content">
582 <title>Contents</title>
583
584 <segmentedlist>
585 <segtitle>Installed Programs</segtitle>
[c3c56b2]586 <segtitle>Installed Libraries</segtitle>
587 <segtitle>Installed Directories</segtitle>
[0d7900a]588
[a130a69]589 <seglistitem>
[8cce479c]590 <seg>
591 wpa_gui, wpa_supplicant, wpa_passphrase and wpa_cli
592 </seg>
[c3c56b2]593 <seg>
594 None
595 </seg>
596 <seg>
597 None
598 </seg>
[a130a69]599 </seglistitem>
600 </segmentedlist>
601
602 <variablelist>
603 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
604 <?dbfo list-presentation="list"?>
605 <?dbhtml list-presentation="table"?>
606
[8cce479c]607 <varlistentry id="wpa_gui">
608 <term><command>wpa_gui</command></term>
609 <listitem>
610 <para>
611 is a graphical frontend program for interacting with
[4c24eb0a]612 <application>wpa_supplicant</application>
[8cce479c]613 </para>
614 <indexterm zone="wpa_supplicant wpa_gui">
615 <primary sortas="b-wpa_gui">wpa_gui</primary>
616 </indexterm>
617 </listitem>
618 </varlistentry>
619
[a130a69]620 <varlistentry id="wpa_supplicant-prog">
621 <term><command>wpa_supplicant</command></term>
622 <listitem>
[4c869cdd]623 <para>
624 is a daemon that can connect to a password protected wireless
[4c24eb0a]625 access point
[4c869cdd]626 </para>
[a130a69]627 <indexterm zone="wpa_supplicant wpa_supplicant-prog">
628 <primary sortas="b-wpa_supplicant">wpa_supplicant</primary>
629 </indexterm>
630 </listitem>
631 </varlistentry>
632
633 <varlistentry id="wpa_passphrase">
634 <term><command>wpa_passphrase</command></term>
635 <listitem>
[4c869cdd]636 <para>
637 takes an SSID and a password and generates a simple
638 configuration that <command>wpa_supplicant</command> can
[4c24eb0a]639 understand
[4c869cdd]640 </para>
[a130a69]641 <indexterm zone="wpa_supplicant wpa_passphrase">
642 <primary sortas="b-wpa_passphrase">wpa_passphrase</primary>
643 </indexterm>
644 </listitem>
645 </varlistentry>
646
647 <varlistentry id="wpa_cli">
648 <term><command>wpa_cli</command></term>
649 <listitem>
[4c869cdd]650 <para>
651 is a command line interface used to control a running
[4c24eb0a]652 <command>wpa_supplicant</command> daemon
[4c869cdd]653 </para>
[a130a69]654 <indexterm zone="wpa_supplicant wpa_cli">
655 <primary sortas="b-wpa_cli">wpa_cli</primary>
656 </indexterm>
657 </listitem>
658 </varlistentry>
[4c869cdd]659
[a130a69]660 </variablelist>
[4c869cdd]661
[a130a69]662 </sect2>
[4c869cdd]663
[a130a69]664</sect1>
Note: See TracBrowser for help on using the repository browser.