Here's an easy way to get the Raspberry Pi to connect to your network.
Create the file wpa_supplicant.conf
and put it in the boot folder of the SD card. Add the following to wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FI
network={
ssid="your_network_name"
psk="your_password"
}
These settings are entered in your network settings, and the file is deleted after boot.