Enable Wifi using command line in Linux

WPA Supplicant is needed!

Also the interface is needed that can be obtained using iw dev

$ wpa_passphrase myrouter mypassphrase > wpa.conf
$ wpa_supplicant -Dwext -i{interface name} -c/path/to/wpa.conf
$ dhclient {interface name}

Resolve DNS problems:

After getting online, better to use nmtui

Tags linux

Back