source: networking/netprogs/wpa_supplicant.xml@ 453910f

11.1 11.2 11.3 12.0 12.1 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/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 453910f was 453910f, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Initial round of tags from me

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