
A Raspberry Pi is often called the obvious first home server, and for most people that’s backwards. The better machine is probably already sitting dead in your cupboard. An old laptop, say a 2017 Dell Inspiron with a cracked hinge and a battery that holds only forty minutes, can run as a home server for years. It can hold photo backups, block ads for the household, and ride out power cuts on its own battery without blinking, while a desktop without battery backup is vulnerable to reboot loops and filesystem corruption whenever the power flickers.
About the prices and versions: Rupee figures for the SSD, cabling, UPS and power meter here are what Indian sellers were asking when this guide was written (whether a figure includes GST varies by seller), and they move quickly — treat them as indicative rather than a quote. Ubuntu Server 26.04 LTS was the current LTS release when this guide was written; check the documentation linked under Sources before assuming a command or option still matches.
An old laptop is often the best first server hardware you can get in India, and I mean better than spending money. It’s free. It sips power. And that dead battery you wrote off? It’s a built-in UPS. Here’s the full conversion, cupboard to 24×7 service, in about two hours of real work.
why a laptop beats a desktop or a fresh Pi


Three reasons. All of them matter more here than in places with steady grids and cheap parts.
- The battery is a free UPS. Even a tired battery with twenty minutes left in it will bridge every brownout and the awkward gap before your inverter kicks in. Match that on a desktop and you’re buying a ₹3,000 UPS.
- Power draw is tiny. Screen off, a laptop idles somewhere around 8–15 W. A desktop pulls 60–120 W. At roughly ₹7 a unit, that’s about ₹70 a month against ₹500. Stretch it across a year and the laptop basically earns enough to pay for its own SSD upgrade.
- It costs nothing. Any dual-core machine from 2014 onward with 4 GB of RAM will happily run five useful services. Cracked screen, dead keyboard, busted trackpad, none of it matters on a box you’ll only ever touch over SSH.
Weighing this against actually buying something? My home lab setup guide has the full comparison table, and the Pi 5 projects list covers the cases where a Pi genuinely wins. Short version, though: try the free laptop first.
step 1: prep the hardware

Give the machine fifteen minutes of attention before you install a thing. Pop the back panel if it comes off easily and blow the dust out of the fan. A choked fan in an Indian summer is one of the most common ways a 24×7 laptop dies; it cooks it slowly. Still running a spinning hard disk? A ₹1,500–2,000 SATA SSD (240 GB) is the one upgrade actually worth paying for. It changes the speed and the reliability both. More RAM is nice but you can skip it; 4 GB runs a surprising amount.
Put it somewhere with airflow. Lid open a crack, or propped up on bottle caps so it can breathe, and close to the router so you can run an ethernet cable. Wi-Fi works fine. But a ₹300 CAT6 cable kills the most common source of flaky behaviour before it starts.
step 2: install Ubuntu Server
Windows is the wrong tool here. It reboots for updates whenever it feels like it, and it wastes RAM doing nothing. Grab the current Ubuntu Server LTS release (26.04 LTS; 24.04 LTS is still supported if that’s what you already have on a pen drive), flash it with Rufus, boot the laptop off USB (usually F12 or Esc the moment it powers on), and install with the OpenSSH box ticked. Let it wipe the whole disk, but only after you’ve copied off anything on the old Windows install that you might want, because the installer erases it permanently. Twenty minutes later you’ve got a clean server sitting there.
From your main computer, log in and run the basics:
ssh anurag@192.168.1.42
sudo apt update && sudo apt upgrade -y
# install Docker for running services
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER
The curl line pipes a remote script into a root shell. It is Docker’s official convenience script, which Docker recommends only for test and development machines, and the habit is worth breaking anyway: curl -fsSL https://get.docker.com -o install-docker.sh, read it, then sudo sh install-docker.sh. Same outcome, and you saw what ran. Membership of the docker group is effectively root access, so add only your own admin account to it.
step 3: the three laptop-specific settings


This is the bit generic server guides leave out. And it’s exactly where laptop conversions fall over.
stop it sleeping when the lid shuts
Out of the box, closing the lid suspends the machine, which takes all your services down with it. Add a small logind drop-in file:
sudo mkdir -p /etc/systemd/logind.conf.d
sudo nano /etc/systemd/logind.conf.d/lid.conf
# put these four lines in the new file, then save:
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
sudo systemctl restart systemd-logind
turn the screen off to save power
A screen glowing around the clock burns 3–5 W for nothing and ages the panel. Add consoleblank=60 to the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub, run sudo update-grub, and reboot. From then on the console goes dark after sixty idle seconds and wakes on a keypress.
protect the battery from charging 24×7
A battery pinned at 100 percent and 35°C forever will swell, and a swollen battery isn’t just a dead part, it’s a fire risk. Plenty of laptops (ThinkPads especially) let you set charge thresholds straight from Linux. If yours does, cap it somewhere around 60–80 percent. Already swollen? Stop charging it: shut the laptop down, unplug it, and keep it on a hard, non-flammable surface. If it’s a removable pack, take it out. If it’s internal or glued in, don’t pry or puncture it yourself; have a service centre remove it, then run the laptop on mains plus your inverter. Take the old battery to an authorised e-waste collection point, not the household bin. Either way, give it a physical look every few months. This is the one real safety task in the whole project: treat a swollen battery the way you’d treat a frayed power cable, not as something to “deal with later”.
step 4: put it to work

