Skip to content

Instantly share code, notes, and snippets.

@stephen-mw
Last active December 27, 2015 07:09
Show Gist options
  • Save stephen-mw/7286832 to your computer and use it in GitHub Desktop.
Save stephen-mw/7286832 to your computer and use it in GitHub Desktop.
Raspberry Pi Wireless Example Settings
Setting up the wireless on your raspbian pi is tricky over the commandline. Here's some example settings that should get you online with a typical wpa wireless G network.
```/etc/network/interfaces```
```
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
```
```/etc/wpa_supplicant/wpa_supplicant.conf```
```
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SomeAP"
psk="Some Password"
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
auth_alg=OPEN
}
```
If you want to see what access points are available and what the encryption type is, you can run:
```
iwlist scan
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment