6

Connecting to the wireless(WPA) from commandLine

view full story
linux-howto

http://askubuntu.com – I want to be able to connect to my WIFI(WPA) network from the command Line.I installed wpasupplicant from the repository and created two files. ONe a script and another a configuration file . Bash script: #!/bin/sh iface=wlan0 #shut down interface ifconfig $iface down #set ad-hoc/management of wireless device iwconfig $iface mode Managed #enable interface ifconfig $iface up #stop any persistent wireless wpa2 sessions killall wpa_supplicant #apply WPA/WPA2 personal settings to device wpa_supplicant -B -Dwext -i $iface -c ./wireless-wpa.conf -dd #obtain an IP address dhclient $iface Co (HowTos)