On Fri, Sep 30, 2011 at 04:19:30PM +0100, Chris G wrote:
You'll need to install wpa-supplicant as a minimum, you can configure the wifi in /etc/network/interfaces if you like, and if it's going to be in different wifi spots, then you can use a mapping script.
E.g. I have the following in my /etc/network/interfaces file on my personal laptop:
--- start snippet ---
allow-hotplug wlan0 mapping wlan0 script /usr/local/bin/sommitrealweird-wifi
iface wlan0-delice inet dhcp hostname erwin wpa-ssid delice wpa-psk fabien93
iface wlan0-florist inet dhcp hostname erwin wpa-ssid The Florist wpa-psk florist2223
--- end snippet ---
The script mentioned simple does a iwlist wlan0 scan, gathers the list of ESSIDs available then echos back the correct name for the wlan0 alias (and takes in to account my preferences if there's more than one network it can see).
OK, thanks, that shows me the basics.
Hmmm. My eeePc has wpasupplicant installed already. I have added the following to /etc/interfaces:-
iface wlan0-locaboat inet dhcp hostname eeepc wpa-ssid tehSSID wpa-psk thePassword
What else needs to be done? When I reboot I still don't have a network connection. The locaboat WiFi is the only one I need at the moment.