5 ms·
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, f
by lxgr 4y ago
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 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.
- LeoPanthera 4y agoAll 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.
- BanjoBass 4y agoSeems 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.
- LeoPanthera 4y agoThat'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.
- cassianoleal 4y agoIf 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
- sorenjan 4y agoCan 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?
- LeoPanthera 4y agoNo, because the root filesystem is mounted by NFS.
- joejoesvk 4y agoi'm trying to buy rpi but can't decide which configuration. what are minimum requirements to run airplay bridge, home assistant?
- 3np 4y agoIn 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.
- lxgr 4y agoI'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.
- greggyb 4y agoIf 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=%28lenovo+tiny%2C+hp+mini%2C+dell+micro%29+-laptop+-atom&LH_TitleDesc=0&_sop=15 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.
- mattvot 4y agoWhich AirPlay to Google Cast bridge are you using? Thanks
- lxgr 4y agoThis one: https://github.com/philippe44/AirConnect https://github.com/philippe44/AirConnect And here's a containerized version that works with the Pi: https://github.com/1activegeek/docker-airconnect https://github.com/1activegeek/docker-airconnect