setup wireless on raspberry pi
One of the first things you should do once you have your Raspberry Pi is setup a wireless network adapter. This will allow you to be cable free. To configure, you will need one of several approved USB wireless adapters. I’m using an Airlink 101 Wireless N 150 Ultra Mini-USB Adapter that I purchased at Amazon for just $14. I chose the Airline 101 because it was affordable, and it works very well with the Raspberry Pi.
10 steps to setup wireless on Raspberry Pi:
- Plug in the Airlink 101 adapter.
- Power up the the Raspberry Pi.
- To see if the wireless device is recognized, type lsusb.
- To see if the kernel driver is installed, type lsmod.
- Edit the /etc/network/interfaces file.
- Edit the /etc/wpa_supplicant/wpa_supplicant.conf file.
- Reboot.
- Check with ifconfig.
- Check with ping.
- All done.
Here are the commands, instructions and their respected screen outputs.
$ lsusb
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
$ lsmod
8192cu 485042 0
$ sudo nano /etc/network/interfaces
# Add the following lines:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
# Add the following lines:
network={
ssid="The_SSID"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="The_WPA_SHARED_KEY_"
}
$ sudo reboot
$ sudo ifconfig wlan0
$ ping yahoo.com