Create the initial image with remote access enabled
Use Raspberry Pi Imager to write the operating system and configure headless options at the same time. In the advanced settings, enter wireless network details, enable SSH, and set a username and password. This produces a bootable card that connects on first power-up without any local peripherals.
If you prefer manual control, flash the image first and then create an empty ssh file in the boot partition. The file tells the system to start the SSH server on the next boot. Both methods achieve the same result: the Pi joins the network and accepts remote connections.
- Choose Raspberry Pi OS Lite when a desktop is unnecessary.
- Record the exact image version and date for future reference.
- Store the custom settings file used during imaging with the project notes.
Confirm network connectivity and SSH access
After the first boot, locate the IP address through your router's DHCP list or by checking connected devices. Connect from another computer with the ssh command using the username and IP. Accept the host key on the first connection and enter the password when prompted.
If the connection times out, verify the wireless credentials or try a wired Ethernet connection. Some Raspberry Pi models and adapters do not support 5 GHz networks, so confirm compatibility before deployment. Once SSH works, you can continue configuration remotely.
- Test both password and key-based authentication if you plan to use keys later.
- Note the hostname so you can reach the device by name after DNS updates.
- Disable password authentication only after confirming key login succeeds.
Apply updates and maintain system identity
Run sudo apt update followed by sudo apt full-upgrade to bring packages, kernel, and firmware current. Reboot after major updates to load the new kernel. Schedule or document this step so the device does not drift out of date.
Keep a consistent username and hostname across reinstalls. Changing these values later can break scripts and monitoring. Record the final hostname, username, and any custom groups in your project notes so you can recreate the same identity during recovery.
- Check the output of uname -r after each reboot to confirm the running kernel.
- Avoid running full upgrades during active production windows.
- Store the output of dpkg -l in a dated file for version tracking.
Prepare recovery options before problems occur
Create a second SD card with the same image and settings. Label it clearly and store it with the device. If the primary card fails or an update corrupts the filesystem, swap cards and regain access quickly.
Enable VNC through raspi-config only after confirming SSH works. VNC provides a graphical desktop when needed, but it is unavailable on Lite images. Document the exact commands used to re-enable SSH or VNC so you can repeat them from a recovery card.
Keep a recent backup of important configuration files and any project data. Copy these files off the device regularly. When restoring, place the files back in their original locations before restarting services.
- Test the spare card on the same hardware at least once.
- Write the date and image version on the spare card label.
- Store recovery notes in a location separate from the Pi itself.
Verify the complete setup and document the process
After all steps, reboot the device and confirm it rejoins the network and accepts SSH within a few minutes. Run a simple command such as uptime to verify the connection. Note any delays or errors for future troubleshooting.
Write a short checklist that includes the imaging settings, network details, update commands, and recovery card location. Keep this checklist with the project so anyone maintaining the device can follow the same steps without guessing.
- Reboot at least twice to confirm consistent network attachment.
- Record the final IP address and any DHCP reservation used.
- Review the checklist after any hardware or OS change.