Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Description on how to set up wifi on raspberry pi running raspian

Run sudo cp /usr/share/doc/wpasupplicant/examples/wpa-roam.conf /etc/wpa_supplicant/wpa-roam.conf

Edit /etc/wpa_supplicant/wpa-roam.conf and uncomment update_config=1

and add:

network={
    ssid="<your ssid here>"
    psk="<wireless password here>"
}

Set /ect/network/interfaces up as:

auto lo
iface lo inet loopback

# governed by ifplugd ... do not use allow-hotplug or auto options
iface eth0 inet static
    address <staticIp>

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa-roam.conf

#this line must always be here
iface default inet dhcp

Run sudo dpkg-reconfigure ifplugd as outlined here: http://manual.aptosid.com/en/inet-ifplug-en.htm

See http://manual.aptosid.com/en/inet-setup-en.htm for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment