Skip to content

Headless Pi

You'll set up a small computer with no screen, keyboard or mouse, find it on the network from across the room, and give it one job to do for a week.

About

Most people plug a Pi into a TV, poke at the desktop for an evening, and put it on a shelf. If you run it headless from the very first boot, you skip the shelf and go straight to the useful part. Any Pi works, including a used Pi 3 for about fifteen dollars or a Pi Zero 2 W. If you don't own one, the laptop in the drawer or any old board or mini PC counts as long as it boots from a card or stick you flashed yourself. A laptop with the lid shut even brings its own battery for the day the power blips, as long as you tell it to ignore the lid switch in logind.conf.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
One evening, then a week
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
You need some
Where
At home
Other people
On your own

Requirements

  1. 1
    Flash an OS to a card with SSH and Wi-Fi set up before the first boot. Use the official imager and open the settings gear before you write anything. Set a hostname, a username and a long password, turn on SSH, and type in your Wi-Fi details. If you skip this step you'll be hunting for an HDMI cable at midnight. Take a photo of the imager settings screen before you hit write. Photo
  2. 2
    Boot it and find it on the network without a monitor. Give it two minutes to come up, then try ssh to the hostname with .local on the end. If that doesn't answer, check your router's client list or run a quick scan with a phone app like Fing. Take a screenshot of your first successful login prompt. Photo
  3. 3
    Update everything and reboot it from the terminal. Run apt update, then apt full-upgrade, then reboot, and log back in once it's up. Take a screenshot showing uptime with a fresh boot and df -h showing how much space is left on the card. Photo
  4. 4
    Give it a fixed address so you can always find it. The easiest route is a DHCP reservation in your router tied to the Pi's MAC address. Reboot both the Pi and the router, and it should come back on the same address. Take a screenshot of the reservation and a ping that answers. Photo
  5. 5
    Give it one job to do unattended and leave it running for seven days. A network-wide ad blocker, a bookmark page, a temperature logger or a game server for one friend all count, so pick one you'll actually use. Take a screenshot of uptime at seven days, and tell us in one line what it did all week. Photo