I am a big fan of "mini desktop" computers for this sort of task (my lemmy instance is running on one). You can usually pick them up used/refurbished for pretty cheap with decent specs: i5 or better processors, upgradeable RAM (SO-DIMM), M.2 or 2.5in SSD. They are quite small, and relatively low power. I have a few in my homelab, and one acting as my media-center PC in my living room.
Selfhosted
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:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
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.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
You're right, just having one mini-pc with Proxmox and being able scale VMs between applications is a lot better than a collection of sbc's. I will look at the used market.
I second this. I used to use Raspberry Pis but one mini PC can do so much more and isn’t much more expensive.
Yeah, maybe I was rough on them but I killed like 2 Pis in a year running OpenELEC/LibreELEC (even with heatsinks) before I bought an Nvidia Shield (which was great until Google forced terrible things onto it and Nvidia seemingly stopped supporting it). I grabbed one out of my homelab and I've just been running straight Ubuntu on it for about 6 months at this point and wouldn't dream of going back.
I've got a HP ProDesk G5 SSF I bought from eBay for $200, and love it. It's got a Core i5-9500 which is more than enough power for me. I run a few things on it, like Blue Iris (in a Windows Server 2022 VM) for my security cameras, Home Assistant, Zigbee2mqtt, Node-Red, VictoriaMetrics, and a bunch of others.
Having said that... Depending on how much power it uses and how much power costs in your area, it can sometimes end up cheaper to use a VPS, and you get better enterprise-grade hardware and internet connections. You can get a good VPS for less than $50/year especially during Black Friday and Cyber Monday sales on Lowendtalk.com.
2gb will be limiting, and the database will kill SD cards quickly (like, a couple weeks kind of quickly) However if it's just you and <100 other people it will not be stressed otherwise
For little computers like the Pi and its clones, I'd recommend using a SATA SSD via USB rather than an SD card, unless your use case has very few writes. I'd recommend this cable: https://www.amazon.com/gp/product/B00XLAZODE/. It's one of the ones that's well supported by the Pi, and is what I use.
Edit: I recommended a SATA SSD rather than NVMe because you won't really notice a major difference over USB, and some NVMe drives pull more power than the Pi's USB ports can handle (SATA uses quite a bit less power).
Thanks, this is what I am using now for Home Assistant, but overall it's a bit expensive for the power you get with a Pi4.
At least you can reuse the SSD for something else if you ever stop using the Pi. They make great portable drives (but you'd definitely want a case for that)
I was doing the same (running Home Assistant on the Pi) but these days I'm running Home Assistant on a HP ProDesk small form factor PC, mainly because I also wanted to run Blue Iris. The Pi is only my DNS server at the moment.
You should mount an external disk for your data. That should help keep your instance alive.
Yeah, don't use SD for something, that continuously writes data on it. One power outage and it will die.
Source: lost 2 sds on my OPi 3 lts.
Thanks, I (of course after posting this) stumbled upon this discussion: https://sh.itjust.works/comment/114723
Seems like storage use is quite intense, and RAM usage exceeds the 150MB that the docs mention too. For storage, I would probably try to use a cloud option (AWS S3?) to prevent having to replace/add disks all the time.
Although it's starting to look like more and more of a hassle and not that much benefit so far.
Thanks for the advice all, just bought an 8th gen i3 NUC (4 vCPU, 8GB RAM) to play around with Proxmox and VMs. Going to start off with migrating Home Assistant and then set up a Lemmy instance, and perhaps a static website too.
Is it safe to host a public server on your home network? I'd feel safer if it was on a VPS just in case it's compromised.