Homelab Plan

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.

8 stepsDebian 13 or Ubuntu Server 26.04 LTSDocker EngineRead 28 and 29 Nov 2026
Show the steps for

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.

  1. Step 1: Check the hardware

    Debian 13 · Ubuntu Server 26.04 LTS

    Look 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.

  2. Step 2: Write the installer to a USB stick

    Debian 13.8 · Ubuntu Server 26.04.1 LTS

    Pick one system and download its installer image.

    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.

  3. Step 3: Start the computer from the stick

    Ubuntu Server 26.04 LTS tutorial

    Put 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.

  4. Step 4: Install the system with no desktop

    Debian 13 · Ubuntu Server 26.04 LTS

    Debian 13

    1. Leave the root password empty. Your own user then gets sudo.
    2. 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.
    3. At the software selection, clear “Desktop environment” and any desktop under it.
    4. Tick “SSH server” and “Standard system utilities”.
    5. If it asks where to install the GRUB boot loader, pick the computer's own disk, not the USB stick.
    6. When it asks, remove the USB stick. The computer then restarts into Debian.

    The task names as Debian's installation guide gives them. The screen can word them a little differently.

    Ubuntu Server 26.04 LTS

    1. Keep the language and keyboard. Skip the proxy and the mirror.
    2. At storage, keep “Use an entire disk” and pick the disk.
    3. Type your name, the server's name, a user name and a password.
    4. On the SSH screen, tick “Install OpenSSH server”. Ubuntu's own tutorial only says “Done” here, which leaves SSH off.
    5. On the snaps screen, pick nothing and select Done. Restart, then remove the stick.

    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-server

    For 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.

  5. 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.conf

    Restart the laptop. Then close the lid: in step 7 it must still answer.

    sudo systemctl reboot

    The 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.

  6. Step 6: Give it a fixed address on the router

    iproute2 · your router's own menu

    Find the server's address. On the server, type:

    ip -4 -brief address show scope global

    It 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.

  7. Step 7: Connect over SSH and update

    OpenSSH · apt on Debian 13 and Ubuntu 26.04 LTS

    On 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 upgrade

    Ubuntu 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-upgrades

    For 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.

  8. Step 8: Install Docker from Docker's own steps

    Docker Engine for Debian 13 and Ubuntu 26.04 LTS

    Remove packages that conflict. apt may say none are installed.

    Debian 13
    sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-doc \
      docker-buildx podman-docker containerd runc | cut -f1)
    Ubuntu 26.04 LTS
    sudo 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 13
    sudo 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 update
    Ubuntu 26.04 LTS
    sudo 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 update

    Install 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.

Where the facts come from

  1. Debian installation guide (stable, amd64), memory and disk space, Debian. Read 28 Nov 2026.
  2. Ubuntu Server, basic installation tutorial, Canonical. Read 28 Nov 2026.
  3. Ubuntu Server, system requirements, Canonical. Read 28 Nov 2026.
  4. Install Docker Engine on Debian, Docker. Read 29 Nov 2026.
  5. Install Docker Engine on Ubuntu, Docker. Read 29 Nov 2026.
  6. Downloading Debian, Debian. Read 29 Nov 2026.
  7. Debian releases, Debian. Read 28 Nov 2026.
  8. Get Ubuntu Server, Canonical. Read 29 Nov 2026.
  9. Ubuntu, list of releases, Canonical. Read 28 Nov 2026.
  10. Ubuntu Server, automatic updates, Canonical. Read 28 Nov 2026.
  11. Create a bootable USB stick on Windows, Canonical. Read 28 Nov 2026.
  12. Debian installation guide (stable, amd64), preparing a USB stick, Debian. Read 28 Nov 2026.
  13. Debian installation guide (stable, amd64), using individual components, Debian. Read 29 Nov 2026.
  14. Ubuntu Server installer, screen by screen, Canonical. Read 28 Nov 2026.
  15. Ubuntu Server installer (subiquity), source of the SSH screen, ssh.py, Canonical. Read 29 Nov 2026.
  16. Ubuntu Server, OpenSSH server, Canonical. Read 28 Nov 2026.
  17. logind.conf(5), manual page (systemd 262), man7.org. Read 29 Nov 2026.
  18. Linux kernel, sysfs power supply class, Linux kernel. Read 28 Nov 2026.
  19. ip(8), manual page (iproute2), man7.org. Read 29 Nov 2026.
  20. ip-address(8), manual page (iproute2), man7.org. Read 29 Nov 2026.
  21. How to reserve an IP address for a device (DHCP reservation), TP-Link. Read 28 Nov 2026.
  22. Ubuntu Server, configuring networks, Canonical. Read 28 Nov 2026.
  23. unattended-upgrades, README, unattended-upgrades project. Read 28 Nov 2026.
  24. Docker, packet filtering and firewalls, Docker. Read 28 Nov 2026.