this post was submitted on 28 Jan 2025
29 points (91.4% liked)

Selfhosted

41554 readers
716 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I have an HP pavillion 15-bc235nd that, quite frankly, I don´t really like that much (way too loud of a fan, cannot adjust the fan curve, keyboard and trackpad are terrible, etc).

I was planning to replace with laptop with something else, but in the meantime, I was thinking of something. Instead of getting this laptop in the landfill or give to someone else (no one needs an emergency laptop right now), I could potentially use this has a server machine to be used as an off site backup location.

Right now I am missing the off site backup part out of the 3-2-1 backup strategy. Since this laptop has more than enough horsepower to do the job, it could be a solution. But personally, I am not sure how reliable a laptop turned into a server can be. This laptop would be around 3000km away from me, so I have to be really sure it works at a distance without much problem.

For those who turned a laptop into a server: what is your mileage? Are there any specific considerations about this setup that a regular desktop/server does not have or specific issues?

you are viewing a single comment's thread
view the rest of the comments
[–] I_Miss_Daniel@lemmy.world 9 points 2 days ago* (last edited 2 days ago) (3 children)

It'll probably work. Biggest issue will be recovery after power failure as laptops generally stay off.

Next most likely is CPU fan failure, exacerbated if CPU usage causes the fans to run high and nobody is there to blow the dust out.

Other than that I've had multiple laptops that run as servers over the years and generally they're fine. Streaming audio for our community radio station, or shoved behind wall mounted TV's for updateable PowerPoint displays.

[–] sxan@midwest.social 4 points 2 days ago* (last edited 1 day ago) (2 children)

Yeah, what they said.

OP, invest in a UPS - cheap or less cheap - you can get them as big as your bank account, and they're worth it. I tend to like Cyberpower for price, because they're common enough that I've never found a model that nuts didn't already know about, and they tend to have replaceable batteries. As parent said, the nightmare is if power goes out, and even though the laptop has a battery, you're buying yourself extra time. Plus extra surge protection and all that.

I'm not probably saying anything you don't already know, OP, but I feel there's a general under-valuing of UPSes when I hear about people's set-ups. They may mention a surge protector, but rarely do I see folks taking about their UPSes.

[–] ZeDoTelhado@lemmy.world 4 points 2 days ago

I actually have contingencies for this. There is a ups around that I can use. It is good advice for sure, specifically for countries with fluctuations on the electric grid

[–] lka1988@sh.itjust.works 3 points 2 days ago (1 children)

It would be nice if there was firmware available for the charge controller that turned the laptop's own battery into a UPS, avoiding the whole "spicy pillow" debacle.

One can dream...

[–] I_Miss_Daniel@lemmy.world 2 points 1 day ago

A smart switch that turns off the power when the battery hits 80% and turns it on at 78%? Dunno if that would actually work.

[–] DaPorkchop_@lemmy.ml 3 points 2 days ago

I've got an old HP laptop which I've been running a Jenkins server on for years. The fan died back in like 2018, and I just kept putting off buying a replacement, so it has been running with no fan for 7 years now. Remarkably it still works fine, although a but slower than it used to thanks to thermal throttling :P

[–] ZeDoTelhado@lemmy.world 2 points 2 days ago* (last edited 2 days ago) (1 children)

I am planning after installing Ubuntu server and get some setup done, to actually sit it out and understand how much the fan is going and how I expect this to be an issue. Since my backups are probably going to be once in a week or so, I do not expect the laptop to have a lot of work (for now is just for file backup, no other services in there except tailscale)

[–] atzanteol@sh.itjust.works 1 points 2 days ago (2 children)

It's a laptop... One of the benefits is that it already has a battery, no?

[–] lka1988@sh.itjust.works 1 points 2 days ago (1 children)

If the laptop has a way to limit charging to, say, 70% in order to not turn into a spicy pillow, it would be viable. I have an older HP Elitebook 8440p laptop running as a server of sorts in my cluster, but the battery is no longer capable of holding a charge at all because it's always plugged in. I might get a Thinkpad to replace it as there are modifications for those to limit the battery charge level.

[–] atzanteol@sh.itjust.works 0 points 2 days ago (1 children)

If the laptop has a way to limit charging to, say, 70% in order to not turn into a spicy pillow, it would be viable.

Firstly - I love the phrase "spicy pillow".

Secondly - It would probably depend on the laptop and its battery health. But also the OS can limit charging I believe? I haven't looked too far into how it works but I've got my laptop setup to only charge to 90% because I'm nearly always plugged in. I don't know if that relies on any hardware/firmware options though.

[–] lka1988@sh.itjust.works 2 points 1 day ago (1 children)

tlp has more features available for Thinkpads, specifically, so there's that. I'm thinking more of a laptop form factor but built as a portable server, with the battery specifically designed to be a secondary power source (like a UPS) instead of the primary power source.

Of course something like that would be incredibly niche, so it makes sense that it's not really a thing.

[–] atzanteol@sh.itjust.works 1 points 1 day ago* (last edited 1 day ago)

Yeah I figure it's the sort of thing that requires some firmware support at least.

One thing I've always liked about using laptops as servers more than the battery has been the built-in display and keyboard. 😁

[–] ZeDoTelhado@lemmy.world 1 points 2 days ago (1 children)

That is true, however there are 2 things

  • battery of this machine is toast (holds up for half an hour or less)
  • as someone mentioned in another comment: unattended laptops with batteries can be actually bad. Batteries on certain cases can leak and cause fires, so for me, if it can work without it great, otherwise I have to drop the idea
[–] atzanteol@sh.itjust.works 1 points 2 days ago* (last edited 2 days ago) (2 children)

battery of this machine is toast (holds up for half an hour or less)

Fair.

as someone mentioned in another comment: unattended laptops with batteries can be actually bad. Batteries on certain cases can leak and cause fires, so for me, if it can work without it great, otherwise I have to drop the idea

I'm not clear on how a UPS would be different in this regard. They both have high-capacity batteries that need monitoring. Unless the UPS is using a different chemistry?

[–] IsoKiero@sopuli.xyz 1 points 1 day ago (1 children)

Laptops use lithium-ion batteries and (at least your Average Joe's and majority of commercial units too) UPS uses sealed Lead Acid. If lithium ion battery goes belly up it'll burn your house down. If lead acid battery does the same, at worst, it'll leak a bit of corrodive fluids to whatever it's on top of.

There's commercial size li-ion UPS's too, but they require quite a lot of hardware around them to be used safely. Search from youtube (or whatever you like) a cell phone battery explosion and then scale that up to a fridge-sized cell-phone. It's quite a bit of steel and concrete to contain that amount of energy. And the funny thing about li-ion fires is that lithium ions reacts quite violently with water and the battery contains all the chemicals to keep the fire going, oxygen included.

So, yeah, UPS is a whole another thing to manage than a laptop battery.

[–] atzanteol@sh.itjust.works 2 points 1 day ago

Ahh, okay - it is a different chemistry. I wasn't sure - thanks!

[–] ZeDoTelhado@lemmy.world 1 points 1 day ago

From my experience in the past, ups are done to be constantly on, and as far as I know, usually they have failsafe mechanism in case something is not working as intended. Laptop batteries do not have such extensive protection from what I know. However, if an ups is getting old (around 5 years or so) is probably best to change the batteries (if the model allows it)