Find the available wireless interface:
Scan Wireless networks
iwlist wlan0 scan “wlan0 is the wireless interface”
Connect wifi with WPA Network
iface wlan0 inet dhcp
wpa-ssid "SSID name without quotes"
wpa-psk "Password without quotes"
# When the wpa_supplicant is available in the interfaces file place a # in front of it
to enable the configuration type, ifup wlan0 or reboot the operation system.