Hardware Reference
In-Depth Information
Figure 4-6:
Editing the
interfaces
ile for wireless
network access
Once the entry is in place, save the ile by pressing CTRL + O and then quit
nano
with CTRL + X.
The device ID of
wlan0
is correct if this is the irst wireless device you've set up on your Pi. If
it isn't, the number at the end will be different. Type
iwconfig
to see a current list of wireless
devices, and change the lines in the preceding code example accordingly.
TIP
he last line of the
interfaces
ile makes reference to a coniguration ile,
wpa.conf
,
which does not yet exist. his ile is used by a tool known as
wpasupplicant
, designed to
provide Linux with an easy way to connect to networks secured with
Wireless Protected Access
(WPA)
encryption.
Using
wpasupplicant
, you can connect the Pi to almost any wireless network—regardless
of whether it's protected by WPA or its newer replacement WPA2—in both
Advanced
Encryption Standard (AES)
and
Temporal Key Integrity Protocol (TKIP)
modes. Despite its
name,
wpasupplicant
also allows connection to wireless networks using the older
Wired
Equivalent Privacy (WEP)
encryption standard.