Operation Manual

Once the entry is in place, save the file by pressing CTRL + O and then quit nano with CTRL + X.
The device ID of wlan0 is correct if this is the first 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.
The last line of the interfaces file makes reference to a configuration file, wpa.conf, which does not yet exist. This file 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 its protected by WPA
or its newer replacement WPA2in 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.
The wpasupplicant program stores its configuration in a file called wpa.conf, located in the /etc directory. To begin
configuring the Pi for wireless access, first open a new blank file for editing by typing the following:
sudo nano /etc/wpa.conf
Enter the following two lines, which again, are the same for any wireless network type. Replace Your_SSID with the SSID for
the wireless network to which you want to connect, and then finish the file with the lines that match your networks encryption
type.
network={
[Tab] ssid=Your_SSID
At this point in the configuration file, the details required differ depending on the type of wireless network you are configuring.
The following subsections provide instructions for completing the configuration for unencrypted, WEP and WPA networks.
No Encryption
If your wireless network has no encryption in place, finish the wpa.conf file as follows:
[Tab] key_mgmt=NONE
}
Save the file with CTRL + O, and then exit nano with CTRL + X.
WEP Encryption
If your wireless network uses WEP encryption, finish the wpa.conf file as follows: