Ask HN: What's on your home server?
519 pointsIt's been years (over a decade?) since I've had a server at home but I'm setting one up for media and I got to thinking: what else should I do with this box? So I was wondering what cool/nerdy/weird stuff you all are using home servers for. DNS and file sharing seem like obvious applications I could set up. I already run email and web on a VPS so that's taken care of. What are you doing with your home server?
Comments (456) 205 threads
Earlier commentsOn the server/NAS, a QNAP TS-464eU (4x 4TB HDD RAID 5 + 2x 1TO SSD RAID 1), I'm running Container Station with 4 docker containers:
Computers (including mine) are backed up daily via NextCloud. The NAS is also backed up off-site with a cloud provider.I did a more comprehensive list of the setup[0] if you are interested.
[0] https://www.craft.do/s/W8r9KufHct0zG7
Still can't avoid having at times to go and fix the god damn printer however. Printer driver programmers/designers really make me question if politicians should be the most hated profession in the world.
Trying not to be snarky but really printers are very mechanical I/O devices. I don't think the driver programmers have much fun with their jobs, having to deal with seemingly greedy product requirements and lots of variation in real world use (humidity, paper type, ink quality, yada yada). When I start thinking about this and couple it with my own stupidity, I am amazed anything works at all. How do you even do automated integration tests on a printer?
I'd like to think I am about an average programmer and I am reminded by my own actions everyday that I know nothing. I am constantly learning (and forgetting) new ideas every week.
Continue this thread — 1 reply
With the current setup, I can easily connect via VPN to configure network devices. Ubiquiti also makes it very simple to apply network changes or upgrade it remotely (as long as it's from the same brand). I set up extensive monitoring and alerting to proactively resolve issues. I also gave my parents some training and docs on how to plug things to the Ethernet sockets (if they want to setup a new printer for example) or what to do to bypass the router (rewiring) in case the main router fails.
As a side note to helping my parents. They are both 70, not the most tech literate people but they manage to do all basic things without much trouble. I put them both on Ubuntu 8 years ago, never had any issues whatsoever. I get maybe one message or call in 6 months for a question, but it's usually web related. Once in a while when I get home I update the distro, but that's pretty much all the maintenance I do. I have Teamviewer on all their devices, just in case but never really had to use it so far.
Okay, so can I hire your parents?
Continue this thread — 1 reply
With DIY you are usually left with at best ripping it all out and selling it without any “Smart Home” promises, you can I guess still market that it has structured cabling to enable smarts though?
Continue this thread — 2 replies
"Ever since you installed that ad-blocker, the Wi-Fi signal in the den is really weak"— uh, that's not how that works.
It's why I make every effort to never touch or even give advice on technical matters to friends and family anymore. Almost zero upside and unlimited downside—getting angry texts and phone calls at all hours of the day and night, and offering free support for life (and almost always accompanied by zero thank you's).
TV going into a Receiver in the next room, and DVD+Apple TV connected to that receiver. 5 channel audio from the receiver. Several zones of in-ceiling speakers also run by the receiver. Some "knock off" Logitech-like smart remote control, because it's easy for the installer to program, but fairly hard to use and not something we can customize. CCTV cameras connected by coax to a central controller, I think the resolution is 640x480. One simple WiFi AP to try to cover the whole 4600sqft house.
For my own home, I went with a Google TV with soundbar and HDMI+CEC and get full control with a single remote. For full house audio I use a combination of Google Home speakers and portable bluetooth speakers. Much simpler and flexible.
I realize that is a concern for some, that is not a concern for me.
Continue this thread — 1 reply
Ubuntu 22.04 Server for the host, everything else runs in LXC containers. This is all setup on ZFS.
- https://znc.in/ IRC bouncer
- https://caddyserver.com/ Caddy Webserver for a few personal websites
- https://github.com/AndroidKitKat/waifupaste.moe/ My personal pastebin
- https://transmissionbt.com/ Torrent client that I actually use for Linux ISOs. Primarily seed different versions of Ubuntu and the latest Arch. I am looking to seed other, lesser-seeded distros, too.
- It also runs Samba
A second, dedicated computer also running Ubuntu Server 22.04. It only runs https://pleroma.social for me and a few of my friends.
A third computer, this time an M1 Mac Mini that is my Plex box. It's running the latest version of macOS Ventura and runs all the *arrs and qBittorrent. It also runs Plex itself, because it's one of the only computers that I found that was low power enough but still supported hardware transcoding in Plex. I've been meaning to find a replacement for it running Linux + an AMD GPU (I have an rx470 sitting around somewhere), but no real good deals have turned up.
Much simpler than my glue using changedetection.io and huginn.
I also learned some new tricks with wget.
For others interested: https://explainshell.com/explain?cmd=wget+-nH+--cut-dirs%3D4...
It's okay boss, plenty of us pirate stuff too. You can just admit it.
TL;DR: pick up a NUC knockoff with an >8th gen celeron or i3; it'll handle anything a casual household can throw at it.
[0] https://forums.serverbuilds.net/t/guide-hardware-transcoding... this is far and away the most comprehensive hardware guide for plex servers.
I just searched ebay for used celeron NUCs, and got lots of options like this one, with a 9th gen Celeron, for a hundred bucks. NB that the generation matters much more than the CPU, but some operations are still done by the CPU so if you can get an i3 or i5 it will make a marginal difference.
https://www.ebay.com/itm/115640978606?hash=item1aecbd4cae%3A...
4k TVs are common, planning for 1080p use is a mistake at this point imo.
Continue this thread — 6 replies
2) quicksync on a 10g or newer cpu is benchmarked at 4-6 4k simultaneous streams, but a lot depends on the details: container format in particular matters a lot, and so do your transcode options. Color matching for example, is only ever done on CPU. And IIRC AV1 and VP9 are not supported by quicksync (or older discrete GPUs).
That said, it's completely correct that you should measure all advice against your actual output device capabilities and source quality.
- plex for streaming media
- external hdd that a friend uses as offsite backup (he has mine)
- home assistant, mostly fed by data from the...
- mqtt broker, that ties the sensors around my house together
- postgres, for long term reporting and predictions, mostly with data from...
- some cron jobs that scrape weather data and energy prices (they change hourly, sometimes going negative)
- security camera (a shell script saving an RTSP stream)
- a docker container that I can ssh into from anywhere, that allows backing up the iphone photo roll using the "photosync" app into my photo backup folder
Soon (I tell myself) I will analyze the security camera stream with YOLO or something to detect the cats that piss against my bikes... hehehe
I have been considering building a bespoke home system with Elixir and am slowly building some APIs and ideas.
Use Tailscale for MagicDNS and access from any network.
Have a custom wildcard domain pointing to my tailscale k3s node ips, and a traefik ingress controller. This means exposing a service from my cluster on a subdomain just requires creating an ingress object in k3s, and it's only accessible via tailscale. cert-manager and let's encrypt handle TLS.
All services are deployed via gitops using ArgoCD, so changes are auditable and can be easily rolled back. Replacing hardware is just a matter of installing k3s and joining the cluster, then everything automatically comes up.
Restic for backups to s3.
For home automation I use a USB zigbee controller, mosquitto, zigbee2mqtt, room assistant, and home assistant, all deployed on k3s. These control my lights, HVAC, and various garage doors and gates. Also have mains-powered zigbee switches bound directly to devices so everything still works even if network or home assistant goes down.
The RPis are used for Room Assistant, which can automatically control lights/HVAC based on presence detection via a smartwatch. More intrusive actions (e.g. making lights brighter when already turned on, opening blinds) are pushed to the smartwatch for confirmation.
Grafana/prometheus to monitor sensors.
For media, jellyfin and sonarr/ radarr. The native Jellyfin app works very well on modern LG TVs.
Pihole to block ads on any device connected to Tailscale. Works globally.
Right now it's zero maintenance, and changes are automatically synced after a git push, so I almost never SSH into the servers directly.
I have the same setup with K3S running on a couple PIs. You have a nice CI but I decided to use cdk8s[1] which lets you compile Typescript into K8 files. For access I did almost exactly the same but with CloudFlare Tunnels (might look into Tailscale). Stealing the zigbee2mqtt and room assistant ideas.
Where do you store volumes? I eventually just bought a NAS and mount persistent NFS volumes off it.
1. https://cdk8s.io/
> Where do you store volumes?
Back when it was a single node cluster, I just used hostFolder mounts with restic backups. I added Longhorn once the cluster grew, but there's still some local hostFolder mounts left around. For example, zigbee2mqtt needs to be on the node that has the zigbee controller plugged into it, so the node is tagged and zigbee2mqtt has a nodeSelector. This means the hostPath still works and I haven't needed to migrate it to Longhorn.
Longhorn initially scared me off with its relatively high listed resource requirements, but after configuring it to not run on the RPis it turned out to work quite well, most of the time just using a few percent CPU.
My experience on a CX OLED has been hit-and-miss. Freezes, crashes, and some times it just hangs when skipping and I have to force-close it.
I really want to like Jellyfin. I run it beside Plex and use both. I find Plex user-hostile but it still gives me a better video playing experience more consistently.
Continue this thread — 1 reply
Continue this thread — 3 more replies
All comments shown.
Couldn't load more comments. Check your connection and try again.