Element14 - Wi-Pi User Manual
Element14 - Wi-Pi User Manual
on Raspberry Pi
Software
Information
One obvious point. One USB socket will now be dedicated to Wi-Pi. That means you are going to need to use a
USB hub to connect a keyboard and mouse.
Operating System Support
Raspbian already has Wi-Pis drivers built in, so the process of downloading the driver and installing it is not
necessary. However, there are still a few actions necessary before Wi-Pi can be fully operational on your
Raspberry Pi.
Editing Files
If you arent familiar with editing text files, now is the time to learn! It is better to use a command line editor like
vi or nano, both of which are already installed on Raspberry Pi. Whichever one is choosen, it is important they are
run as the root or superuser, otherwise any edits made will not be saved due to security restrictions. This is
achieved by using the command sudo before starting the selected editor. sudo means superuser do, and is a
way becoming the administrator for the computer, albeit for the duration of the command:
sudo vi <file to be edited>, or
sudo nano <file to be edited>
If you prefer to use an editor from the desktop like Leafpad, you can, but you must start it with the command line
command
sudo leafpad <file to be edited>
Also note that if you havent already made sure you have changed directory to the place where the files to be
edited are located, you need to include the full path to the file as well.
ESSID
The is the WiFi name your wireless router
uses to identify itself.
Encryption Type
Usually, this falls into to two main groups,
WEP and WPA/WPA2.
Encryption Key
The alphanumeric key you have to enter to
gain access to your WiFi network.
The file we need to edit is called interfaces, and it is located in folder /etc/network. So, if we were using
Nano, the command we need to use would is
root@raspberrypi:~# sudo nano /etc/network/interfaces
The file will already have a network entry for the localhost, or loopback network interface, and the
Ethernet socket, known as eth0. Were going to add a new interface called wlan0,
There are two slightly different ways of editing this file, depending on which of type broad types of
encryption is in use on the WiFi network you wish to connect to.
In the case of WPA/WPA2, add the following lines to the end of the interfaces document:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid <name of your WiFi network>
wpa-psk <password of your WiFi network>
If that didnt work, its time to look a little closer to the wireless interface itself. Again, in the
command line, type ifconfig. You should get a response made up of three main sections, which are
the key interfaces eth0, lo, and wlan0. If the wlan0 section exists, that is good it means part of
your configuration worked go and check your typing, and the WiFi access point information you
have entered. If, within that section, you have an entry that reads
inet addr: 192.168.1.43 (or some other address)
that is good, and means you have succeeded. There will be a problem elsewhere related to your WiFi
access point or router that needs to be resolved.
Revisions
24-Aug-2012
18-Oct-2012
Revision 1.0
Revision 1.1