- In the command line run
sudo iwlist wlan0 scancommand to list all wifi networks are in the range - Look this label
ESSID:"<network-name>"in the result of each network - Edit
wpa_supplicant.conffile withsudo,sudo vi /etc/wpa_supplicant/wpa_supplicant.conf - At the end of the file add next lines changing the values
ssidnetwork-name andpskpassword of your network
network={
ssid="<your_network_name>"
psk="<your_wifi_password>"
}
- If the wifi is not connected try restart the interface run the next commands
sudo ifdown wlan0andsudo ifup wlan0