Connect to WiFi on Ubuntu-Server


# ip a
# apt-get install network-manager wpasupplicant
# reboot

# nm-tool  ------> To get ESSID of   WiFi

# wpa_supplicant > /etc/wpa.conf

#

# cat /etc/wpa.conf
# wpa_supplicat -iwlan0 ic/etc/wpa.conf -B


For Permanent Settings
--------------------------------------


# vi /etc/network/interfaces
...
auto wlan0
iface wlan0 inet dhcp
wpa-conf  /etc/wpa.conf

#