While you can configure WiFi via the Raspi-config method, it can be usefull to do it ‘by hand’. This is how you do that.
From the command prompt give the following commands.
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
At the bottom of the tekst add these lines and replace the network name with the name of your WiFi network (SSID) and password with the password of your WiFi network. Leave the quotation marks before and after both the name and the password.
network={
ssid=”network name”
psk=”password”
}
Save and close the file with CTRL + X, Y and ENTER and reboot your Pi for the configuration to take effect.
sudo reboot now