RPI‎ > ‎

auto select Wifi AP

Using the guide from here: http://www.raspberrypi.org/forums/viewtopic.php?t=11517

You might need to disable wicd if previously used

 sudo update-rc.d wicd disable


sudo nano /etc/network/interfaces


old
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

suggested 
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

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


# use only if you have a second Wifi device
#auto wlan1
#allow-hotplug wlan1
#iface wlan1 inet manual
#wpa-driver wext
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface win7 inet dhcp
iface duane inet dhcp
iface default inet dhcp

used

auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


iface RPIC inet dhcp
iface GupME inet dhcp
iface default inet dhcp



sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

old

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1


suggested
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
eapol_version=1

network={
ssid="ENTER SSID HERE"
scan_ssid=1
mode=0
proto=WPA2
auth_alg=OPEN
pairwise=CCMP
group=CCMP
key_mgmt=WPA-PSK
psk="ENTER PASSKEY HERE"
id_str="win7"
priority=1
}

network={
ssid="ENTER SSID HERE"
scan_ssid=1
mode=0
proto=WPA2
auth_alg=OPEN
pairwise=CCMP
group=CCMP
key_mgmt=WPA-PSK
psk="ENTER PASSKEY HERE"
id_str="duane"
priority=0
}

# network={
# ssid=""
# key_mgmt=NONE
#}


used

update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
eapol_version=1

network={
ssid="RPIC"
scan_ssid=1
mode=0
proto=WPA2
auth_alg=OPEN
pairwise=CCMP
key_mgmt=WPA-PSK
psk="xxxxxx"
id_str="RPIC"
priority=1
}

network={
ssid="GupME"
scan_ssid=1
mode=0
proto=WPA2
auth_alg=OPEN
pairwise=CCMP
key_mgmt=WPA-PSK
psk="xxxx"
id_str="GupME"
priority=0
}

# network={
# ssid=""
# key_mgmt=NONE
#}






espeak -p 40 -a 200 "IP Adress is $(hostname -I)"


Comments