Help you to setup a wpa supplicant configuration file for Raspbian Stretch or later on new headless Rasbian installation.
These will be step-by-step instruction on how to create the configuration file on any OS and Rasbian installation.
Git or Git for Windows needs to be install on the pc. You can download a copy from Git Official Website.
- Run the following command in command prompt or terminal window:
git clone https://github.com/asparatu/raspberrypi-wpa-supplicant.conf.git
- Move into the folder
cd raspberrypi-wpa-supplicant.conf
- Edit the configuration file
Linux: nano wpa_supplicant.conf
Windows: notepad wpa_supplicant.conf
-
Edit country to your two letter ISO Code. If you do not know yours, check countrycode.org or keep the default of US
-
Edit the Wifi SSID and PSK to your Wifi Information.
ssid="YOUR-SSID"
psk="wpa_passphrase"
Note: If using clear text password make sure you keep the quotes. If you use a hash of the password, you do not need to have quotes.
- Save the file and copy the file to the Boot directory on the microSD card.
- Optional: To enable SSH Server on boot, you need to copy the ssh file to the root of the microSD card.
You can connect to the Raspberry Pi by typing ssh pi@raspberrypi.local or ssh pi@(ip address) at the command prompt or terminal window and default password is raspberry
Shane Saunders - Initial work - asparatu
This project is licensed under the MIT License - see the LICENSE.md file for details