Headless Raspberry Pi setup
To setup a headless Raspberry Pi with WIFI and SSH access on Raspberry Pi OS follow these steps:
- Clone or fork https://github.com/declarativesystems/raspberrypi_configs
- Set a password for
piuser- Edit
userconf.txt:pi:ENCRYPTED_PASSWORD- ENCRYPTED_PASSWORD from
echo 'mypassword' | openssl passwd -6 -stdin
- ENCRYPTED_PASSWORD from
- Edit
- Configure WIFI:
- Edit
wpa_supplicant.confand change the placeholders to the correct values:YOUR_ISO_COUNTRY_CODEYOUR_SIDYOUR_PASSWORD
- Edit
Copy everything to the /boot partition on your SD card. Now if you need to
setup another Pi, you can just copy the files to another SD card.
You can backup your changes to github by committing and pushing them but don’t forget to set the repository to private to avoid sharing your passwords