[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
|
---|
[4c869cdd] | 8 | "http://hostap.epitest.fi/releases/wpa_supplicant-&wpa_supplicant-version;.tar.gz">
|
---|
| 9 | <!ENTITY wpa_supplicant-download-ftp " ">
|
---|
[28690a0] | 10 | <!ENTITY wpa_supplicant-md5sum "238e8e888bbd558e1a57e3eb28d1dd07">
|
---|
| 11 | <!ENTITY wpa_supplicant-size "2.3 MB">
|
---|
| 12 | <!ENTITY wpa_supplicant-buildsize "26 MB">
|
---|
| 13 | <!ENTITY wpa_supplicant-time "0.2 SBU">
|
---|
[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 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
[a130a69] | 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>wpa_supplicant-&wpa_supplicant-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="wpa_supplicant">
|
---|
| 27 | <primary sortas="a-wpa_supplicant">wpa_supplicant</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[4c869cdd] | 31 | <title>Introduction to WPA Supplicant</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | <application>WPA Supplicant</application> is a Wi-Fi Protected Access
|
---|
| 35 | (WPA) client and IEEE 802.1X supplicant. It implements WPA key negotiation
|
---|
| 36 | with a WPA Authenticator and Extensible Authentication Protocol (EAP)
|
---|
| 37 | authentication with an Authentication Server. In addition, it controls the
|
---|
| 38 | roaming and IEEE 802.11 authentication/association of the wireless LAN
|
---|
| 39 | driver. This is useful for connecting to a password protected wireless
|
---|
| 40 | access point.
|
---|
| 41 | </para>
|
---|
[a130a69] | 42 |
|
---|
[79d191ee] | 43 | &lfs75_checked;
|
---|
[5603a81] | 44 |
|
---|
[a130a69] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[4c869cdd] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&wpa_supplicant-download-http;"/>
|
---|
| 50 | </para>
|
---|
[a130a69] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[4c869cdd] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&wpa_supplicant-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[a130a69] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[4c869cdd] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &wpa_supplicant-md5sum;
|
---|
| 60 | </para>
|
---|
[a130a69] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[4c869cdd] | 63 | <para>
|
---|
| 64 | Download size: &wpa_supplicant-size;
|
---|
| 65 | </para>
|
---|
[a130a69] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[4c869cdd] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &wpa_supplicant-buildsize;
|
---|
| 70 | </para>
|
---|
[a130a69] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[4c869cdd] | 73 | <para>
|
---|
| 74 | Estimated build time: &wpa_supplicant-time;
|
---|
| 75 | </para>
|
---|
[a130a69] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
[4c869cdd] | 78 |
|
---|
| 79 | <bridgehead renderas="sect3">WPA Supplicant Dependencies</bridgehead>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para role="recommended">
|
---|
| 83 | <xref linkend="libnl"/> and
|
---|
| 84 | <xref linkend="openssl"/>
|
---|
| 85 | </para>
|
---|
[a130a69] | 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[26c1bdd] | 88 | <para role="optional">
|
---|
[7af92fe5] | 89 | <xref linkend="qt4"/>
|
---|
[26c1bdd] | 90 | </para>
|
---|
[a130a69] | 91 |
|
---|
| 92 | <para condition="html" role="usernotes">User Notes:
|
---|
[4c869cdd] | 93 | <ulink url="&blfs-wiki;/wpa_supplicant"/>
|
---|
| 94 | </para>
|
---|
[8fa167c] | 95 |
|
---|
[a130a69] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="kernel" id="wpa_supplicant-kernel">
|
---|
| 99 | <title>Kernel Configuration</title>
|
---|
| 100 |
|
---|
[4c869cdd] | 101 | <para>
|
---|
[8fa167c] | 102 | Enable the following options in the kernel configuration as well as
|
---|
| 103 | specific device drivers for your hardware and recompile the kernel if
|
---|
| 104 | necessary:
|
---|
[4c869cdd] | 105 | </para>
|
---|
[a130a69] | 106 |
|
---|
[8fa167c] | 107 | <screen><literal>Networking support --->
|
---|
| 108 | Wireless --->
|
---|
| 109 | cfg80211 - wireless configuration API: Y or M
|
---|
| 110 | cfg80211 wireless extensions compatibility: Y
|
---|
| 111 | Generic IEEE 802.11 Networking Stack (mac80211): Y or M
|
---|
[a130a69] | 112 | Device Drivers --->
|
---|
[8fa167c] | 113 | Network device support --->
|
---|
| 114 | Wireless LAN ---></literal></screen>
|
---|
[a130a69] | 115 |
|
---|
[4c869cdd] | 116 | <para>
|
---|
| 117 | Select the options that support your hardware:
|
---|
[0d7900a] | 118 | <command>lspci</command> from <xref linkend="pciutils"/> can be used to
|
---|
[4c869cdd] | 119 | view your hardware configuration.
|
---|
| 120 | </para>
|
---|
[a130a69] | 121 |
|
---|
| 122 | <indexterm zone="wpa_supplicant wpa_supplicant-kernel">
|
---|
| 123 | <primary sortas="d-wpa_supplicant">wpa_supplicant</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2 role="installation">
|
---|
[4c869cdd] | 128 | <title>Installation of WPA Supplicant</title>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | First you will need to create an initial configuration file for the
|
---|
| 132 | build process. You can read <filename>wpa_supplicant/README</filename>
|
---|
| 133 | and <filename>wpa_supplicant/defconfig</filename> for the explanation
|
---|
| 134 | of the following options as well as other options that can be used.
|
---|
| 135 | Create a build configuration file that should work for standard WiFi
|
---|
| 136 | setups by running the following command:
|
---|
| 137 | </para>
|
---|
[a130a69] | 138 |
|
---|
[4c869cdd] | 139 | <screen><userinput>cat > wpa_supplicant/.config << "EOF"
|
---|
[8fa167c] | 140 | <literal>CONFIG_BACKEND=file
|
---|
[4c869cdd] | 141 | CONFIG_CTRL_IFACE=y
|
---|
[8cce479c] | 142 | CONFIG_DEBUG_FILE=y
|
---|
| 143 | CONFIG_DEBUG_SYSLOG=y
|
---|
| 144 | CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
|
---|
[4c869cdd] | 145 | CONFIG_DRIVER_NL80211=y
|
---|
[a130a69] | 146 | CONFIG_DRIVER_WEXT=y
|
---|
[4c869cdd] | 147 | CONFIG_DRIVER_WIRED=y
|
---|
[a130a69] | 148 | CONFIG_EAP_GTC=y
|
---|
| 149 | CONFIG_EAP_LEAP=y
|
---|
| 150 | CONFIG_EAP_MD5=y
|
---|
| 151 | CONFIG_EAP_MSCHAPV2=y
|
---|
| 152 | CONFIG_EAP_OTP=y
|
---|
| 153 | CONFIG_EAP_PEAP=y
|
---|
| 154 | CONFIG_EAP_TLS=y
|
---|
| 155 | CONFIG_EAP_TTLS=y
|
---|
[4c869cdd] | 156 | CONFIG_IEEE8021X_EAPOL=y
|
---|
| 157 | CONFIG_IPV6=y
|
---|
| 158 | CONFIG_LIBNL32=y
|
---|
[a130a69] | 159 | CONFIG_PEERKEY=y
|
---|
| 160 | CONFIG_PKCS12=y
|
---|
| 161 | CONFIG_READLINE=y
|
---|
[4c869cdd] | 162 | CONFIG_SMARTCARD=y
|
---|
| 163 | CONFIG_WPS=y
|
---|
[8fa167c] | 164 | CFLAGS += -I/usr/include/libnl3</literal>
|
---|
[4c869cdd] | 165 | EOF</userinput></screen>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
| 168 | If you wish to use <application>WPA Supplicant</application> with
|
---|
[7e9d2b38] | 169 | <xref linkend="NetworkManager"/>, add the required options to
|
---|
| 170 | the <application>WPA Supplicant</application> build configuration
|
---|
| 171 | file by running the following command:
|
---|
[4c869cdd] | 172 | </para>
|
---|
[26c1bdd] | 173 |
|
---|
[4c869cdd] | 174 | <screen><userinput>cat >> wpa_supplicant/.config << "EOF"
|
---|
[8fa167c] | 175 | <literal>CONFIG_CTRL_IFACE_DBUS=y
|
---|
[4c869cdd] | 176 | CONFIG_CTRL_IFACE_DBUS_NEW=y
|
---|
[8fa167c] | 177 | CONFIG_CTRL_IFACE_DBUS_INTRO=y</literal>
|
---|
[4c869cdd] | 178 | EOF</userinput></screen>
|
---|
[a130a69] | 179 |
|
---|
[7e9d2b38] | 180 | <para>
|
---|
| 181 | First, fix expand the list of parameters that are passed to the
|
---|
| 182 | <command>wpa_supplicant</command> when started as a
|
---|
| 183 | <application>D-Bus</application> service:
|
---|
| 184 | </para>
|
---|
| 185 |
|
---|
| 186 | <screen><userinput>sed -e "s@wpa_supplicant -u@& -s -O /var/run/wpa_supplicant@g" -i wpa_supplicant/dbus/*.service.in &&
|
---|
| 187 | sed -e "s@wpa_supplicant -u@& -s -O /var/run/wpa_supplicant@g" -i wpa_supplicant/systemd/wpa_supplicant.service.in</userinput></screen>
|
---|
| 188 |
|
---|
[4c869cdd] | 189 | <para>
|
---|
| 190 | Install <application>WPA Supplicant</application> by running the
|
---|
| 191 | following commands:
|
---|
| 192 | </para>
|
---|
[a130a69] | 193 |
|
---|
[4c869cdd] | 194 | <screen><userinput>cd wpa_supplicant &&
|
---|
| 195 | make BINDIR=/sbin LIBDIR=/lib</userinput></screen>
|
---|
[a130a69] | 196 |
|
---|
[8cce479c] | 197 | <para>
|
---|
[7af92fe5] | 198 | If you have installed <xref linkend="qt4"/> and wish to build
|
---|
[2946338a] | 199 | the <application>WPA Supplicant</application> GUI program, run
|
---|
[8cce479c] | 200 | the following commands:
|
---|
| 201 | </para>
|
---|
| 202 |
|
---|
| 203 | <screen><userinput>pushd wpa_gui-qt4 &&
|
---|
| 204 | qmake wpa_gui.pro &&
|
---|
| 205 | make &&
|
---|
| 206 | popd</userinput></screen>
|
---|
| 207 |
|
---|
[4c869cdd] | 208 | <para>
|
---|
| 209 | This package does not come with a test suite.
|
---|
| 210 | </para>
|
---|
[a130a69] | 211 |
|
---|
[4c869cdd] | 212 | <para>
|
---|
[2946338a] | 213 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[4c869cdd] | 214 | </para>
|
---|
[a130a69] | 215 |
|
---|
[97a30d62] | 216 | <screen role="root"><userinput>install -v -m755 wpa_{cli,passphrase,supplicant} /sbin/ &&
|
---|
| 217 | install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5/ &&
|
---|
| 218 | install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8/</userinput></screen>
|
---|
[a130a69] | 219 |
|
---|
[7e9d2b38] | 220 | <para>
|
---|
| 221 | Install the <application>systemd</application> support files by
|
---|
| 222 | running the following command as the <systemitem
|
---|
| 223 | class="username">root</systemitem> user:
|
---|
| 224 | </para>
|
---|
| 225 |
|
---|
| 226 | <screen role="root"><userinput>install -v -m644 systemd/*.service /lib/systemd/system/</userinput></screen>
|
---|
| 227 |
|
---|
[4c869cdd] | 228 | <para>
|
---|
| 229 | If you have built <application>WPA Supplicant</application> with
|
---|
| 230 | <application>D-Bus</application> support, you will need to install
|
---|
| 231 | <application>D-Bus</application> configuration files. Install them
|
---|
| 232 | by running the following commands as the
|
---|
| 233 | <systemitem class="username">root</systemitem> user:
|
---|
| 234 | </para>
|
---|
[a130a69] | 235 |
|
---|
[4c869cdd] | 236 | <screen role="root"><userinput>install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \
|
---|
[97a30d62] | 237 | /usr/share/dbus-1/system-services/ &&
|
---|
[2946338a] | 238 | install -v -m644 dbus/dbus-wpa_supplicant.conf \
|
---|
| 239 | /etc/dbus-1/system.d/wpa_supplicant.conf</userinput></screen>
|
---|
[a130a69] | 240 |
|
---|
[7e9d2b38] | 241 | <para>
|
---|
| 242 | Additionally, enable the <filename>wpa_supplicant.service</filename> so that
|
---|
| 243 | <application>systemd</application> can properly activate the
|
---|
| 244 | <application>D-Bus</application> service. Run the following command as the
|
---|
| 245 | <systemitem class="username">root</systemitem> user:
|
---|
| 246 | </para>
|
---|
| 247 |
|
---|
| 248 | <screen role="root"><userinput>systemctl enable wpa_supplicant</userinput></screen>
|
---|
| 249 |
|
---|
[8cce479c] | 250 | <para>
|
---|
[2946338a] | 251 | If you have built the <application>WPA Supplicant</application> GUI
|
---|
[8cce479c] | 252 | program, install it by running the following commands as the
|
---|
| 253 | <systemitem class="username">root</systemitem> user:
|
---|
| 254 | </para>
|
---|
| 255 |
|
---|
[97a30d62] | 256 | <screen role="root"><userinput>install -v -m755 wpa_gui-qt4/wpa_gui /usr/bin/ &&
|
---|
| 257 | install -v -m644 doc/docbook/wpa_gui.8 /usr/share/man/man8/ &&
|
---|
| 258 | install -v -m644 wpa_gui-qt4/wpa_gui.desktop /usr/share/applications/ &&
|
---|
[2946338a] | 259 | install -v -m644 wpa_gui-qt4/icons/wpa_gui.svg /usr/share/pixmaps/</userinput></screen>
|
---|
[8cce479c] | 260 |
|
---|
[4c869cdd] | 261 | <note>
|
---|
| 262 | <para>
|
---|
[2946338a] | 263 | You will need to restart the system <application>D-Bus</application> daemon
|
---|
| 264 | before you can use the <application>WPA Supplicant</application>
|
---|
[325113f8] | 265 | <application>D-Bus</application> interface.
|
---|
[4c869cdd] | 266 | </para>
|
---|
| 267 | </note>
|
---|
[a130a69] | 268 |
|
---|
[2946338a] | 269 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 270 | href="../../xincludes/update-desktop-database.xml"/>
|
---|
[97a30d62] | 271 |
|
---|
[a130a69] | 272 | </sect2>
|
---|
| 273 |
|
---|
| 274 | <sect2 role="configuration">
|
---|
| 275 | <title>Configuring wpa_supplicant</title>
|
---|
| 276 |
|
---|
| 277 | <sect3 id="wpa_supplicant-config">
|
---|
| 278 | <title>Config File</title>
|
---|
[97a30d62] | 279 |
|
---|
| 280 | <para>
|
---|
[7e9d2b38] | 281 | <filename>/etc/wpa_supplicant/wpa_supplicant-*.conf</filename>
|
---|
[97a30d62] | 282 | </para>
|
---|
[a130a69] | 283 |
|
---|
| 284 | <indexterm zone="wpa_supplicant wpa_supplicant-config">
|
---|
| 285 | <primary
|
---|
[7e9d2b38] | 286 | sortas="e-etc-wpa_supplicant-wpa_supplicant-star.conf">/etc/wpa_supplicant/wpa_supplicant-*.conf</primary>
|
---|
[a130a69] | 287 | </indexterm>
|
---|
[97a30d62] | 288 |
|
---|
[a130a69] | 289 | </sect3>
|
---|
| 290 |
|
---|
| 291 | <sect3>
|
---|
| 292 | <title>Configuration Information</title>
|
---|
| 293 |
|
---|
[7e9d2b38] | 294 | <warning>
|
---|
| 295 | <para>
|
---|
| 296 | You need to replace <replaceable>wlan0</replaceable> with
|
---|
| 297 | the correct wireless interface name in the commands below.
|
---|
| 298 | </para>
|
---|
| 299 | </warning>
|
---|
| 300 |
|
---|
[4c869cdd] | 301 | <para>
|
---|
[2946338a] | 302 | To connect to an access point that uses a password, you need to put
|
---|
[97a30d62] | 303 | the pre-shared key in <filename>
|
---|
[7e9d2b38] | 304 | /etc/wpa_supplicant/wpa_supplicant-<replaceable>wlan0</replaceable>.conf</filename>.
|
---|
[97a30d62] | 305 | SSID is the string that the access point/router transmits to
|
---|
| 306 | identify itself. Run the following command as the
|
---|
[4c869cdd] | 307 | <systemitem class="username">root</systemitem> user:
|
---|
| 308 | </para>
|
---|
[a130a69] | 309 |
|
---|
[7e9d2b38] | 310 | <screen role="root"><userinput>install -v -dm755 /etc/wpa_supplicant &&
|
---|
| 311 | wpa_passphrase <replaceable>SSID</replaceable> <replaceable>SECRET_PASSWORD</replaceable> > /etc/wpa_supplicant/wpa_supplicant-<replaceable>wlan0</replaceable>.conf</userinput></screen>
|
---|
[a130a69] | 312 |
|
---|
[4c869cdd] | 313 | <para>
|
---|
[7e9d2b38] | 314 | <filename>/etc/wpa_supplicant/wpa_supplicant-<replaceable>wlan0</replaceable>.conf
|
---|
[97a30d62] | 315 | </filename> can hold the details of several access points. When
|
---|
| 316 | <command>wpa_supplicant</command> is started, it will scan for the
|
---|
| 317 | SSIDs it can see and choose the appropriate password to connect.
|
---|
[4c869cdd] | 318 | </para>
|
---|
[a130a69] | 319 |
|
---|
[4c869cdd] | 320 | <para>
|
---|
| 321 | If you want to connect to an access point that isn't password
|
---|
[97a30d62] | 322 | protected, put an entry like this in <filename>
|
---|
[7e9d2b38] | 323 | /etc/wpa_supplicant/wpa_supplicant-<replaceable>wlan0</replaceable>.conf</filename>.
|
---|
[97a30d62] | 324 | Replace "Some-SSID" with the SSID of the access point/router.
|
---|
[4c869cdd] | 325 | </para>
|
---|
[a130a69] | 326 |
|
---|
| 327 | <screen>network={
|
---|
| 328 | ssid="<replaceable>Some-SSID</replaceable>"
|
---|
| 329 | key_mgmt=NONE
|
---|
| 330 | }</screen>
|
---|
| 331 |
|
---|
[4c869cdd] | 332 | <para>
|
---|
| 333 | There are many options that you could use to tweak how you connect
|
---|
| 334 | to each access point. They are described in some detail in the
|
---|
| 335 | <filename>wpa_supplicant/wpa_supplicant.conf</filename> file in the
|
---|
| 336 | source tree.
|
---|
| 337 | </para>
|
---|
[a130a69] | 338 |
|
---|
[97a30d62] | 339 | </sect3>
|
---|
| 340 |
|
---|
| 341 | <sect3>
|
---|
| 342 | <title>Connecting to an Access Point</title>
|
---|
| 343 |
|
---|
[7e9d2b38] | 344 | <para>
|
---|
| 345 | There are 3 types of <application>systemd</application> units
|
---|
| 346 | that were installed:
|
---|
[97a30d62] | 347 | </para>
|
---|
| 348 |
|
---|
[7e9d2b38] | 349 | <itemizedlist spacing="compact">
|
---|
| 350 | <listitem>
|
---|
| 351 | <para>
|
---|
| 352 | wpa_supplicant@.service
|
---|
| 353 | </para>
|
---|
| 354 | </listitem>
|
---|
| 355 | <listitem>
|
---|
| 356 | <para>
|
---|
| 357 | wpa_supplicant-nl80211@.service
|
---|
| 358 | </para>
|
---|
| 359 | </listitem>
|
---|
| 360 | <listitem>
|
---|
| 361 | <para>
|
---|
| 362 | wpa_supplicant-wired@.service
|
---|
| 363 | </para>
|
---|
| 364 | </listitem>
|
---|
| 365 | </itemizedlist>
|
---|
[97a30d62] | 366 |
|
---|
[4c869cdd] | 367 | <para>
|
---|
[7e9d2b38] | 368 | The only difference between 3 of them is what driver
|
---|
| 369 | is used for connecting (-D option). The first one uses
|
---|
| 370 | the default driver, the second one uses the nl80211
|
---|
| 371 | driver and the third one uses the wired driver.
|
---|
[4c869cdd] | 372 | </para>
|
---|
[a130a69] | 373 |
|
---|
[97a30d62] | 374 | <para>
|
---|
[7e9d2b38] | 375 | You can connect to the wireless access point by
|
---|
| 376 | running the following command as the
|
---|
[97a30d62] | 377 | <systemitem class="username">root</systemitem> user:
|
---|
| 378 | </para>
|
---|
| 379 |
|
---|
[7e9d2b38] | 380 | <screen role="root"><userinput>systemctl start wpa_supplicant@<replaceable>wlan0</replaceable></userinput></screen>
|
---|
[a130a69] | 381 |
|
---|
[4c869cdd] | 382 | <para>
|
---|
[7e9d2b38] | 383 | To connect to the wireless access point at
|
---|
| 384 | boot, simply enable the appropriate
|
---|
| 385 | <command>wpa_supplicant</command> service
|
---|
| 386 | by running the following command as the
|
---|
[4c869cdd] | 387 | <systemitem class="username">root</systemitem> user:
|
---|
| 388 | </para>
|
---|
[a130a69] | 389 |
|
---|
[7e9d2b38] | 390 | <screen role="root"><userinput>systemctl enable wpa_supplicant@<replaceable>wlan0</replaceable></userinput></screen>
|
---|
[a130a69] | 391 |
|
---|
[4c869cdd] | 392 | <para>
|
---|
[7e9d2b38] | 393 | Depending on your setup, you can replace the
|
---|
| 394 | <filename>wpa_supplicant@.service</filename>
|
---|
| 395 | with any other listed above.
|
---|
[4c869cdd] | 396 | </para>
|
---|
[a130a69] | 397 |
|
---|
[97a30d62] | 398 | <para>
|
---|
[7e9d2b38] | 399 | To assign a network address to your wireless interface,
|
---|
| 400 | consult the <ulink
|
---|
| 401 | url="http://www.linuxfromscratch.org/lfs/view/systemd/chapter07/network.html">General Network Configuration</ulink>
|
---|
| 402 | page in LFS.
|
---|
[97a30d62] | 403 | </para>
|
---|
[a130a69] | 404 |
|
---|
| 405 | </sect3>
|
---|
[97a30d62] | 406 |
|
---|
[a130a69] | 407 | </sect2>
|
---|
| 408 |
|
---|
| 409 | <sect2 role="content">
|
---|
| 410 | <title>Contents</title>
|
---|
| 411 |
|
---|
| 412 | <segmentedlist>
|
---|
| 413 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 414 | <segtitle>Installed Libraries</segtitle>
|
---|
| 415 | <segtitle>Installed Directories</segtitle>
|
---|
[0d7900a] | 416 |
|
---|
[a130a69] | 417 | <seglistitem>
|
---|
[8cce479c] | 418 | <seg>
|
---|
| 419 | wpa_gui, wpa_supplicant, wpa_passphrase and wpa_cli
|
---|
| 420 | </seg>
|
---|
[c3c56b2] | 421 | <seg>
|
---|
| 422 | None
|
---|
| 423 | </seg>
|
---|
| 424 | <seg>
|
---|
| 425 | None
|
---|
| 426 | </seg>
|
---|
[a130a69] | 427 | </seglistitem>
|
---|
| 428 | </segmentedlist>
|
---|
| 429 |
|
---|
| 430 | <variablelist>
|
---|
| 431 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 432 | <?dbfo list-presentation="list"?>
|
---|
| 433 | <?dbhtml list-presentation="table"?>
|
---|
| 434 |
|
---|
[8cce479c] | 435 | <varlistentry id="wpa_gui">
|
---|
| 436 | <term><command>wpa_gui</command></term>
|
---|
| 437 | <listitem>
|
---|
| 438 | <para>
|
---|
| 439 | is a graphical frontend program for interacting with
|
---|
| 440 | <application>wpa_supplicant</application>.
|
---|
| 441 | </para>
|
---|
| 442 | <indexterm zone="wpa_supplicant wpa_gui">
|
---|
| 443 | <primary sortas="b-wpa_gui">wpa_gui</primary>
|
---|
| 444 | </indexterm>
|
---|
| 445 | </listitem>
|
---|
| 446 | </varlistentry>
|
---|
| 447 |
|
---|
[a130a69] | 448 | <varlistentry id="wpa_supplicant-prog">
|
---|
| 449 | <term><command>wpa_supplicant</command></term>
|
---|
| 450 | <listitem>
|
---|
[4c869cdd] | 451 | <para>
|
---|
| 452 | is a daemon that can connect to a password protected wireless
|
---|
| 453 | access point.
|
---|
| 454 | </para>
|
---|
[a130a69] | 455 | <indexterm zone="wpa_supplicant wpa_supplicant-prog">
|
---|
| 456 | <primary sortas="b-wpa_supplicant">wpa_supplicant</primary>
|
---|
| 457 | </indexterm>
|
---|
| 458 | </listitem>
|
---|
| 459 | </varlistentry>
|
---|
| 460 |
|
---|
| 461 | <varlistentry id="wpa_passphrase">
|
---|
| 462 | <term><command>wpa_passphrase</command></term>
|
---|
| 463 | <listitem>
|
---|
[4c869cdd] | 464 | <para>
|
---|
| 465 | takes an SSID and a password and generates a simple
|
---|
| 466 | configuration that <command>wpa_supplicant</command> can
|
---|
| 467 | understand.
|
---|
| 468 | </para>
|
---|
[a130a69] | 469 | <indexterm zone="wpa_supplicant wpa_passphrase">
|
---|
| 470 | <primary sortas="b-wpa_passphrase">wpa_passphrase</primary>
|
---|
| 471 | </indexterm>
|
---|
| 472 | </listitem>
|
---|
| 473 | </varlistentry>
|
---|
| 474 |
|
---|
| 475 | <varlistentry id="wpa_cli">
|
---|
| 476 | <term><command>wpa_cli</command></term>
|
---|
| 477 | <listitem>
|
---|
[4c869cdd] | 478 | <para>
|
---|
| 479 | is a command line interface used to control a running
|
---|
| 480 | <command>wpa_supplicant</command> daemon.
|
---|
| 481 | </para>
|
---|
[a130a69] | 482 | <indexterm zone="wpa_supplicant wpa_cli">
|
---|
| 483 | <primary sortas="b-wpa_cli">wpa_cli</primary>
|
---|
| 484 | </indexterm>
|
---|
| 485 | </listitem>
|
---|
| 486 | </varlistentry>
|
---|
[4c869cdd] | 487 |
|
---|
[a130a69] | 488 | </variablelist>
|
---|
[4c869cdd] | 489 |
|
---|
[a130a69] | 490 | </sect2>
|
---|
[4c869cdd] | 491 |
|
---|
[a130a69] | 492 | </sect1>
|
---|