Adding the Adafruit USB Wifi Dongle to Raspbian on Raspberry Pi

Now this is just a quick post, but since I've done this a few times this last week I thought I'd put it online. This is how to add the Adafruit USB Wifi Dongle to your Raspberry Pi via command line. I'm using the Pi headless and I find an extra keyboard mouse and monitor on my desk makes me confused. I'm forever picking up the wrong mouse and typing on the wrong keyboard.

It's super simple from the command line and you don't need any updates or even to create a file, it's all there for you, you just need to use it!

Edit the file with your favourite editor (ours is vi)

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
So the file reads
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
# WPA-Personal (PSK)

Where home is your ssid, home_psk is your password and id_str is also your ssid for ease of reference. Close the file and go for a reboot. I've tried restarting networking but it didn't bring everything back so reboot was the quick and dirty fix. 

Once you've logged back in try ifconfig and your wlan0 should show it's shiny new IP address and you can update all of your installed packages or do whatever you want. I'm going to update! See you soon.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.