← Blog

I turned an old laptop and a Raspberry Pi into a home lab

How a 2014 laptop that can't officially run Windows 11 and a Raspberry Pi became my home lab: a private network, my own VPN, monitors that watch each other, and updates that look after themselves.

Written by
Naresh Kumar
Published
Reading time
12 min
Topic
Tech & AI

Over three days I put a Raspberry Pi 4 to work, along with an old laptop that had been sitting around running Windows 10.

The result is a small home lab:

  • two servers;
  • a private network I can reach from anywhere;
  • uptime monitors that watch each other and alert my phone;
  • updates that install themselves;
  • one start page that links to everything.

I built it with Claude, running in Claude Code on my Mac. Claude wrote the scripts and explained each step. I ran them, typed every password myself and made the decisions.

What’s in it

The home lab at a glance Fiber comes into an AT&T gateway, which is also the home Wi-Fi. One cable runs to my MacBook Pro, where I work. Another runs to a gigabit switch, which connects the two servers: an HP EliteBook from 2014, the main server, which runs the start page, uptime checks, the photo library and my own VPN; and a Raspberry Pi 4, the second server, which watches the laptop and runs speed tests. Tailscale, a private encrypted network, joins the Mac, my phone and both servers, at home or away. The internet AT&T fiber AT&T fiber gateway Also the home Wi-Fi Gigabit switch One cable in, one per server MacBook Pro Where I work from Claude Code Scripts and the record SSH keys HP EliteBook Main server, from 2014 Start page Uptime checks, photos My own VPN Raspberry Pi 4 Second server Watches the laptop Speed tests Tailscale Encrypted. Joins my Mac, my phone and both servers, anywhere.
Solid lines are Ethernet cables, all 1 Gbps. Dashed lines are Tailscale, my private network.
  • HP EliteBook Revolve 810 G2: the main server. It’s a 2014-era laptop with an i7-4600U, 8 GB of RAM and a 256 GB SSD.
  • Raspberry Pi 4 (8 GB): the second server, in a case with a fan.
  • AT&T fiber gateway: the internet connection and the Wi-Fi.
  • TRENDnet gigabit switch: lets both servers share one port on the gateway.
  • MacBook Pro: where I work from.

All of it is hardware I already had.

Why an old laptop, and why now

An HP EliteBook Revolve 810 G2 open on a desk, showing the Windows 10 About page: an Intel Core i7-4600U processor and 8 GB of memory

The laptop's last afternoon on Windows 10. A couple of hours later it was running Debian.

If you have an old laptop in a drawer, this is a good time to give it a second life.

  • Windows 10 has reached the end of the road. It stopped getting regular security updates in October 2025. Laptops like mine, with a 4th-generation Intel chip, don’t meet Windows 11’s requirements, so a lot of perfectly good machines are being retired. Linux keeps them updated and useful.
  • New hardware costs more this year. Memory and SSD prices have climbed as AI data centers buy up supply. Reusing what you already own costs nothing.
  • A laptop is a server with extras. Its battery rides out short power cuts like a small backup power supply. It has its own screen and keyboard for the day the network breaks, and it’s built to run on very little power.
  • It’s enough. A 2-core i7 from 2014 with 8 GB of memory and an SSD runs everything in this post. Only Immich’s first pass through my photo library made it work hard.

Two watch-outs. A battery that stays plugged in for years can swell, so check it now and then. And one laptop is one machine: anything important on it still needs a copy somewhere else.

Step 1: Windows 10 out, Debian in

The laptop was the biggest job. I wanted a desktop on it rather than a box I could only reach over SSH, so we picked Debian 13 with the Xfce desktop, which is light enough for a machine this age. GNOME and Omarchy were the other candidates.

A few things from the install are worth passing on:

  • The USB script couldn’t touch the wrong disk. A big archive drive is always plugged into my Mac. The script that made the installer stick first checked the Debian image against Debian’s published checksums. It also refused to write to any disk except the 8 GB USB stick.
  • The install itself took 11 minutes.
  • Debian started six hours in the past. Windows keeps the hardware clock on local time, while Linux expects UTC. With its clock six hours slow, Debian refused to download updates until time sync was set up.
  • It runs with the lid shut. We set it to ignore the lid and never sleep, so it stays on as a server.
  • Remote desktop kept closing straight away. The cause was a locked desktop session on the laptop’s own screen. Ending that session fixed it.

Then came the tidy-up:

  • automatic security updates;
  • 223 language packs I’ll never use, removed;
  • Docker, installed from Docker’s official repository;
  • an SSH key, so I can log in from my Mac without a password.

Step 2: Tailscale, so I can reach it from anywhere

Tailscale puts my Mac, my phone, the laptop and the Pi on one private network, wherever each of them is. I didn’t have to open a single port on my router.

It also gave me my own VPN. The laptop is a Tailscale exit node:

  • How it works: on café or library Wi-Fi, I switch it on. My Mac’s traffic travels encrypted to the laptop at home and goes out to the internet through my home connection.
  • How we tested it: we traced the route. The first stop was the laptop, then my router, then AT&T.
  • What it hides: my browsing, from whoever runs the café Wi-Fi. It doesn’t hide it from my internet provider.
