I have a Raspberry Pi 4. Raspbian is my favorite, by far. The ability to set it up for headless login over SSH, over wifi (right from the first boot), is a great feature. No keyboard, mouse, monitor, or even ethernet cable, needed for the Pi!
Would you like your Raspberry Pi to connect to Wifi at boot time, automatically? Yes?
- In the boot partition (after imaging Raspbian), add a file called “wpa_supplicant.conf”, with the contents:
Replace «your_ISO-3166-1_two-letter_country_code» with your ISO Country Code (such as CA for Canada), «your_SSID» with your wireless access point name and «your_PSK» with your wifi password.
Next, touch the file “ssh” in the boot partition. That is to say, create an empty file, called “ssh”, no filename extension. This allows headless login over SSH.
Then safely unmount the MicroSD card, put into Raspberry Pi, and boot it.
Wait for partition resizing to complete, green light goes out for a good while
ssh in, try:
Default password is “raspberry”, change it once you’re logged in, with the passwd command.