Base Headless Pi Setup
This page describes how to get a Pi to a base level headless configuration (ie, SSH & networking enabled, all packages up to date)
- Minimum sd card size is 4GB
YouWARNING: can'tOld justmethod dd
of thePi sdSD card imagesetup anyNO moreLONGER WORKS!
Used to be that you could just write the Raspbian image to a card, add the ssh
file in the /boot
partition, and ssh into the pi, but the normal pi/raspberrypiuser/password combouser was removed.removed in new OS versions. Instead, the Pi imagerImager tool must be used.
Install the imaging software and write the SD card
-
install the imaging software. On arch:
`yaysudo pacman -S rpi-imager`imager(On other OS's, the package manager is different, but the package name should be
roughlythesame.same or similar.)
2) Plug in the SD card that will go into the pi
- *
- hostname
- * enable ssh
- * username/password
- * wifi (if the pi has wifi)
- * Locale (time zone/keyboard layout)
Boot the Pi and login
- Insert the SD card into the Pi
- plug in ethernet to the Pi if not using wifi (most USB ethernet adapters are supported)
- Apply power to the Pi
- wait for it to come online and log in via SSH (check local DHCP server logs for Pi's IP)
Post-install steps (after logging in):
- run
sudo raspi-config
to finish SD card setup:- 6 Advanced Options --> A1 Expand File System
- reboot the Pi
- update packages with
sudo apt update && sudo apt upgrade
The Pi can now be used for it's intended project.