To setup a headless Raspberry Pi with WIFI and SSH access on Raspberry Pi OS follow these steps:

  1. Clone or fork
  2. Set a password for pi user
    • Edit userconf.txt: pi:ENCRYPTED_PASSWORD
      • ENCRYPTED_PASSWORD from echo 'mypassword' | openssl passwd -6 -stdin
  3. Configure WIFI:
    • Edit wpa_supplicant.conf and change the placeholders to the correct values:
      • YOUR_SID

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