Archive for how to

Setup WIFI on Raspberry Pi

SSH into the Raspberry Pi over ethernet (see above).
Install the WPA wireless tools
sudo apt-get install wpasupplicant wireless-tools

Edit the networking file to use the wpa-supplicant file for wireless configuration:
sudo nano /etc/network/interfacesEnsure the wlan0 section uses the following lines:
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Optional: if static ip is desired replace “dhcp” above with “static” and add the following lines under it:
address 10.0.0.200 (my static address outside of the dhcp)
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255

Edit the wpa-supplicant file
sudo nano /etc/wpa_supplicant/wpa_supplicant.confEnsure that it has the following lines
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid=”YourSSID”
psk=”password”
key_mgmt=WPA-PSK
}

Save the file, disconnect the ethernet cable, and reboot the Raspberry Pi. It should now connect to the wireless network.