Live data from Hacker News

Raspberry Pi as a local server for self hosting applications

cri.dev

151–160 of 321 posts

Re: Raspberry Pi as a local server for self hosting applications

#151

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

I tried running nextcloud on an rpi. It just doesn't cut it. I had the 4gb model and nextcloud runs but its a horrible experience. You go on the web UI and click a photo and it takes 10 seconds to load. Moved my server to a ryzen 5 based setup and now everything is instant. I'm not sure what the limiting factor on the rpi was because the ram and cpu usage was low. Perhaps it was memory or storage speed.

I have a Pi4, 4gb model running my NextCloud instance in a docket container, along with pihole and home assistant in another folder.

It’s always run perfectly fine for me and my needs, and I even tested having shared video calling in NextCloud and it continued to work great.

I’m not sure your configuration, but it might be worth trying on a Pi4?

Re: Raspberry Pi as a local server for self hosting applications

#152

Setting up a pi-hole DNS server for my wifi network was one of the best decisions I've ever made. Horrifying to see what percentage of traffic is on the ad server blacklist though...

My favorite one continues to see the 1000+ dns requests that my Philips Hue lights send after disabling diagnostics on them. It was the same beforehand :)

Re: Raspberry Pi as a local server for self hosting applications

#153
post #25

Earlier quoted context omitted.

I wasn't aware that my Samsung Smart TV had been logging almost my every action on the TV until I set up a PiHole server. Also, my respect for Apple grew by the fact that only device that wasn't doing loads of telemetry turned out to be my Macbook in the whole household.

> Also, my respect for Apple grew by the fact that only device that wasn't doing loads of telemetry turned out to be my Macbook in the whole household Turns out that modern electronic devices are expensive. If you are not charged up-front, there's a good chance that you are being charged in some other way.

Let’s be fair, even if you did pay more up front, they’d still get ads from you. The whole thing is pervasive and we need legislation for it.

Re: Raspberry Pi as a local server for self hosting applications

#154
post #124

Setting up a pi-hole DNS server for my wifi network was one of the best decisions I've ever made. Horrifying to see what percentage of traffic is on the ad server blacklist though...

I wanted to do that, but I had a look at Pi Hole and ran away screaming. Instead of proper packaging, they have a 3000 line install script they want you to pipe into Bash. I went a saner route, and used dnsmasq and a blocklist[1] updated nightly via cron. Dnsmasq in turn queries Stubby that talks to uncensoreddns.org via DNS-over-TLS. Boom, DoT on my entire LAN. [1] https://github.com/notracking/hosts-blocklists

Run it in a docker container

Re: Raspberry Pi as a local server for self hosting applications

#155

If you run anything semi-serious please consult this blog post by Jeff Geerling about SD card performance (buy A1 ones). https://www.jeffgeerling.com/blog/2019/raspberry-pi-microsd-...

It’s an rpi connected to a dual core laptop on a home connection, presumably without a battery backup. Nothing about this is remotely semi-serious.

Re: Raspberry Pi as a local server for self hosting applications

#156
post #7

Friendly reminder that you can use Piku ( https://github.com/piku ) for Heroku-like deployments.

I prefer CapRover; it supports inbound webhooks so you can hook it up to Gitea/GitLab/GitHub with its own ssh deploy key and it will autodeploy from a specific branch, so you don’t need to push to it.

Re: Raspberry Pi as a local server for self hosting applications

#157
post #25

Setting up a pi-hole DNS server for my wifi network was one of the best decisions I've ever made. Horrifying to see what percentage of traffic is on the ad server blacklist though...

I wasn't aware that my Samsung Smart TV had been logging almost my every action on the TV until I set up a PiHole server. Also, my respect for Apple grew by the fact that only device that wasn't doing loads of telemetry turned out to be my Macbook in the whole household.

Apple devices still contact the mothership nonstop even with telemetry disabled, for a bunch of different reasons, even if you don’t use any iCloud or Apple services. Don’t be fooled by the DNS logs.

Re: Raspberry Pi as a local server for self hosting applications

#158

Earlier quoted context omitted.

I tried running nextcloud on an rpi. It just doesn't cut it. I had the 4gb model and nextcloud runs but its a horrible experience. You go on the web UI and click a photo and it takes 10 seconds to load. Moved my server to a ryzen 5 based setup and now everything is instant. I'm not sure what the limiting factor on the rpi was because the ram and cpu usage was low. Perhaps it was memory or storage speed.

I have a Pi4, 4gb model running my NextCloud instance in a docket container, along with pihole and home assistant in another folder. It’s always run perfectly fine for me and my needs, and I even tested having shared video calling in NextCloud and it continued to work great. I’m not sure your configuration, but it might be worth trying on a Pi4?

I was using the pi4 with 4gb ram. Were you booting of an sd card? That might have been my issue.

Re: Raspberry Pi as a local server for self hosting applications

#159
post #134

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

Use IPv6. It doesn't have the address exhaustion that caused providers to implement CGNAT, and dynamic IPv4 addresses. No need for VPS management, DynDNS, port forwarding, hold punching. You still need public DNS, but you can use public DNS as your internal zone as well (no need for split DNS). You also still need PKI, so maybe setup a reverse proxy for SSL termination with a wildcard certificate.

I look forward to the day everyone can have IPV6. For now many of us still have to deal with NAT sadly - especially if we're open sourcing our software for users to deploy on any network.

Re: Raspberry Pi as a local server for self hosting applications

#160
A DigitalOcean vps can be a pretty inexpensive and easy option.

I've done this with a Pi and Dyndns. It's pretty easy to setup but not as good (for me) as a DO vps because my home ISP limits data heading out. I would have to purchase a business plan to fix that and it still wouldn't be better or cheaper than what DO and others can provide.

A Pi can be used for development on your home network and it excels at that. And the older RPis can run [1]CouchDB and be configured to "Live Sync" with a CouchDB running on a commercial VPS. That too is a pretty easy to setup and it provides some pretty nice options. For example, you can make your app use the Cloud based CouchDB while you're out and about and it will sync your data with your local CouchDB. Then when you get home you can turn off the cloud access and even delete your data on the cloud DB.

1. The latest version of CoudhDB (v3.0+) doesn't run on the new ARM based Pi 4.

Post reply on HN