- country=xx
- update_config=1
- ctrl_interface=/var/run/wpa_supplicant
- network={
- scan_ssid=1
- ssid="WIFINAME"
- psk="WIFIPASSWORD"
- }
- Replace XX with your Country Code
- Replace WIFINAME with your own WIFI SSID
- Replace WIFIPASSWORD with your own WIFI password
Your completed file should look something like this:
- Copy this file to the boot partition of your SD card
- Safely eject the SD card
- Place the SD card back into the Raspberry Pi and boot as normal
Checking the file extension
It is important to save this file as the correct type of file. If not done correctly it will not work. Notepad, by default, will append .txt to any file you save.
When creating and saving the files with different file extensions, ensure your computer does not add .txt to the end of the filename. You may have to enable 'File name extensions' on your computer to allow you to see the full file name.
With 'File name extensions'
enabled. The file on the right in NOT correct.
With 'Filename extensions' disabled. It is difficult to see which file is correct.
The incorrect file actually looks like it should be the correct one.
Country Codes