New WPA keys can be stored like this:
# wpa_passphrase ssid password >> /etc/wpa_supplicant.conf
You may connect to an access point by invoking following commmand:
# wpa_supplicant -i interface -B -D driver -c conf_file
interface – network interface (mostly
wlan0 or wlan1)driver – driver for the network card
(wext almost always works)conf_file – configuration file with all the network
information (see above, /etc/wpa_supplicant.conf)
To obtain an IP address, use dhcpcd:
# dhcpcd wlan0
back