I got a Raspberry Pi 4 in the mail today. I ordered it because… COVID-19? New model? More memory? I definitely don’t have a plan for it yet, but it seemed like a fun busy box while I’m stuck inside.
What I didn’t notice when I ordered it, though, is that this version comes with Micro HDMI ports. I definitely don’t have a dongle for that.
Nevertheless, I recalled from past experience that headless setup is pretty easy. It definitely is, but I wanted to write it down for future reference:
- This is the hardest part: find your Micro SD card adapter. It’s probably not where it should be. Once you have it, plug your Raspbian-loaded SD into your laptop. And double-check that the read-only switch isn’t flipped (so annoying).
- Mount the card and
cd
into/media/<you>/boot
. touch ssh
, a magic file the OS will look for at boot.-
Create
wpa_supplicant.conf
in the same directory and fill it with something like:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US network={ ssid="<SSID>" psk="<Password>" }
- Unmount and eject the SD. Plug it into your Raspberry Pi. Power it on.
- Find the IP address of the Raspberry Pi, (probably) most easily done by signing into your Wi-Fi router admin panel.
- SSH into it with
ssh pi@<IP Address>
, usingraspberry
as the default password. - Remember to change the default password with
passwd
(if you aren’t already prompted to do so).
🥧