Setting up a headless Raspberry Pi
Last night I set up a new Raspberry Pi - this one to attach to a document scanner to make a paper-to-cloud device. Every time I do this I have to look up the specific steps to required to set up a headless (i.e. not attached to a monitor) Raspberry Pi. As Simon has observed, one of the best uses of a personal blog is to make notes to your future self. So, future Jacob, here’s now you set up a headless Raspberry Pi:
Use Raspberry Pi Imager to burn the image to an SD card. You probably want the “Raspberry Pi OS Lite” image.
On the image (which will be in
/Volumes/booton macOS):touch sshto allow SSH access.create
wpa_supplicant.conf:country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ scan_ssid=1 ssid="your_wifi_ssid" psk="your_wifi_password" }
Boot the thing.
ssh [email protected]; the default password israspberry.sudo raspi-config, change (at minimum) the hostname andpiuser password, then reboot.ssh [email protected].sudo apt update && sudo apt upgrade.Reboot one more time, if needed (e.g. if there was a kernel update).