source: networking/netprogs/wpa_supplicant.xml@ cea7f479

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 cea7f479 was cea7f479, checked in by Xi Ruoyao <xry111@…>, 2 years ago

wpa_supplicant: remove d-bus dependency for systemd

In systemd revision, LFS d-bus is enough for this package.

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