Skip to content

Instantly share code, notes, and snippets.

@james-gibson
Created August 17, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james-gibson/94e042b3e6e785259d6d to your computer and use it in GitHub Desktop.
Save james-gibson/94e042b3e6e785259d6d to your computer and use it in GitHub Desktop.
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