source: networking/netprogs/wpa_supplicant.xml@ 048071e

11.3 12.0 12.1 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 048071e was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 21 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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