this post was submitted on 24 Dec 2025
11 points (100.0% liked)

Self-hosting

3926 readers
89 users here now

Hosting your own services. Preferably at home and on low-power or shared hardware.

Also check out:

founded 3 years ago
MODERATORS
 

I have a piece of hardware which I do not intend to use as a desktop machine ever again.

It's a cheap and shitty HP laptop from 2019. AMD A6 processor, 8GB of RAM, 1TB spinning hard disk, and a DVD drive that hasn't worked in over a year.

Since I have hardware from 2007 that is nicer to use than this machine, I was thinking of turning it into a server.

I'd probably either install Proxmox, Alpine, HardenedBSD, or OpenBSD, and spin up a couple of lightweight services. I'd also spin up an HTTP server and move one of my blogs to this machine.

Since I'm currently using a VPS with far, far lower specs than this laptop, it should all be fine. However, I have some questions:

  1. Is this a good idea?
  2. Should I run the server over a VPN, or even go Tor-only, for personal safety reasons?
  3. Since I'll usually be within walking distance of the server, should I disable SSH altogether?

Also, if anyone here has a crazy setup or some redneck networking, I'd love to hear about it.

Thank you!!!

top 13 comments
sorted by: hot top controversial new old
[–] stratself 3 points 16 hours ago* (last edited 16 hours ago)

That doesn't seem to be too old of a laptop at all. One thing I'd say is to use an SSD as the main partition you run your apps on, as HDDs might be quite slow.

If you wanna keep the VPS, you can use it as a public inbound gateway + outbound proxy for your homeserver, so traffic looks like it comes in and out of your VPS. I wrote some notes on setting up Tailscale in such a manner, but there's plenty of other options.

If you don't wanna keep the VPS, you can front your inbound traffic with Cloudflare Tunnels, and use a commercial VPN to act as a proxy for outbounds. If you don't have any apps that make frequent network requests (e.g. a Matrix server), then a VPN may not be necessary

You should leave SSH on, especially if if you wanna run it without a monitor, but use key auth and limit it to your LAN only

[–] Strayce@lemmy.sdf.org 11 points 1 day ago* (last edited 1 day ago)
  1. Old laptop as a server is viable and not unheard of. They're generally low power consumption, and have a built-in KVM and UPS.

  2. Depends on your VPN provider and use case. I'd recommend against Tor-only if you want normal people to ever see anything you blog. You'll need static IP and/or dynamic DNS if you want it to be reachable with any kind of reliability. Doing it over VPN requires your provider to support port forwarding, which not all do.

  3. Again, depends on your use case. It's generally a good idea to disable unused services. Worst case it goes down while you're on holidays or something and you can't get it back up for a while. Can you live with that? It might also be a good idea to leave SSH on but access restricted to LAN only. That way you don't have to get up from your main rig to tweak stuff on it, and can follow tutorials in a browser while SSH'ed in to the server.

[–] CameronDev@programming.dev 5 points 1 day ago (1 children)
  1. Yes, lots of people do this. Good idea to remove the battery if possible, or you'll have a spicy balloon eventually.

  2. VPN (or cloudflare tunnel) is not a bad idea, but its not essential either, my server is publically exposed, and it largely isnt a problem. I only expose port 443 and some specific random high ports though. I wouldnt expose 22 to the internet.

  3. Keep SSH, just dont expose to the internet, its always nice to have multiple ways into a box, incase one is hung or something.

[–] 18107@aussie.zone 8 points 1 day ago (1 children)

If you can find a way to limit the battery to 60%, then you have a safe and cheap UPS.

[–] CameronDev@programming.dev 1 points 1 day ago* (last edited 1 day ago) (2 children)

Even better idea. Although if your power goes out, usually your internet goes as well, which somewhat diminishes the UPS value.

[–] bizarroland@lemmy.world 4 points 1 day ago (1 children)

I put my cable modem and Wi-Fi router on their own UPS. If the power goes down, I still have internet for half a day.

[–] CameronDev@programming.dev 2 points 1 day ago* (last edited 1 day ago)

That makes sense, although if its a severe power outage the other end might go out if they dont have a working UPS.

I've got a home battery, so its kinda like a bad UPS. Will run all day, but the switchover isnt seamless, so it hard-shuts down. Never lost any data though, so happy to keep risking it.

[–] Strayce@lemmy.sdf.org 4 points 1 day ago* (last edited 1 day ago)

It gives you enough time to shut down properly and avoid data loss, which is what a UPS is supposed to do.

If you configure your power settings right, it'll run on battery then shutdown or s2d safely.

[–] dan@upvote.au 1 points 1 day ago* (last edited 1 day ago) (2 children)

Depending on the electricity price where you live, a VPS with 8GB RAM might be cheaper than running the laptop. Just something to keep in mind. GreenCloudVPS have some for $45 annually: https://greencloudvps.com/billing/store/budget-kvm-sale (I'm not affiliated with them)

Should I run the server over a VPN

Do you mean for you to access it remotely, or do you mean to expose it publicly via the VPN (so that you can have publicly-exposed services while hiding your home IP)?

For remote access, I'd recommend Tailscale. It mostly "just works".

[–] hellfire103@lemmy.ca 1 points 20 hours ago (1 children)

I meant expose it publicly via the VPN.

[–] dan@upvote.au 1 points 2 hours ago

You'll need to use a VPN that supports port forwarding. You could use a cheap VPS instead.

[–] bizarroland@lemmy.world 2 points 1 day ago (1 children)

If your laptop draws an average of 25 watts and you're paying 25 cents usd per kilowatt hour for electricity, then you're looking at $54.75 a year to run your laptop.

Most places in America you're only paying closer to like 13 cents a kilowatt hour and very few laptops would be running a continuous 25 watts with your typical server setup, although, undoubtedly it would spike to 65 watts or so from time to time.

[–] dan@upvote.au 3 points 1 day ago

Where I live in California, electricity can be over US$0.60/kWh during peak summer time. Thankfully I have solar panels that offset most of the cost. I'm from Australia which also has high electricity prices.