Headless Setup

From Autopilot Wiki
Jump to: navigation, search

How to setup RaspiOS without a keyboard or monitor

Accessing

  • Create a RaspiOS bootable microsd card (Installing RaspiOS or Official documentation)
  • Create a file named SSH (without extension) in the /boot directory (SSH)
  • In Bullseye or Newer: Create a file userconf.txt in /boot with format username:encrypted-password
    • To get an encrypted password, use
    echo 'mypassword' | openssl passwd -6 -stdin
  • Optionally: Configure WiFi
  • You should now be able to open a shell to your raspberry pi with ssh username@ip.address - consult your router configuration for the IP.


References