The Homelab Bench is reader-supported. As an Amazon Associate we earn from qualifying purchases; this article contains affiliate links.
This guide takes a Raspberry Pi 5 from a bare board to a fully updated, network-connected computer you can manage from your laptop over SSH. You will flash the microSD card with Raspberry Pi Imager 2, fit the cooler, boot it, and lock in a few sensible settings. At the end you will be ready to run Home Assistant, host small self-hosted services, or just learn Linux.
Current as of November 2026: Raspberry Pi Imager 2.0, Raspberry Pi OS based on Debian 13 (Trixie).
Prefer to watch? Here is the full walkthrough on video:
What You Need Before You Start
Gather everything below before you start. Missing one item usually means stopping halfway.
- Raspberry Pi 5 board: available with 1 GB, 2 GB, 4 GB, 8 GB or 16 GB of RAM. For Home Assistant or general self-hosting, 4 GB or 8 GB is the sweet spot. The 1 GB model suits single-purpose jobs like a DNS blocker.
- Official 27 W USB-C power supply: the Pi 5 uses USB Power Delivery to check that the supply can provide 5 V at 5 A. If it can’t, the board limits the total current for its USB ports to 600 mA instead of 1.6 A and shows a warning. Lower-rated chargers still boot it, but USB drives and other accessories may struggle.
- microSD card, 32 GB or larger, A1 or A2 rated: this holds the operating system.
- microSD card reader: to connect the card to your computer while flashing.
- Micro-HDMI to HDMI cable: the Pi 5 has two micro-HDMI ports, not full-size HDMI. A standard HDMI cable will not fit. (Skip this, the keyboard and the mouse if you set up headless, with no monitor.)
- USB keyboard and mouse: for working directly on the Pi.
- Active cooler or a case with a fan: the Pi 5 runs hotter than the Pi 4 and slows itself down under sustained load without one.
- A second computer (Windows, macOS or Linux) to run Raspberry Pi Imager.
Raspberry Pi 5 board
Check price: Amazon UK | Amazon US | Amazon IE
Official Raspberry Pi 27 W USB-C power supply
Check price: Amazon UK | Amazon US | Amazon IE
Micro-HDMI to HDMI cable
Check price: Amazon UK | Amazon US | Amazon IE
Raspberry Pi 5 Active Cooler
Check price: Amazon UK | Amazon US | Amazon IE
A Quick Orientation: Raspberry Pi Imager 2
Raspberry Pi Imager is the official tool for writing an operating system onto your microSD card. It downloads the image, writes it, checks the result, and can pre-configure the system so the Pi is ready on first boot.
Imager 2 is a step-by-step wizard. A list down the left side of the window shows where you are: Device, OS, Storage, Customisation, Writing and Done. You fill in each page and move on with the button in the bottom-right corner. If you used an older version with three big buttons and a separate settings pop-up, that layout is gone; the settings now have their own pages in the wizard.

