Raspberry PI OS headless install

Raspberry PI OS headless install

raspberry wifi

  • Get Raspberry PI OS (I prefer the 64 bit-light).
  • Flash it (see install guide)
  • Mount the /boot partition, for instance in /tmp/boot, then run (with the username and password you want) :
  cd /tmp/boot
  touch ssh
  echo 'mypassword' | openssl passwd -6 -stdin | sed -e 's/^/username:/' > userconf
  • For wifi, put the file wpa_supplicant.conf in /boot, containing:
network={
    ssid="YOUR_SSID"
    psk="YOUR_PASSWORD"
    key_mgmt=WPA-PSK
}

~~~

Question, remark, bug? Don't hesitate to contact me or report a bug.