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
pi
user- Edit
userconf.txt
:pi:ENCRYPTED_PASSWORD
- ENCRYPTED_PASSWORD from
echo 'mypassword' | openssl passwd -6 -stdin
- ENCRYPTED_PASSWORD from
- Edit
- Configure WIFI:
- Edit
wpa_supplicant.conf
and change the placeholders to the correct values:YOUR_ISO_COUNTRY_CODE
YOUR_SID
YOUR_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