Café Wi-Fi with the exit node off and on With the exit node off, my Mac's traffic goes through the café Wi-Fi, which can see which sites I visit, and straight out to the websites, which see the café's address. With it on, the traffic travels through an encrypted Tailscale tunnel, so the café Wi-Fi sees only scrambled data. The laptop at home unscrambles it and sends it out through my home internet, so websites see my home address. Exit node off Exit node on My Mac On café Wi-Fi Café Wi-Fi Can see which sites I visit straight out Websites See the café's address My Mac On café Wi-Fi encrypted Café Wi-Fi Sees only scrambled data encrypted Laptop at home Unscrambles it and sends it on home internet Websites See my home address
The exit node protects me from the café's network. My internet provider still sees which sites I visit, as it does at home.

Tailscale updates itself on both servers.

Step 3: apps in Docker

Each app has its own folder with a Docker Compose file. It restarts by itself after a crash or a reboot, and its logs are capped so they can’t fill the disk.

On the laptop:

  • Uptime Kuma checks whether things are up: my router, the internet connection, the Pi and its apps, remote desktop on the laptop, the start page, and two race sites I build and run, Big’s Backyard Ultra and GVRAT.
  • Homepage is my start page.
    • What it shows: the laptop’s processor, memory, disk and temperature, and every app with a green or red dot. It links to everything else.
    • What it doesn’t get: access to Docker, which would mean full control of the laptop.
    • No login: it can only be reached at home and over Tailscale.
  • Immich is a self-hosted photo library, for my photos. A photo library on one laptop isn’t a backup, so keeping the originals somewhere else is on my to-do list.

My Homepage start page: a top bar with the laptop’s CPU, free memory, free disk, temperature and uptime; tiles for Uptime Kuma (7 sites up, 0 down), Photos, Speed tests, Laptop watcher and Tailscale; and device tiles for the laptop, the Pi and the router, each with a green dot

My start page. The green dots are live checks. The one address on it is hidden.

The Uptime Kuma status page, titled Home Lab: All Systems Operational, with seven services and a row of green bars for each

Uptime Kuma's status page, showing seven of its checks. Each green bar is one check that passed.

On the Pi:

  • Speedtest Tracker runs an internet speed test every four hours and keeps the history. Not hourly, because each test moves two to three gigabytes.
  • A second Uptime Kuma, which gets its own section below.

The first seven tests barely moved:

When Download Upload Ping
Nov 26, 1:09 AM 619 Mbps 624 Mbps 1.45 ms
Nov 26, 4:17 AM 616 Mbps 624 Mbps 1.47 ms
Nov 26, 8:17 AM 617 Mbps 623 Mbps 1.47 ms
Nov 26, 12:17 PM 617 Mbps 624 Mbps 1.46 ms
Nov 26, 4:17 PM 617 Mbps 624 Mbps 1.47 ms
Nov 26, 8:17 PM 617 Mbps 624 Mbps 1.46 ms
Nov 27, 12:17 AM 611 Mbps 624 Mbps 1.46 ms

The Pi’s network port can measure up to about 940 Mbps, so it isn’t what holds these numbers back.

The Pi had been sitting with 207 updates waiting and no automatic security updates, so we fixed that first. There was one small snag: LinuxServer’s image registry kept refusing downloads, so Speedtest Tracker comes from GitHub’s registry instead. It’s the same image from a different shelf.

Who watches the watcher?

Uptime Kuma on the laptop has one obvious blind spot: if the laptop dies, so does the thing that would tell me.

So the Pi runs a second Uptime Kuma whose job is watching the laptop. It checks three things:

  • whether the laptop answers pings;
  • whether the laptop’s Uptime Kuma is up;
  • whether the start page is up.

Meanwhile, the laptop’s Kuma watches the Pi, so each covers the other. Both send alerts to my iPhone through ntfy, a free push-notification app. Each Kuma posts to a private topic, and my phone subscribes to it.

Two servers that watch each other The HP EliteBook's Uptime Kuma checks the Pi and more, and a second Uptime Kuma on the Raspberry Pi checks the laptop. Either one sends down and up alerts to ntfy.sh on a private topic, which pushes them to my iPhone, for example "Speed tests (Pi) is down". HP EliteBook Uptime Kuma checks the Pi and more Raspberry Pi A second Uptime Kuma checks the laptop checks down and up alerts ntfy.sh A private topic My iPhone “Speed tests (Pi) is down”
Each server checks the other. If the power or internet at home goes out, both go quiet together.

We tested it with a real outage rather than the test button:

  • The outage: I stopped Speedtest Tracker for four and a half minutes.
  • Down alert: my phone said it was down just under three minutes in.
  • Up alert: it said it was back 18 seconds after the app restarted.
