[LAU] Console tools for linux audio and other things

Nick Copeland nickycopeland at hotmail.com
Thu Mar 28 12:51:53 UTC 2013


> As for wifi, hmm Harry, I don't quite remember of a manager program.
> I just use the following set of commands:
> # ip link set wlan0 up
> # iwlist wlan0 scan | less

GUI apps and CLI toolkits are generally a front end to the required commands:
    ifconfig wlan0 up    iwlist wlan0 scan | egrep -i '(key|essid|auth)'
Choose the essid you want, see if it has a key and if so the auth type. If auth is as below you can connect to the net with:
    NONE/off: iwconfig wlan0 essid <wlan id>
    WEP: iwconfig wlan0 essid <wlan id> key <passphrase>        OR if the key is passphrase rather than hex    WEP: iwconfig wlan0 essid <wlan id> key s:<passphrase>
PSK is a bit more work, first generate a key file, then start the negotiation
# wpa_password <wlan id>  >~/wpa.key# reading passphrase from stdindafttxtstartszebrassweetgrassfeedfestcraze
# wpa_supplicant -i wlan0 -c ~/wpa.key
Finally
# dhclient wlan0
And you should be good to go. You might want to bounce (down/up) the interface as doing so will force an event to start the negotiation. Do that before the dhclient.
You could script this especially if you generally only sign on to your home network. I travel a lot so prefer to just type it all in. Lots more fun. BTW none of this works if you have a network manager app running, they will complete for the settings and things become very frustrating/unpredictable. If your wlan0 id has spaces, '@', '-', things like that, then you will need to quote the wlan id string.
Regards, nick. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20130328/de79c7a9/attachment.html>


More information about the Linux-audio-user mailing list