Old laptops make excellent home servers — they are quiet, draw 10–30 W of power, and come with a built-in battery that acts as a UPS. The one collecting dust in a drawer can run Plex, Pi-hole, a file server, or a dozen Docker containers with no additional hardware spend. Here is exactly how to set it up in 2026.
What changed in 2026
- Ubuntu Server 24.04 LTS is the stable long-term choice with five years of support — no reason to use anything older.
- Docker and Portainer matured further, making self-hosted app management a visual task rather than a CLI grind.
- Tailscale became the standard way to securely access a home server from anywhere without port-forwarding gymnastics.
- Older laptops got cheaper — a 2016-era ThinkPad or Dell Latitude with 8 GB RAM frequently sells for $50–80 on eBay, making this a near-zero-cost project.
Minimum viable hardware
| Spec |
Minimum |
Better |
| CPU |
Dual-core (2015+) |
Quad-core (2018+) |
| RAM |
4 GB |
8 GB+ |
| Storage |
120 GB SSD |
256 GB+ SSD + external HDD |
| Network |
100 Mbps |
Gigabit Ethernet via USB-C adapter |
| Power draw |
~15–25 W (idle) |
— |
Almost any laptop from 2015 onward qualifies. The built-in battery survives short outages — a genuine advantage over desktops.
Step 1 — Install Ubuntu Server 24.04 LTS
- Download Ubuntu Server 24.04 LTS ISO from ubuntu.com.
- Flash to a USB drive with Balena Etcher or Raspberry Pi Imager.
- Boot the laptop from USB (spam F12/F2/Delete at POST to get the boot menu).
- Follow the installer: choose Ubuntu Server (minimized), set a hostname (e.g.,
homeserver), create a user, enable OpenSSH during installation.
- Skip the snap packages for now — install only what you need.
Step 2 — Disable lid-close suspend
By default, closing the lid suspends the laptop. Edit /etc/systemd/logind.conf:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
Then restart logind: sudo systemctl restart systemd-logind. Now you can fold the laptop shut and tuck it away while it keeps running.
Step 3 — Set a static LAN IP
Either:
- DHCP reservation in your router (preferred) — bind the laptop's MAC to a fixed IP.
- Netplan config on Ubuntu — edit
/etc/netplan/00-installer-config.yaml to hard-code the IP.
Pick an IP outside your router's dynamic DHCP range (e.g., 192.168.1.20) to avoid conflicts.
Step 4 — SSH in from any machine
From any machine on your network: ssh youruser@192.168.1.20. You no longer need a monitor or keyboard attached.
For remote access from outside the home, install Tailscale (curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up). It creates an encrypted overlay network — access the server from anywhere as if you were home.
What to run on it
| Use case |
Tool |
RAM needed |
| Media server |
Plex or Jellyfin |
1–2 GB |
| Network ad blocking |
Pi-hole |
128 MB |
| File shares |
Samba or Nextcloud |
512 MB–1 GB |
| Container manager |
Docker + Portainer |
512 MB |
| VPN server |
WireGuard |
64 MB |
| Home automation |
Home Assistant |
1 GB |
A laptop with 8 GB can comfortably run all of the above simultaneously.
How to pick what to install
- Media library? → Start with How to set up Plex in 2026.
- Network-wide ad blocking? → How to set up Pi-hole in 2026.
- File server/NAS replacement? → Samba for Windows shares or Nextcloud for a self-hosted cloud drive.
- Multiple apps? → Install Docker first, then add containers one by one.
Common mistakes
Leaving the GUI installed. A full desktop environment consumes 1–2 GB of RAM and adds attack surface. Use the minimal server image.
Not reserving a static IP. If the IP changes, every bookmark and port-forward breaks. Do this on day one.
Ignoring drive health. Old laptop SSDs may have years of wear. Run smartctl -a /dev/sda to check the health before trusting important data to it. Add an external USB drive for bulk storage.
Skipping backups. A laptop server is not a NAS with RAID. Run automated backups (Rsync, Restic, or BorgBackup) to a separate drive or cloud storage.
What to skip
- Windows Server — licensing cost, far heavier RAM use, and harder to manage headlessly. Ubuntu Server is the right choice here.
- A GUI server OS like Ubuntu Desktop — wastes resources you need for services.
- Using it as your only copy of important data — it is a server, not an archive. Back up elsewhere.
FAQ
Is a laptop server better than a Raspberry Pi?
A laptop has more CPU power, more RAM, and a built-in battery. A Pi uses less power (~5 W vs ~20 W) and is smaller. For Plex or Docker, the laptop wins. For Pi-hole or simple DNS, a Pi is sufficient.
How loud will it be?
Most laptops in idle/light load run the fan rarely or at low speed — comparable to a NAS. Load-heavy tasks (4K transcoding) will spin the fan more.
What if the battery is dead?
The laptop will still run on AC power, just without the UPS benefit. Dead batteries can be sourced cheaply on iFixit or eBay ($15–40 for most models).
Can I run this 24/7?
Yes. Laptops are designed for extended use. Keep the battery plugged in but at ~80% charge if the OS allows it (many modern BIOSes have a "battery care" limiter) to reduce long-term degradation.
Where to go next