[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">
|
---|
[54666831] | 89 | <xref linkend="dbus"/>,
|
---|
| 90 | <xref linkend="libxml2"/>, and
|
---|
[7af92fe5] | 91 | <xref linkend="qt4"/>
|
---|
[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 |
|
---|
[8fa167c] | 109 | <screen><literal>Networking support --->
|
---|
| 110 | Wireless --->
|
---|
| 111 | cfg80211 - wireless configuration API: Y or M
|
---|
| 112 | cfg80211 wireless extensions compatibility: Y
|
---|
| 113 | Generic IEEE 802.11 Networking Stack (mac80211): Y or M
|
---|
[a130a69] | 114 | Device Drivers --->
|
---|
[8fa167c] | 115 | Network device support --->
|
---|
| 116 | Wireless LAN ---></literal></screen>
|
---|
[a130a69] | 117 |
|
---|
[4c869cdd] | 118 | <para>
|
---|
| 119 | 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 > wpa_supplicant/.config << "EOF"
|
---|
[8fa167c] | 142 | <literal>CONFIG_BACKEND=file
|
---|
[4c869cdd] | 143 | CONFIG_CTRL_IFACE=y
|
---|
[8cce479c] | 144 | CONFIG_DEBUG_FILE=y
|
---|
| 145 | CONFIG_DEBUG_SYSLOG=y
|
---|
| 146 | CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
|
---|
[4c869cdd] | 147 | CONFIG_DRIVER_NL80211=y
|
---|
[a130a69] | 148 | CONFIG_DRIVER_WEXT=y
|
---|
[4c869cdd] | 149 | CONFIG_DRIVER_WIRED=y
|
---|
[a130a69] | 150 | CONFIG_EAP_GTC=y
|
---|
| 151 | CONFIG_EAP_LEAP=y
|
---|
| 152 | CONFIG_EAP_MD5=y
|
---|
| 153 | CONFIG_EAP_MSCHAPV2=y
|
---|
| 154 | CONFIG_EAP_OTP=y
|
---|
| 155 | CONFIG_EAP_PEAP=y
|
---|
| 156 | CONFIG_EAP_TLS=y
|
---|
| 157 | CONFIG_EAP_TTLS=y
|
---|
[4c869cdd] | 158 | CONFIG_IEEE8021X_EAPOL=y
|
---|
| 159 | CONFIG_IPV6=y
|
---|
| 160 | CONFIG_LIBNL32=y
|
---|
[a130a69] | 161 | CONFIG_PEERKEY=y
|
---|
| 162 | CONFIG_PKCS12=y
|
---|
| 163 | CONFIG_READLINE=y
|
---|
[4c869cdd] | 164 | CONFIG_SMARTCARD=y
|
---|
| 165 | CONFIG_WPS=y
|
---|
[8fa167c] | 166 | CFLAGS += -I/usr/include/libnl3</literal>
|
---|
[4c869cdd] | 167 | EOF</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 >> wpa_supplicant/.config << "EOF"
|
---|
[8fa167c] | 178 | <literal>CONFIG_CTRL_IFACE_DBUS=y
|
---|
[4c869cdd] | 179 | CONFIG_CTRL_IFACE_DBUS_NEW=y
|
---|
[8fa167c] | 180 | CONFIG_CTRL_IFACE_DBUS_INTRO=y</literal>
|
---|
[4c869cdd] | 181 | EOF</userinput></screen>
|
---|
[a130a69] | 182 |
|
---|
[4c869cdd] | 183 | <para>
|
---|
| 184 | Install <application>WPA Supplicant</application> by running the
|
---|
| 185 | following commands:
|
---|
| 186 | </para>
|
---|
[a130a69] | 187 |
|
---|
[4c869cdd] | 188 | <screen><userinput>cd wpa_supplicant &&
|
---|
| 189 | make BINDIR=/sbin LIBDIR=/lib</userinput></screen>
|
---|
[a130a69] | 190 |
|
---|
[8cce479c] | 191 | <para>
|
---|
[7af92fe5] | 192 | If you have installed <xref linkend="qt4"/> and wish to build
|
---|
[2946338a] | 193 | the <application>WPA Supplicant</application> GUI program, run
|
---|
[8cce479c] | 194 | the following commands:
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
| 197 | <screen><userinput>pushd wpa_gui-qt4 &&
|
---|
| 198 | qmake wpa_gui.pro &&
|
---|
| 199 | make &&
|
---|
| 200 | popd</userinput></screen>
|
---|
| 201 |
|
---|
[4c869cdd] | 202 | <para>
|
---|
| 203 | This package does not come with a test suite.
|
---|
| 204 | </para>
|
---|
[a130a69] | 205 |
|
---|
[4c869cdd] | 206 | <para>
|
---|
[2946338a] | 207 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[4c869cdd] | 208 | </para>
|
---|
[a130a69] | 209 |
|
---|
[97a30d62] | 210 | <screen role="root"><userinput>install -v -m755 wpa_{cli,passphrase,supplicant} /sbin/ &&
|
---|
| 211 | install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5/ &&
|
---|
| 212 | install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8/</userinput></screen>
|
---|
[a130a69] | 213 |
|
---|
[4c869cdd] | 214 | <para>
|
---|
| 215 | If you have built <application>WPA Supplicant</application> with
|
---|
| 216 | <application>D-Bus</application> support, you will need to install
|
---|
| 217 | <application>D-Bus</application> configuration files. Install them
|
---|
| 218 | by running the following commands as the
|
---|
| 219 | <systemitem class="username">root</systemitem> user:
|
---|
| 220 | </para>
|
---|
[a130a69] | 221 |
|
---|
[4c869cdd] | 222 | <screen role="root"><userinput>install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \
|
---|
[97a30d62] | 223 | /usr/share/dbus-1/system-services/ &&
|
---|
[2946338a] | 224 | install -v -m644 dbus/dbus-wpa_supplicant.conf \
|
---|
| 225 | /etc/dbus-1/system.d/wpa_supplicant.conf</userinput></screen>
|
---|
[a130a69] | 226 |
|
---|
[8cce479c] | 227 | <para>
|
---|
[2946338a] | 228 | If you have built the <application>WPA Supplicant</application> GUI
|
---|
[8cce479c] | 229 | program, install it by running the following commands as the
|
---|
| 230 | <systemitem class="username">root</systemitem> user:
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
[97a30d62] | 233 | <screen role="root"><userinput>install -v -m755 wpa_gui-qt4/wpa_gui /usr/bin/ &&
|
---|
| 234 | install -v -m644 doc/docbook/wpa_gui.8 /usr/share/man/man8/ &&
|
---|
| 235 | install -v -m644 wpa_gui-qt4/wpa_gui.desktop /usr/share/applications/ &&
|
---|
[2946338a] | 236 | install -v -m644 wpa_gui-qt4/icons/wpa_gui.svg /usr/share/pixmaps/</userinput></screen>
|
---|
[8cce479c] | 237 |
|
---|
[4c869cdd] | 238 | <note>
|
---|
| 239 | <para>
|
---|
[2946338a] | 240 | You will need to restart the system <application>D-Bus</application> daemon
|
---|
| 241 | before you can use the <application>WPA Supplicant</application>
|
---|
[325113f8] | 242 | <application>D-Bus</application> interface.
|
---|
[4c869cdd] | 243 | </para>
|
---|
| 244 | </note>
|
---|
[a130a69] | 245 |
|
---|
[2946338a] | 246 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 247 | href="../../xincludes/update-desktop-database.xml"/>
|
---|
[97a30d62] | 248 |
|
---|
[a130a69] | 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | <sect2 role="configuration">
|
---|
| 252 | <title>Configuring wpa_supplicant</title>
|
---|
| 253 |
|
---|
| 254 | <sect3 id="wpa_supplicant-config">
|
---|
| 255 | <title>Config File</title>
|
---|
[97a30d62] | 256 |
|
---|
| 257 | <para>
|
---|
| 258 | <filename>/etc/sysconfig/wpa_supplicant-*.conf</filename>
|
---|
| 259 | </para>
|
---|
[a130a69] | 260 |
|
---|
| 261 | <indexterm zone="wpa_supplicant wpa_supplicant-config">
|
---|
| 262 | <primary
|
---|
[97a30d62] | 263 | sortas="e-etc-sysconfig-wpa_supplicant-star.conf">/etc/sysconfig/wpa_supplicant-*.conf</primary>
|
---|
[a130a69] | 264 | </indexterm>
|
---|
[97a30d62] | 265 |
|
---|
[a130a69] | 266 | </sect3>
|
---|
| 267 |
|
---|
| 268 | <sect3>
|
---|
| 269 | <title>Configuration Information</title>
|
---|
| 270 |
|
---|
[4c869cdd] | 271 | <para>
|
---|
[2946338a] | 272 | To connect to an access point that uses a password, you need to put
|
---|
[97a30d62] | 273 | the pre-shared key in <filename>
|
---|
[2e41a4f] | 274 | /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
|
---|
[97a30d62] | 275 | SSID is the string that the access point/router transmits to
|
---|
| 276 | identify itself. Run the following command as the
|
---|
[4c869cdd] | 277 | <systemitem class="username">root</systemitem> user:
|
---|
| 278 | </para>
|
---|
[a130a69] | 279 |
|
---|
[2e41a4f] | 280 | <screen role="root"><userinput>wpa_passphrase <replaceable>SSID</replaceable> <replaceable>SECRET_PASSWORD</replaceable> > /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</userinput></screen>
|
---|
[a130a69] | 281 |
|
---|
[4c869cdd] | 282 | <para>
|
---|
[2e41a4f] | 283 | <filename>/etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf
|
---|
[97a30d62] | 284 | </filename> can hold the details of several access points. When
|
---|
| 285 | <command>wpa_supplicant</command> is started, it will scan for the
|
---|
| 286 | SSIDs it can see and choose the appropriate password to connect.
|
---|
[4c869cdd] | 287 | </para>
|
---|
[a130a69] | 288 |
|
---|
[4c869cdd] | 289 | <para>
|
---|
| 290 | If you want to connect to an access point that isn't password
|
---|
[97a30d62] | 291 | protected, put an entry like this in <filename>
|
---|
[2e41a4f] | 292 | /etc/sysconfig/wpa_supplicant-<replaceable>wifi0</replaceable>.conf</filename>.
|
---|
[97a30d62] | 293 | Replace "Some-SSID" with the SSID of the access point/router.
|
---|
[4c869cdd] | 294 | </para>
|
---|
[a130a69] | 295 |
|
---|
| 296 | <screen>network={
|
---|
| 297 | ssid="<replaceable>Some-SSID</replaceable>"
|
---|
| 298 | key_mgmt=NONE
|
---|
| 299 | }</screen>
|
---|
| 300 |
|
---|
[4c869cdd] | 301 | <para>
|
---|
| 302 | There are many options that you could use to tweak how you connect
|
---|
| 303 | to each access point. They are described in some detail in the
|
---|
| 304 | <filename>wpa_supplicant/wpa_supplicant.conf</filename> file in the
|
---|
| 305 | source tree.
|
---|
| 306 | </para>
|
---|
[a130a69] | 307 |
|
---|
[97a30d62] | 308 | </sect3>
|
---|
| 309 |
|
---|
| 310 | <sect3>
|
---|
| 311 | <title>Connecting to an Access Point</title>
|
---|
| 312 |
|
---|
| 313 | <para id="wpa-service">
|
---|
[5bc57bb] | 314 | This package provides systemd units in the source tarball.
|
---|
| 315 | To install them, issue the following commands as the
|
---|
| 316 | <systemitem class="username">root</systemitem> user:
|
---|
[97a30d62] | 317 | </para>
|
---|
| 318 |
|
---|
[c463c87] | 319 | <screen role="root"><userinput>install -v -m644 systemd/*.service /lib/systemd/system</userinput></screen>
|
---|
[5bc57bb] | 320 |
|
---|
| 321 | <para>
|
---|
| 322 | The following files were installed:
|
---|
| 323 |
|
---|
| 324 | /lib/systemd/system/wpa_supplicant.service
|
---|
| 325 |
|
---|
| 326 | /lib/systemd/system/wpa_supplicant-nl80211@.service
|
---|
| 327 | /lib/systemd/system/wpa_supplicant-wired@.service
|
---|
| 328 | /lib/systemd/system/wpa_supplicant@.service
|
---|
| 329 |
|
---|
| 330 | The first service should be enabled if D-Bus interface was built into
|
---|
| 331 | wpa_supplicant, so that wpa_supplicant D-Bus interface can be started at boot
|
---|
| 332 | instead of being automatically activated by the D-Bus daemon which doesn't work
|
---|
| 333 | when using systemd.
|
---|
| 334 | To enable the service issue the following command as the
|
---|
| 335 | <systemitem class="username">root</systemitem> user:
|
---|
| 336 | </para>
|
---|
| 337 |
|
---|
[c463c87] | 338 | <screen role="root"><userinput>systemctl enable wpa_supplicant.service</userinput></screen>
|
---|
[5bc57bb] | 339 |
|
---|
| 340 | <para>
|
---|
| 341 | The following three files are per-interface specific files.
|
---|
| 342 | Much like LFS ifupdown@.service, they will start wpa_supplicant for a network
|
---|
| 343 | interface. Only difference between the three files is the wpa_supplicant_driver
|
---|
| 344 | being used.
|
---|
| 345 |
|
---|
| 346 | The first one uses -Dnl80211, the second one uses -Dwired and the last one uses
|
---|
| 347 | default -D option (not specified).
|
---|
| 348 | </para>
|
---|
| 349 |
|
---|
[97a30d62] | 350 |
|
---|
| 351 | <indexterm zone="wpa_supplicant wpa-service">
|
---|
| 352 | <primary sortas="f-wpa">wpa</primary>
|
---|
| 353 | </indexterm>
|
---|
| 354 |
|
---|
[4c869cdd] | 355 | <para>
|
---|
[97a30d62] | 356 | If your router/access point uses DHCP to allocate IP addresses, you
|
---|
| 357 | can install <xref linkend="dhcp"/> client and use it to
|
---|
[5bc57bb] | 358 | automatically obtain network addresses. If your using the first unit file
|
---|
| 359 | Create the
|
---|
| 360 | <filename>/etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf
|
---|
[97a30d62] | 361 | </filename> by running the following command as the
|
---|
[4c869cdd] | 362 | <systemitem class="username">root</systemitem> user:
|
---|
| 363 | </para>
|
---|
[a130a69] | 364 |
|
---|
[5bc57bb] | 365 | <note>
|
---|
| 366 | <para>
|
---|
| 367 | wifi0 needs to be replaced with the actual interface.
|
---|
| 368 | </para>
|
---|
| 369 | </note>
|
---|
| 370 |
|
---|
| 371 | <screen role="root"><userinput>cat > /etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf << "EOF"
|
---|
[97a30d62] | 372 | <literal>ONBOOT="yes"
|
---|
| 373 | IFACE="<replaceable>wlan0</replaceable>"
|
---|
| 374 | SERVICE="wpa"
|
---|
[a130a69] | 375 |
|
---|
[97a30d62] | 376 | # Additional arguments to wpa_supplicant
|
---|
| 377 | WPA_ARGS=""
|
---|
| 378 |
|
---|
| 379 | WPA_SERVICE="dhclient"
|
---|
| 380 | DHCP_START=""
|
---|
| 381 | DHCP_STOP=""
|
---|
| 382 |
|
---|
| 383 | # Set PRINTIP="yes" to have the script print
|
---|
| 384 | # the DHCP assigned IP address
|
---|
| 385 | PRINTIP="no"
|
---|
| 386 |
|
---|
| 387 | # Set PRINTALL="yes" to print the DHCP assigned values for
|
---|
| 388 | # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
|
---|
| 389 | PRINTALL="no"</literal>
|
---|
| 390 | EOF</userinput></screen>
|
---|
| 391 |
|
---|
[5bc57bb] | 392 | <note>
|
---|
| 393 | <para>
|
---|
| 394 | Note that the argument after @ and the interface name,
|
---|
| 395 | ie wifi0 must be the same.
|
---|
| 396 | </para>
|
---|
| 397 | </note>
|
---|
| 398 |
|
---|
| 399 | <para>
|
---|
| 400 | To enable it, issue the following command as the
|
---|
| 401 | <systemitem class="username">root</systemitem> user:
|
---|
| 402 | </para>
|
---|
[c463c87] | 403 | <screen role="root"><userinput>systemctl enable wpa_supplicant-nl80211@wifi0</userinput></screen>
|
---|
[5bc57bb] | 404 |
|
---|
| 405 | <para>
|
---|
| 406 | If your using the second unit file
|
---|
| 407 | Create the
|
---|
| 408 | <filename>/etc/wpa_supplicant/wpa_supplicant-wired-<replaceable>eth0</replaceable>.conf
|
---|
| 409 | </filename> by running the following command as the
|
---|
| 410 | <systemitem class="username">root</systemitem> user:
|
---|
| 411 | </para>
|
---|
| 412 |
|
---|
| 413 | <screen role="root"><userinput>cat > /etc/wpa_supplicant/wpa_supplicant-wired-<replaceable>eth0</replaceable>.conf << "EOF"
|
---|
| 414 | <literal>ONBOOT="yes"
|
---|
| 415 | IFACE="<replaceable>eth0</replaceable>"
|
---|
| 416 | SERVICE="wpa"
|
---|
| 417 |
|
---|
| 418 | # Additional arguments to wpa_supplicant
|
---|
| 419 | WPA_ARGS=""
|
---|
| 420 |
|
---|
| 421 | WPA_SERVICE="dhclient"
|
---|
| 422 | DHCP_START=""
|
---|
| 423 | DHCP_STOP=""
|
---|
| 424 |
|
---|
| 425 | # Set PRINTIP="yes" to have the script print
|
---|
| 426 | # the DHCP assigned IP address
|
---|
| 427 | PRINTIP="no"
|
---|
| 428 |
|
---|
| 429 | # Set PRINTALL="yes" to print the DHCP assigned values for
|
---|
| 430 | # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
|
---|
| 431 | PRINTALL="no"</literal>
|
---|
| 432 | EOF</userinput></screen>
|
---|
| 433 |
|
---|
| 434 | <note>
|
---|
| 435 | <para>
|
---|
| 436 | Note that the argument after @ and the interface name,
|
---|
| 437 | ie eth0 must be the same.
|
---|
| 438 | </para>
|
---|
| 439 | </note>
|
---|
| 440 |
|
---|
| 441 | <para>
|
---|
| 442 | To enable it, issue the following command as the
|
---|
| 443 | <systemitem class="username">root</systemitem> user:
|
---|
| 444 | </para>
|
---|
| 445 |
|
---|
[c463c87] | 446 | <screen role="root"><userinput>systemctl enable wpa_supplicant-wired@eth0</userinput></screen>
|
---|
[5bc57bb] | 447 |
|
---|
| 448 | <para>
|
---|
| 449 | If your using the third unit file
|
---|
| 450 | Create the
|
---|
| 451 | <filename>/etc/wpa_supplicant/wpa_supplicant-<replaceable>eth0</replaceable>.conf
|
---|
| 452 | </filename> by running the following command as the
|
---|
| 453 | <systemitem class="username">root</systemitem> user:
|
---|
| 454 | </para>
|
---|
| 455 |
|
---|
| 456 | <screen role="root"><userinput>cat > /etc/wpa_supplicant/wpa_supplicant-<replaceable>eth0</replaceable>.conf << "EOF"
|
---|
| 457 | <literal>ONBOOT="yes"
|
---|
| 458 | IFACE="<replaceable>eth0</replaceable>"
|
---|
| 459 | SERVICE="wpa"
|
---|
| 460 |
|
---|
| 461 | # Additional arguments to wpa_supplicant
|
---|
| 462 | WPA_ARGS=""
|
---|
| 463 |
|
---|
| 464 | WPA_SERVICE="dhclient"
|
---|
| 465 | DHCP_START=""
|
---|
| 466 | DHCP_STOP=""
|
---|
| 467 |
|
---|
| 468 | # Set PRINTIP="yes" to have the script print
|
---|
| 469 | # the DHCP assigned IP address
|
---|
| 470 | PRINTIP="no"
|
---|
| 471 |
|
---|
| 472 | # Set PRINTALL="yes" to print the DHCP assigned values for
|
---|
| 473 | # IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
|
---|
| 474 | PRINTALL="no"</literal>
|
---|
| 475 | EOF</userinput></screen>
|
---|
| 476 |
|
---|
| 477 | <note>
|
---|
| 478 | <para>
|
---|
| 479 | Note that the argument after @ and the interface name,
|
---|
| 480 | ie eth0 must be the same.
|
---|
| 481 | </para>
|
---|
| 482 | </note>
|
---|
| 483 |
|
---|
| 484 | <para>
|
---|
| 485 | To enable it, issue the following command as the
|
---|
| 486 | <systemitem class="username">root</systemitem> user:
|
---|
| 487 | </para>
|
---|
| 488 |
|
---|
[c463c87] | 489 | <screen role="root"><userinput>systemctl enable wpa_supplicant-@eth0</userinput></screen>
|
---|
[5bc57bb] | 490 |
|
---|
[97a30d62] | 491 | <para>
|
---|
| 492 | If you prefer <xref linkend="dhcpcd"/> instead of
|
---|
[0d7900a] | 493 | <xref linkend="dhcp"/> client, then create the
|
---|
[5bc57bb] | 494 | <filename>/etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf
|
---|
[97a30d62] | 495 | </filename> by running the following command as the
|
---|
| 496 | <systemitem class="username">root</systemitem> user:
|
---|
| 497 | </para>
|
---|
| 498 |
|
---|
[5bc57bb] | 499 | <screen role="root"><userinput>cat > /etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf << "EOF"
|
---|
[97a30d62] | 500 | <literal>ONBOOT="yes"
|
---|
[5bc57bb] | 501 | IFACE="<replaceable>wifi0</replaceable>"
|
---|
[97a30d62] | 502 | SERVICE="wpa"
|
---|
| 503 |
|
---|
| 504 | # Additional arguments to wpa_supplicant
|
---|
| 505 | WPA_ARGS=""
|
---|
| 506 |
|
---|
| 507 | WPA_SERVICE="dhcpcd"
|
---|
| 508 | DHCP_START="-b -q <replaceable><insert appropriate start options here></replaceable>"
|
---|
| 509 | DHCP_STOP="-k <replaceable><insert additional stop options here></replaceable>"</literal>
|
---|
| 510 | EOF</userinput></screen>
|
---|
[a130a69] | 511 |
|
---|
[4c869cdd] | 512 | <para>
|
---|
[97a30d62] | 513 | Alternatively, if you use static addresses on your local network,
|
---|
| 514 | then create the
|
---|
[5bc57bb] | 515 | <filename>/etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf
|
---|
[97a30d62] | 516 | </filename> by running the following command as the
|
---|
[4c869cdd] | 517 | <systemitem class="username">root</systemitem> user:
|
---|
| 518 | </para>
|
---|
[a130a69] | 519 |
|
---|
[5bc57bb] | 520 | <screen role="root"><userinput>cat > /etc/wpa_supplicant/wpa_supplicant-nl80211-<replaceable>wifi0</replaceable>.conf << "EOF"
|
---|
[97a30d62] | 521 | <literal>ONBOOT="yes"
|
---|
[5bc57bb] | 522 | IFACE="<replaceable>wifi0</replaceable>"
|
---|
[97a30d62] | 523 | SERVICE="wpa"
|
---|
| 524 |
|
---|
| 525 | # Additional arguments to wpa_supplicant
|
---|
| 526 | WPA_ARGS=""
|
---|
| 527 |
|
---|
| 528 | WPA_SERVICE="ipv4-static"
|
---|
| 529 | IP="192.168.1.1"
|
---|
| 530 | GATEWAY="192.168.1.2"
|
---|
| 531 | PREFIX="24"
|
---|
| 532 | BROADCAST="192.168.1.255"</literal>
|
---|
| 533 | EOF</userinput></screen>
|
---|
[a130a69] | 534 |
|
---|
[4c869cdd] | 535 | <para>
|
---|
[97a30d62] | 536 | You can connect to the wireless access point by
|
---|
| 537 | running the following command as the
|
---|
[4c869cdd] | 538 | <systemitem class="username">root</systemitem> user:
|
---|
| 539 | </para>
|
---|
[a130a69] | 540 |
|
---|
[2e41a4f] | 541 | <screen role="root"><userinput>ifup <replaceable>wifi0</replaceable></userinput></screen>
|
---|
[97a30d62] | 542 |
|
---|
| 543 | <para>
|
---|
| 544 | Replace <replaceable>wlan0</replaceable> with the correct
|
---|
[2e41a4f] | 545 | wireless interface and <replaceable>wifi0</replaceable>
|
---|
| 546 | with desired name for the configuration file. Please note
|
---|
| 547 | that <filename>wpa_supplicant-*.conf</filename> and
|
---|
| 548 | <filename>ifconfig.*</filename> configuration files need
|
---|
| 549 | to have identical names, ie both contain
|
---|
| 550 | <replaceable>wifi0</replaceable> in their name.
|
---|
[97a30d62] | 551 | </para>
|
---|
[a130a69] | 552 |
|
---|
| 553 | </sect3>
|
---|
[97a30d62] | 554 |
|
---|
[a130a69] | 555 | </sect2>
|
---|
| 556 |
|
---|
| 557 | <sect2 role="content">
|
---|
| 558 | <title>Contents</title>
|
---|
| 559 |
|
---|
| 560 | <segmentedlist>
|
---|
| 561 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 562 | <segtitle>Installed Libraries</segtitle>
|
---|
| 563 | <segtitle>Installed Directories</segtitle>
|
---|
[0d7900a] | 564 |
|
---|
[a130a69] | 565 | <seglistitem>
|
---|
[8cce479c] | 566 | <seg>
|
---|
| 567 | wpa_gui, wpa_supplicant, wpa_passphrase and wpa_cli
|
---|
| 568 | </seg>
|
---|
[c3c56b2] | 569 | <seg>
|
---|
| 570 | None
|
---|
| 571 | </seg>
|
---|
| 572 | <seg>
|
---|
| 573 | None
|
---|
| 574 | </seg>
|
---|
[a130a69] | 575 | </seglistitem>
|
---|
| 576 | </segmentedlist>
|
---|
| 577 |
|
---|
| 578 | <variablelist>
|
---|
| 579 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 580 | <?dbfo list-presentation="list"?>
|
---|
| 581 | <?dbhtml list-presentation="table"?>
|
---|
| 582 |
|
---|
[8cce479c] | 583 | <varlistentry id="wpa_gui">
|
---|
| 584 | <term><command>wpa_gui</command></term>
|
---|
| 585 | <listitem>
|
---|
| 586 | <para>
|
---|
| 587 | is a graphical frontend program for interacting with
|
---|
| 588 | <application>wpa_supplicant</application>.
|
---|
| 589 | </para>
|
---|
| 590 | <indexterm zone="wpa_supplicant wpa_gui">
|
---|
| 591 | <primary sortas="b-wpa_gui">wpa_gui</primary>
|
---|
| 592 | </indexterm>
|
---|
| 593 | </listitem>
|
---|
| 594 | </varlistentry>
|
---|
| 595 |
|
---|
[a130a69] | 596 | <varlistentry id="wpa_supplicant-prog">
|
---|
| 597 | <term><command>wpa_supplicant</command></term>
|
---|
| 598 | <listitem>
|
---|
[4c869cdd] | 599 | <para>
|
---|
| 600 | is a daemon that can connect to a password protected wireless
|
---|
| 601 | access point.
|
---|
| 602 | </para>
|
---|
[a130a69] | 603 | <indexterm zone="wpa_supplicant wpa_supplicant-prog">
|
---|
| 604 | <primary sortas="b-wpa_supplicant">wpa_supplicant</primary>
|
---|
| 605 | </indexterm>
|
---|
| 606 | </listitem>
|
---|
| 607 | </varlistentry>
|
---|
| 608 |
|
---|
| 609 | <varlistentry id="wpa_passphrase">
|
---|
| 610 | <term><command>wpa_passphrase</command></term>
|
---|
| 611 | <listitem>
|
---|
[4c869cdd] | 612 | <para>
|
---|
| 613 | takes an SSID and a password and generates a simple
|
---|
| 614 | configuration that <command>wpa_supplicant</command> can
|
---|
| 615 | understand.
|
---|
| 616 | </para>
|
---|
[a130a69] | 617 | <indexterm zone="wpa_supplicant wpa_passphrase">
|
---|
| 618 | <primary sortas="b-wpa_passphrase">wpa_passphrase</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
| 623 | <varlistentry id="wpa_cli">
|
---|
| 624 | <term><command>wpa_cli</command></term>
|
---|
| 625 | <listitem>
|
---|
[4c869cdd] | 626 | <para>
|
---|
| 627 | is a command line interface used to control a running
|
---|
| 628 | <command>wpa_supplicant</command> daemon.
|
---|
| 629 | </para>
|
---|
[a130a69] | 630 | <indexterm zone="wpa_supplicant wpa_cli">
|
---|
| 631 | <primary sortas="b-wpa_cli">wpa_cli</primary>
|
---|
| 632 | </indexterm>
|
---|
| 633 | </listitem>
|
---|
| 634 | </varlistentry>
|
---|
[4c869cdd] | 635 |
|
---|
[a130a69] | 636 | </variablelist>
|
---|
[4c869cdd] | 637 |
|
---|
[a130a69] | 638 | </sect2>
|
---|
[4c869cdd] | 639 |
|
---|
[a130a69] | 640 | </sect1>
|
---|