Step-by-Step: Setting Up Your Raspberry Pi 5
Step 1: Install Raspberry Pi Imager
On your laptop or desktop, go to raspberrypi.com/software and download Imager for Windows, macOS or Linux (on Linux it comes as an AppImage). Install it with the default options and open it.
Step 2: Choose the Device
Imager opens on the Device page. Select Raspberry Pi 5, then move on. This matters: Imager only offers operating systems that work on the board you pick.
Step 3: Choose the Operating System
On the OS page, pick one of these:
- Raspberry Pi OS (64-bit): the full desktop version, based on Debian 13. Best if you will use a monitor.
- Raspberry Pi OS Lite (64-bit): no desktop, so less RAM and storage used. Best for a headless server you only reach over SSH.
Use a 64-bit version. The Pi 5’s processor is 64-bit, and much homelab software is only published for 64-bit Arm.
Step 4: Choose the Storage
Put the microSD card in your card reader and plug it in. On the Storage page, select the card. Check the name and size carefully: Imager erases everything on the device you choose. Leave Exclude system drives ticked so your computer’s own drives are hidden from the list.
Step 5: Customise the System (Don’t Skip This)
The Customisation pages let you set up the Pi before the card ever goes in it. Work through each one:
- Hostname: the Pi’s name on your network, for example
homepi. You will use it to connect later. - Localisation: your time zone and keyboard layout.
- User: a username and a strong password. There is no default
pi/raspberrylogin any more, so this is the account you will log in with. - Wi-Fi: your network name and password, if the Pi will use Wi-Fi. Leave it blank if you will plug in an Ethernet cable.
- Remote Access: turn on SSH. Password login is fine to start with; you can switch to a key later.
- Raspberry Pi Connect (optional): signs the Pi in to Raspberry Pi’s free remote-access service, so you can reach its desktop or a shell from a web browser.
For a headless setup, SSH or Raspberry Pi Connect is essential: those are the only ways in on first boot.
Step 6: Write the Card
On the Writing page, check the summary, then click Write and confirm with I understand, erase and write. Imager downloads the image if needed, writes it, then verifies the card. Expect five to fifteen minutes, depending on your internet connection and card speed.
When the Done page appears, click Finish. Eject the card if Imager hasn’t already, then remove it.
Step 7: Fit the Active Cooler
Fit the cooler before anything is plugged in. The official Active Cooler fixes with two spring-loaded push pins that go through matching holes in the board. Line them up, press down evenly until both click, then plug the cooler’s small cable into the four-pin socket labelled FAN on the board.
The Pi’s firmware controls the fan speed automatically, so there is nothing to configure. If you use a case with its own fan, follow the case instructions and connect the fan to the same socket.
Step 8: Assemble the Hardware
- Slide the microSD card into the slot on the underside of the board, contacts facing the board. It goes in with a gentle push.
- If you are using a monitor, plug the micro-HDMI cable into the port next to the USB-C power socket (HDMI 0), then into your monitor.
- Plug in the keyboard and mouse, and an Ethernet cable if you are using one.
- Plug in the power supply last. The Pi 5 has a small power button, but you don’t need it the first time: the board turns on as soon as it gets power.
Step 9: First Boot
With a monitor attached, you’ll see a boot screen with the Raspberry Pi logo. The first boot takes a few minutes, because the system expands to fill the card and applies your Imager settings. Don’t unplug it during this time.
Because you created the user in Imager, the desktop version skips its setup wizard and goes straight to the desktop. The Lite version stops at a text login prompt; log in with the username and password you set. If you are headless, give it a few minutes and move on to Step 11.
If your power supply can’t provide 5 A, you’ll see a notice that power to peripherals is restricted. That’s expected with a non-official supply, and the Pi still works.
Step 10: Update the System
Open a terminal. On the desktop, click the terminal icon on the taskbar; on Lite, you are already at the command line. Then run:
sudo apt update && sudo apt full-upgrade -y
This fetches the latest package lists and installs every available update. When it finishes, reboot:
sudo reboot
Updating straight away closes any security holes found since the OS image was built.
Step 11: Connect over SSH from Your Laptop
Now you can work from your laptop and leave the Pi without a monitor or keyboard. On Windows 10/11, macOS or Linux, open a terminal (on Windows, search for Terminal in the Start menu) and type:
ssh [email protected]
Replace yourusername and homepi with the username and hostname you set in Imager. The .local ending lets your computer find the Pi by name on your home network, so you don’t need its IP address.
The first time you connect, you’ll be asked to confirm the Pi’s fingerprint. Type yes, press Enter, then enter your password.
If the name doesn’t resolve, find the Pi’s IP address in your router’s list of connected devices, or by running hostname -I on the Pi itself, and connect with that instead:
ssh [email protected]
Step 12: Review Key Settings with raspi-config
raspi-config is a text menu for the most common settings, so you don’t have to edit config files by hand:
sudo raspi-config
Use the arrow keys to move, Enter to select, and Esc to go back. On a fresh setup, check:
- Interface Options → SSH: should already be enabled from Imager.
- Interface Options → VNC: turn this on if you want to see the desktop from another computer.
- System Options → Password: change your password if you need to.
- Localisation Options: fix the time zone or keyboard layout if anything looks wrong.
Select Finish when you’re done, and reboot if asked.
What to Do Next
The most popular next step is Home Assistant. On a Pi 5 the usual way is to run Home Assistant OS as the whole operating system, instead of Raspberry Pi OS. You flash it with the same Imager steps: on the OS page choose Other specific-purpose OS → Home assistants and home automation → Home Assistant, and pick the Raspberry Pi 5 version. Imager skips the Customisation pages for it, because Home Assistant OS handles its own setup in the browser after boot.
Once Home Assistant is running, our Zigbee2MQTT and Home Assistant setup guide adds Zigbee devices, and the Home Assistant backup and restore guide shows how to protect your setup. If you outgrow the Pi, setting up Proxmox is the natural next step, and installing Home Assistant in a Proxmox VM covers moving it to a mini PC.
To reach the Pi when you are away from home, see our Tailscale and WireGuard remote access guide. It is written for Proxmox, but Tailscale installs on Raspberry Pi OS with the same one-line script, and an always-on Pi makes a good subnet router.
Quick Troubleshooting Reference
| Symptom | Most likely cause | Fix |
|---|---|---|
| Nothing on screen, Pi seems dead | No power, or the board is waiting for the power button | Check the supply and cable; press the power button once |
| Stuck on the boot screen, never reaches a login | Card not written correctly or not fully inserted | Re-flash the card with Imager and re-seat it |
| No display but the Pi is running | Wrong port or cable | Use HDMI 0, next to the USB-C power socket, with a micro-HDMI cable |
| “Power to peripherals will be restricted” | Supply can’t provide 5 V / 5 A | Use the official 27 W supply, especially if you’ll power USB drives |
| SSH: connection refused | SSH not enabled, or the Pi hasn’t finished booting | Wait a few minutes after first power-on; re-flash with SSH turned on under Remote Access |
| SSH: homepi.local not found | Name lookup not working on your network | Connect using the IP address from your router or hostname -I |
| Pi gets hot and slows down | Thermal throttling | Fit the Active Cooler or a case with a fan |
FAQ
Can I use a phone charger to power the Pi 5?
A good 5 V / 3 A USB-C charger will run it, but the Pi limits its USB ports to 600 mA in total and warns you that power to peripherals is restricted. That’s fine for a keyboard and mouse but not for a USB SSD. Only supplies that offer 5 V at 5 A over USB Power Delivery, like the official 27 W supply, lift the limit to 1.6 A.
Do I need a monitor to set up the Pi 5?
No. Set the username, password, Wi-Fi and SSH in Imager’s Customisation pages and the Pi joins your network on first boot, ready for SSH. This headless approach is the norm for a Pi that will run as a small server.
Which RAM size should I choose?
For Home Assistant OS on its own, 4 GB is comfortable. If you’ll run several add-ons or containers alongside it, 8 GB gives you more headroom. The 1 GB and 2 GB models suit single jobs, such as a DNS blocker or a sensor hub, but are tight for a general homelab box. For a DNS blocker specifically, see our Pi-hole and AdGuard Home setup guide.