How to connect wireless (dhcp) via CLI Ubuntu
set your wifi and password. open ”/etc/network/interfaces” and add this:
…..
auto wlan0
iface wlan0 inet dhcp
wpa-ssid yourWirelessName
wpa-psk yourWirelessPasswd
then type in your lovely terminal ( ctrl+alt+T )
- #ifconfig wlan0 up
- #iwlist wlan0 scan
- #iwconfig wlan0 essid YourESSIDName
- #dhclient wlan0