BEFORE WE BEGIN:
- With Linux, there are a million ways to skin a cat. What I’m showing 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).
Step #1: From the SSH session, 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)
Step #2:
From the SSH session terminal, 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!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FYI:
ssid: your wifi name
scan_ssid: value of 1 means broadcast and value of 2 means hidden (suggest you enter value of 1)
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)




Gary Newell
December 10, 2012 at 10:34 pm
You are an absolute genius. I’ve been playing for hours trying to get mobile broadband working using wpa_supplicant. Reading your page made it work for me. Thankyou
george moore
May 5, 2013 at 7:54 pm
DITTO!!!!!!! above. I searched many web sites with ?genius? information until I found this. Thank you.