Turn an old laptop or PC into a home server
Check the hardware, install Debian 13 or Ubuntu Server 26.04 LTS with no desktop, and keep a laptop on with its lid closed. Then fix its address, connect over SSH and add Docker for the apps.
- The old laptop or PC64-bit, with its charger or power cable
- A USB stickFor the installer. Writing it erases the stick.
- A network cableFrom the server to the router
- Another computerOn the same network, for the commands
What you end up with
You connect from
- Your computer22/tcp
The server
Old laptop or PC
Debian 13 or Ubuntu Server 26.04 LTS, no desktop
- 22/tcpSSH, for your commands
- Docker Engine, ready for the apps
- A fixed address, reserved on the router
- A laptop stays on with the lid closed
Plugged into
- Your routerby cable
- A wall socketthrough its charger or power cable
The diagram in words
Your computer reaches the server on port 22 (SSH). The server runs Debian 13 or Ubuntu Server 26.04 LTS with no desktop, and Docker Engine for the apps. It has a fixed address reserved on the router, joins the router by cable and runs from the wall socket. A laptop stays on with its lid closed.
- BEFORE YOU STARTDo not forward ports on your router to this server. These steps keep it on your home network only.
Step 1: Check the hardware
Debian 13 · Ubuntu Server 26.04 LTSLook for these four things. Then open the planner to see if the memory is enough for what you want to run.
With no desktop, Debian recommends 1 GB (512 MB at least) and 4 GB of disk. Ubuntu's tutorial asks for 2 GB and 5 GB. Ubuntu's requirements page gives 1.5 GB, for 24.04 LTS, and does not restate it for 26.04. Docker Engine supports 64-bit PCs (amd64) on both.
For Debian 13 · Ubuntu Server 26.04 LTS. Sources: Debian installation guide (stable, amd64), memory and disk space; Ubuntu Server, basic installation tutorial; Ubuntu Server, system requirements; Install Docker Engine on Debian; Install Docker Engine on Ubuntu. Read 28 and 29 Nov 2026.
Step 2: Write the installer to a USB stick
Debian 13.8 · Ubuntu Server 26.04.1 LTSPick one system and download its installer image.
- Debian 13 “trixie”The netinst image for 64-bit PC (amd64). Lighter on memory.
- Ubuntu Server 26.04.1 LTSStandard support to May 2031. Installs security updates by itself.
Write the image to the stick with a USB writing tool. Ubuntu's tutorial names balenaEtcher for most users, and Rufus on Windows. Debian's guide writes the image to the whole stick and names no Windows tool.
- WARNINGPick the USB stick in the tool, not a disk. Writing the image erases everything on the stick.
For Debian 13.8 · Ubuntu Server 26.04.1 LTS. Sources: Downloading Debian; Debian releases; Get Ubuntu Server; Ubuntu, list of releases; Ubuntu Server, automatic updates; Create a bootable USB stick on Windows; Debian installation guide (stable, amd64), preparing a USB stick. Read 28 and 29 Nov 2026.
Step 3: Start the computer from the stick
Ubuntu Server 26.04 LTS tutorialPut the stick in and restart the computer. As it starts, hold the boot-menu key: Escape, F2, F10 or F12, by maker. Then pick the USB stick.
- WARNINGBack up anything on the computer first. The install erases the disk you pick.
For Ubuntu Server 26.04 LTS tutorial. Source: Ubuntu Server, basic installation tutorial. Read 28 Nov 2026.
Step 4: Install the system with no desktop
Debian 13 · Ubuntu Server 26.04 LTSDebian 13
- Leave the root password empty. Your own user then gets sudo.
- At partitioning, pick guided partitioning of an entire disk. Pick the computer's own disk, not the USB stick: the size helps. Everything on that disk is erased.
- At the software selection, clear “Desktop environment” and any desktop under it.
- Tick “SSH server” and “Standard system utilities”.
- If it asks where to install the GRUB boot loader, pick the computer's own disk, not the USB stick.
- When it asks, remove the USB stick. The computer then restarts into Debian.
Desktop environment
SSH server
Standard system utilities
The task names as Debian's installation guide gives them. The screen can word them a little differently.
Ubuntu Server 26.04 LTS
- Keep the language and keyboard. Skip the proxy and the mirror.
- At storage, keep “Use an entire disk” and pick the disk.
- Type your name, the server's name, a user name and a password.
- On the SSH screen, tick “Install OpenSSH server”. Ubuntu's own tutorial only says “Done” here, which leaves SSH off.
- On the snaps screen, pick nothing and select Done. Restart, then remove the stick.
Install OpenSSH server
The label as the installer's own source code gives it (subiquity, ssh.py).
Missed the SSH tick? On the server, type:
sudo apt install openssh-serverFor Debian 13 · Ubuntu Server 26.04 LTS. Sources: Debian installation guide (stable, amd64), using individual components; Ubuntu Server, basic installation tutorial; Ubuntu Server installer, screen by screen; Ubuntu Server installer (subiquity), source of the SSH screen, ssh.py; Ubuntu Server, OpenSSH server. Read 28 and 29 Nov 2026.
Step 5: Laptop only: keep it on with the lid closed
systemd logind (manual for systemd 262)Skip this step on a PC or a mini PC. On a laptop, closing the lid suspends it by default. Add a small settings file that tells it to do nothing:
sudo mkdir -p /etc/systemd/logind.conf.d printf '[Login]\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\n' \ | sudo tee /etc/systemd/logind.conf.d/lid.confRestart the laptop. Then close the lid: in step 7 it must still answer.
sudo systemctl rebootThe manual recommends a file in logind.conf.d over an edit of the main file. Battery: no maker's advice for a laptop kept on charge for months could be read. Some laptops let Linux stop the charge at a set level (charge_control_end_threshold); not all do.
For systemd logind (manual for systemd 262). Sources: logind.conf(5), manual page (systemd 262); Linux kernel, sysfs power supply class. Read 28 and 29 Nov 2026.
Step 6: Give it a fixed address on the router
iproute2 · your router's own menuFind the server's address. On the server, type:
ip -4 -brief address show scope globalIt shows the network port, its state and the address, for example 192.168.1.50/24. The address is the part before the slash.
In your router's settings, reserve that address for the server. Routers call this a DHCP reservation or an address reservation. Nothing changes on the server.
Menus differ by router, and no maker-neutral page was found: the source is one maker's page (TP-Link). To set the address on the server instead, see Ubuntu's network guide (netplan).
For iproute2 · your router's own menu. Sources: ip(8), manual page (iproute2); ip-address(8), manual page (iproute2); How to reserve an IP address for a device (DHCP reservation); Ubuntu Server, configuring networks. Read 28 and 29 Nov 2026.
Step 7: Connect over SSH and update
OpenSSH · apt on Debian 13 and Ubuntu 26.04 LTSOn your other computer, open a terminal. Connect with your own user name and the address from step 6:
Bring the system up to date:
sudo apt update && sudo apt upgradeUbuntu 26.04 LTSUbuntu installs security updates by itself once a day (unattended-upgrades, on by default).
Debian 13Whether Debian turns on automatic updates by default could not be checked. To turn them on:
sudo apt install unattended-upgrades sudo dpkg-reconfigure -plow unattended-upgradesFor OpenSSH · apt on Debian 13 and Ubuntu 26.04 LTS. Sources: Ubuntu Server, OpenSSH server; Ubuntu Server, automatic updates; unattended-upgrades, README. Read 28 Nov 2026.
Step 8: Install Docker from Docker's own steps
Docker Engine for Debian 13 and Ubuntu 26.04 LTSRemove packages that conflict. apt may say none are installed.
Debian 13sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-doc \ docker-buildx podman-docker containerd runc | cut -f1)Ubuntu 26.04 LTSsudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 \ docker-doc docker-buildx podman-docker containerd runc | cut -f1)Add Docker's repository and its signing key:
Debian 13sudo apt update sudo apt install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc sudo tee /etc/apt/sources.list.d/docker.sources <<EOF Types: deb URIs: https://download.docker.com/linux/debian Suites: $(. /etc/os-release && echo "$VERSION_CODENAME") Components: stable Architectures: $(dpkg --print-architecture) Signed-By: /etc/apt/keyrings/docker.asc EOF sudo apt updateUbuntu 26.04 LTSsudo apt update sudo apt install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc sudo tee /etc/apt/sources.list.d/docker.sources <<EOF Types: deb URIs: https://download.docker.com/linux/ubuntu Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") Components: stable Architectures: $(dpkg --print-architecture) Signed-By: /etc/apt/keyrings/docker.asc EOF sudo apt updateInstall Docker Engine with the Compose plugin, then test it:
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo docker run hello-world- WARNINGDo not trust a ufw rule to close a port that Docker publishes. Docker's rules come first.
Next, each app page adds your user to the docker group and installs the app: Jellyfin, Immich, Pi-hole and more.
For Docker Engine for Debian 13 and Ubuntu 26.04 LTS. Sources: Install Docker Engine on Debian; Install Docker Engine on Ubuntu; Docker, packet filtering and firewalls. Read 28 and 29 Nov 2026.
On an old PC: open the planner with an old PC. Other hardware: start with what you have.
est. Estimates only. Each fact is from the project or maker named, with the date it was read. Point at a dotted line to see its source.