What you run comes down to what the laptop’s actually capable of. Here’s a rough mapping of hardware to workload:
| Laptop spec | Comfortable workload |
|---|---|
| Dual-core, 4 GB RAM | Pi-hole, WireGuard or Tailscale, Syncthing, Uptime Kuma |
| i5, 8 GB RAM | All of the above plus Jellyfin, Nextcloud, n8n automation |
| i5/i7, 16 GB RAM | All of it under Proxmox with full virtual machines |
Start with Pi-hole and Syncthing. The Pi-hole guide works unchanged on a laptop. For getting in from outside on JioFiber or Airtel, keep in mind that CGNAT blocks inbound connections, so reach for Tailscale instead of fighting port forwarding. And if you land on the 16 GB row of that table, virtualisation is the next adventure waiting for you. My Proxmox beginner guide picks up right where this article stops, on this exact class of hardware.
One word on maintenance, because a server you forget about is a server that eventually surprises you, and never in a good way. My routine runs five minutes a month. SSH in, run sudo apt update && sudo apt upgrade -y, glance at df -h to check the disk isn’t filling up, then run docker compose pull and docker compose up -d in the lab folder to refresh the containers. Set a phone reminder for the first Sunday of every month and the whole thing stays boring. Boring is the goal with infrastructure. Twice a year, tack on a physical check too: blow out the fan vents, look the battery over for any hint of swelling.
what it actually costs to run
Expect a converted laptop with the screen off and a handful of Docker services to draw somewhere around 8–15 W, with short spikes during heavier work such as a media transcode. At 11 W that is about 8 units a month, roughly ₹55–60 at ₹7 a unit. A ₹900 plug-in power meter will give you your own figure in a day. The inverter carries a load like that through outages without noticing; it is a rounding error next to the ceiling fans. A 100 W desktop tower, for comparison, would cost around ₹500 a month. Every month. Forever.
common mistakes

- Skipping the lid-switch fix, then losing an evening to wondering why the server keeps vanishing every time someone tidies the shelf.
- Leaving it on carpet or a sofa. Blocked vents plus a 40°C afternoon means thermal shutdowns. Hard surface, airflow, out of the direct sun.
- Forgetting auto-start after a power loss. Turn on “Restore AC Power Loss” or “Wake on AC” in the BIOS so the machine boots itself when a long outage outlasts both the battery and the inverter.
- Treating it as the only copy of your data. The laptop is old. Assume the disk could die tomorrow, because someday it will. Anything you can’t replace needs a second copy somewhere else.
FAQ
Is it safe to run a laptop 24×7 in Indian heat?
Yes, as long as the fan’s clean, the vents are clear, and the battery is healthy or pulled out. Server workloads are far gentler than gaming, so a clean, well-ventilated laptop usually stays well within its limits; check with sensors (from the lm-sensors package) after a hot afternoon rather than guessing. The two things actually worth watching are dust building up and the battery swelling.
My battery is completely dead. Does the plan still work?
Absolutely. You just lose the built-in UPS bit, so plug the laptop into the inverter line and switch on auto-power-on in the BIOS. A genuinely dead battery (dead, not swollen) can stay in the machine. A swollen one has to come out before the laptop goes back into service, by a service centre if it’s built in, and never by prying or puncturing it.
Should I just use Windows since it’s already installed?
I wouldn’t. Windows forces restarts for updates, idles heavier, and most self-hosted software documents Linux first anyway. Ubuntu Server is free and runs leaner on old hardware. Hang onto Windows only if you specifically need some Windows-only app running at home.
Update history: power and temperature figures are now estimates rather than readings, Ubuntu is updated to 26.04 LTS, the lid-switch step uses a drop-in file, swollen-battery, disk-wipe and Docker warnings are added, and the sources are corrected.
Sources
- Ubuntu releases — current Ubuntu Server LTS images.
- logind.conf manual page — the lid-switch settings and drop-in directory.
- Linux kernel command-line parameters — the consoleblank option.
- Ubuntu Server security how-to — hardening the box once it is running.
- Docker Engine install guide (Ubuntu) — vendor install steps, which change often enough to check against this article’s date.