News for hackers. Stuff that matters.
Re:Ask HN: What's on your home server? by lxgr on Friday January 06, 2023 @11:25AM (#34276691)
I've been using a Raspberry Pi as a home server, and it's been holding up amazingly well, given everything I've thrown at it:

- The excellent Home Assistant, for unifying across Homekit and Google Home and tracking historical temperatures and a couple of automations. The RPi has Bluetooth built in, so I can capture the data from a few Bluetooth thermometer/hygrometers running custom firmware (https://github.com/pvvx/ATC_MiThermometer) without a 802.15.4 bridge or similar.

- An AirPlay to Google Cast bridge, mainly for listening to Overcast or the occasional YouTube video on Google speakers (without subscribing to Youtube Premium/Music)

- A SMB server, for file storage and potential Time Machine backups (but I don't currently have enough storage, and locally attached SSDs are just hard to beat in terms of performance)

- A DLNA server, for watching photos and videos on my TV

- Tailscale, for the occasional use of my home connection as a VPN when traveling (really glad to be having symmetric fiber for this!)

- Caddy, as a frontend for everything web facing, to benefit from its excellent Let's Encrypt integration for automatic certificate requests and renewals

Most of this is running in Docker containers and configured via Ansible, so that if the microSD card burns out (or I botch an OS update), I can just flash a new one with an empty image and recover from there.

Re:Ask HN: What's on your home server? by LeoPanthera on Friday January 06, 2023 @12:55PM (#34278317)
All of my Raspberry Pis netboot, which means I never have to worry about a card burning out, and I can change what they boot into by just renaming a symlink on the server.
Re:Ask HN: What's on your home server? by BanjoBass on Friday January 06, 2023 @01:11PM (#34278547)
Seems like a smart way to do it, but that relies on having another always-on system standing as the server. OP's solution only requires the one device, the rPi unless something needs to be changed.
Re:Ask HN: What's on your home server? by LeoPanthera on Friday January 06, 2023 @05:07PM (#34281943)
That's true. In theory you could use an extra Raspberry Pi itself as the netboot server. But since my home network already has a fileserver it was an easy choice.
Re:Ask HN: What's on your home server? by cassianoleal on Friday January 06, 2023 @07:50PM (#34283654)
If you run an open source router distro like OpenWRT or OPNSense, you can use it as the PXE Boot host. That's a device that needs to be running anyway.

I've seen a lot of people running their routers as a VM on something like Proxmox and that gives you even more flexibility but it does require a beefier server - one that could potentially replace all the RasPis, potentially making the PXE boot redundant. :D

Re:Ask HN: What's on your home server? by sorenjan on Friday January 06, 2023 @09:06PM (#34284277)
Can you netboot from a desktop computer that's not always on? If the desktop is running when the pi is booting, does the pi then need the "server" (desktop pc) again until it needs to reboot?
Re:Ask HN: What's on your home server? by LeoPanthera on Saturday January 07, 2023 @04:40PM (#34293148)
No, because the root filesystem is mounted by NFS.
Re:Ask HN: What's on your home server? by joejoesvk on Friday January 06, 2023 @02:13PM (#34279391)
i'm trying to buy rpi but can't decide which configuration. what are minimum requirements to run airplay bridge, home assistant?
Re:Ask HN: What's on your home server? by lxgr on Friday January 06, 2023 @02:39PM (#34279793)
I'm using a Model 4 with 4GB of RAM, but 2GB would probably also be ok. (I haven't measured peak memory usage, but I imagine that having some spare memory for file caching reduces read contention for the SD.)

Home Assistant can take a minute or two to start up, keeping all four cores quite busy, so I wouldn't recommend trying this on an older model myself.

If you want to use the Pi's internal Bluetooth module, obviously you'll also need one that has one and supports Bluetooth LE. Again, I can only speak for the Model 4 here, which works great for that.

Re:Ask HN: What's on your home server? by 3np on Friday January 06, 2023 @02:22PM (#34279535)
In terms of minimum requirements, you could even run that on a 0 or older.

In practice, you probably want at least 3b+ for reasonable performance. If you're buying new anyway and can get them for MSRP I don't see why you wouldn't get a 4.

Re:Ask HN: What's on your home server? by greggyb on Saturday January 07, 2023 @12:45AM (#34285591)
If you want a Pi (or alike) for specific reasons, go for it!

But, if you are looking for cheap and relatively low-power compute, I strongly recommend looking at used ultra small form factor PCs. You can get much more computational power and expansion, often for cheaper than a Pi. And eBay is riddled with these things, unlike recent Pi availability.

https://www.ebay.com/sch/171957/i.html?_from=R40&_nkw=%28len...

The pricing gets even better if you want to buy them in a lot.

Re:Ask HN: What's on your home server? by mattvot on Friday January 06, 2023 @03:25PM (#34280535)
Which AirPlay to Google Cast bridge are you using? Thanks
Re:Ask HN: What's on your home server? by lxgr on Friday January 06, 2023 @03:41PM (#34280742)
This one: https://github.com/philippe44/AirConnect

And here's a containerized version that works with the Pi: https://github.com/1activegeek/docker-airconnect