BEFORE WE BEGIN:
- With Linux, there are a million ways to skin a cat. The steps below is the one that worked for me.
- I used Wheezy-Raspian (2012-09-18) image. This version already has the necessary driver/module pre-installed. You can confirm by issuing the following command: lsmod | grep r8712u output should be something like this: r8712u 165407 0
- We will be editing 2 files to make it work (interfaces & wpa_supplicant.conf).
- I used PuTTY to SSH to my Raspberry Pi to do my configurations, so that’s why it does not look like the LXTerminal ( all images below).
From an SSH session or terminal on your Pi, issue the following command to your RaspberryPi to update it:
sudo apt-get update
Then issue the following command to edit the network interface file of the Wheezy-Raspian OS:
sudo nano /etc/network/interfaces
Then append the following configuration as seen in image below.
After appending the new configuration, press the following keys in this order to save configuration:
ctrl + x (at above screen)
Then, Y (at above screen)
Finally, enter key (at above screen)
Then issue the following command to edit wpa_supplicant.conf file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Then appended the configuration (as seen on image below):
Repeat the step previously mentioned to save the configuration. Reboot your Raspberry Pi to complete the step and then test out your newly configured WiFi. USB WiFi dongle should be continuously blinking, this means configuration was setup successfully. DONE!
For Your Information:
#If you are finding that your wifi dongle does not reconnect to your wifi network after your Raspberry Pi reboots add:
into the /etc/network/interfaces
ssid: your wifi name
- set value to 1 if you are trying to connect to hidden network or if you have more than one wireless access point; each with different ssid (suggest you enter value of 1)
- alternatively, set value of 0 will do the opposite of value 1 (for home networks that broadcasts ssid)
psk: your wifi password
proto: your choice of RSN or WPA. RSN is WP2 and WPA is WPA1. (most config is RSN)
key_mgmt: your choice of WPA-PSK or WPA-EAP (pre-shared or enterprise respectively)
pairwise: your choice of CCMP or TKIP ( WPA2 or WPA1 respectively)
auth_alg: OPEN option is required for WPA and WPA2 (other option, SHARED & LEAP)