v290ta
Last Updated: February 25, 2016
·
40.94K
· chase_chou
Default profile 6 normal

Raspberry Pi - Wifi Setup with WPA2-PSK [aes]

Edimax EW-7811Un 150Mbps 11n Wi-Fi USB Adapter - $7

Setting up the Raspberry Pi was a breeze. The only snag came when I tried to configure my wifi dongle with my wifi network settings. My router, a Netgear N900, is setup to use WPA2-PSK with AES encryption and after trying out a few things as suggested by multiple blogs, none of them worked... until I came across this:

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=50312

The configs below also set a manual IP at 192.168.1.60.

/etc/network/interfaces:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
address 192.168.1.60
netmask 255.255.255.0
gateway 192.168.1.1
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

/etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="replace_with_your_ssid"
psk="replace_with_your_password"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}

Then I installed wicd and wicd-curses with the following commands:

sudo apt-get install wicd
sudo apt-get install wicd-curses

Run wicd-curses at the command line and setup your wireless network and let it automatically connect to this network on startup.

Reboot and I was able to connect to my wireless network.

4 Responses
Add your response

17095
S90o6010 normal

Excellent info. I was having issues as well until I found this page. Thanks for documenting this!

over 1 year ago ·
17693
None

Bon,

Good stuff. Thanks. Two tiny additions.
1./ Missing end curley bracket
2./ Look here for curses info http://www.raspyfi.com/wi-fi-on-raspberry-pi-a-simple-guide/

over 1 year ago ·
17717
Default profile 6 normal

@marklucking, thanks for pointing that out! updated.

over 1 year ago ·
18157
Yo5 normal

Do you Sell an already built device?

over 1 year ago ·