The test outage, minute by minute At 0:00 I stopped the app. Checks a minute apart failed: a first failed check, then retry 1, then retry 2. At 2:51 my phone said it was down. I restarted the app at 4:35, and at 4:53 my phone said it was back up. I stopped it 0:00 Phone: down 2:51 Phone: back up 4:53 restarted at 4:35 App stopped Up failed check retry 1 retry 2 0 1 min 2 min 3 min 4 min 5 min
One failed check plus two retries, a minute apart, before the alert.

An earlier stop of two and a half minutes sent nothing, and that’s by design. That monitor tries twice more, a minute apart, before it calls anything down, so a quick restart doesn’t wake me up.

There’s one thing it can’t catch. A power cut or an internet outage at home takes both Kumas offline together. That’s on the list below.

Updates that look after themselves

The security updates for Debian and Raspberry Pi OS install automatically. For the Docker apps, a small job runs every Sunday morning:

The weekly update job Every Sunday, the laptop at 4 AM and the Pi at 5 AM, so never both at once. For each app, the job asks whether there is a newer version of the same major version. If not, it leaves the app alone and nothing restarts. If so, it stops the app, backs up its folder, starts the new version and cleans up old images. Stopped apps, folders marked hands-off and Immich are never touched. Every Sunday Laptop at 4 AM, Pi at 5 AM: never both at once For each app: is there a newer version? Same major version only no yes Leave it alone Nothing restarts Never touched Stopped apps Hands-off folders Immich Stop the app Back up its folder Start the new version Clean up old images
The last four backups of each app's folder are kept, so an update can be rolled back.

The laptop and the Pi run an hour apart, so the two Uptime Kumas never restart at the same time. Immich is deliberately left out, because its updates sometimes need manual steps from its release notes.

One honest gap remains: Docker itself (the Engine) still doesn’t update automatically on either machine. It’s on the list.

A map of the whole thing

I saw a home lab schematic online and wanted one. Claude built it as a single web page, and it shows:

  • the fiber line and the gateway’s ports;
  • every cable;
  • each machine and its apps;
  • the Tailscale network;
  • how alerts flow;
  • the update schedule;
  • what’s monitored.

It’s linked from my start page, and it’s updated whenever the lab changes. The real one lists every address on my network, which is what makes it useful to me and why it stays private. Here’s a copy with the addresses taken out:

The home lab schematic, a dark wiring map. Along the top: away from home, the internet with the first speed test, and the outside services the lab uses. Below: the AT&T gateway and its ports, the TRENDnet switch, cards for the MacBook Pro, the EliteBook and the Raspberry Pi with their hardware, apps and ports, and the Tailscale network along the bottom

The schematic, with every address removed.

Things I didn’t buy

With Black Friday coming, I asked what would improve the lab. The most useful answers were about what not to buy.

  • I returned a 10-gigabit adapter I’d bought for my Mac. Only one port on my gateway runs faster than 1 Gbps, and nothing else in the lab does.
  • My existing switch is fine. Instead of guessing, we checked it. The laptop and the Pi both connect through it at 1 Gbps, full duplex: gigabit from end to end.

Sometimes the best upgrade is checking what you already have.

Where the AI helped, and where it didn’t

  • It kept a record. Every change went into a running handoff document: what was done, when, how to undo it, and what’s still open. Anyone, or any AI, picking this up later can start from there.
  • It scripted everything. Each step was a script I could read before running it, with its output saved to a log. Scripts that edited settings files kept a backup and checked the result.
  • It was sometimes wrong. When it asked whether the new SSH key worked, I clicked “Yes, no password”, and that was taken as proof. The key hadn’t actually been installed. We caught it later. From then on, the rule was to check on the machine itself rather than trust a “done”.
  • It ran into limits I didn’t know about. Claude’s own shell on my Mac couldn’t reach anything on my home network, because macOS blocks local-network access for apps that haven’t been granted it. So commands for the servers ran in a terminal pane in the app, where I could watch them.
  • It kept secrets out of files. I typed every password myself. The alert topic, which would let anyone read my alerts, is in the apps and nowhere else.

What’s next

  • Pi-hole, for ad blocking across the house. My gateway won’t let me change the DNS server it hands out. So Pi-hole would have to take over handing out addresses too, which is a bigger step than it sounds.
  • An outside check, such as Healthchecks.io. It would tell me about a power cut even when everything at home is down.
  • Docker Engine updates, done properly.
  • A Pi cluster, eventually, running k3s (lightweight Kubernetes) on a stack of Pis.
  • More memory for the laptop. It has one memory slot, and an 8 GB stick there would take it from 8 to 12 GB.

What I took away

  • An old laptop makes a great first server, especially now. It has a built-in battery, keyboard and screen. It can’t officially run Windows 11 anyway, and I already had it.
  • Tailscale removes the scariest part. Nothing is exposed to the internet, and everything is still reachable.
  • Monitor your monitor. A single Uptime Kuma can’t tell you that its own machine died.
  • Test alerts with a real outage. That’s how I learned about the three-minute delay, and why it’s a feature.
  • Write it down as you go. The record and the map made every next step easier.
  • Check before you buy. The switch I nearly replaced was already doing its job.