this post was submitted on 21 Jun 2023
14 points (88.9% liked)

Selfhosted

39519 readers
877 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

So I've been running a little 2 node rpi kubernetes cluster for over a year now, bootstrapped with Ansible and Helm (source). I picked Ubuntu Server at the time because I think the official 64-bit Raspbian OS was still young or maybe not even out at the time (can't quite remember) but I've found myself fighting with Ubuntu an awful lot culminating in a major version upgrade to "jammy" last night that has wrecked one of my nodes. It even tried to delete the running kernel during the upgrade but caught itself and asked me to confirm, wtf. I've never experienced a Linux upgrade this bad. Yeah, "jammy" is right. Luckily I use a separate NAS for persistence. So I'm breaking up with Ubuntu, which I think is the cool thing to do these days anyway, and using this as an opportunity to rebuild and clean up my IaC.

I am most familiar with Red Hat distros (Fedora/CentOS daily drivers for years now, RHEL servers at work) though I'm not familiar with the ARM ecosystem there. Ive also been wanting to try NixOS for a while but looking at some of the rpi config last night had me a little concerned because it felt unfamiliar. Then of course there's the Official Raspbian OS, 64 bit support should be solid by now.

What OS are you using for your Raspberry Pi servers? Any I should definitely avoid?

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Both of the RHEL clones, Rocky Linux and AlmaLinux, build images for the Raspberry Pi 4. Those should fit your needs nicely if you're looking for something familiar and stable.

[–] macgregor 2 points 1 year ago

Heard good things about Rocky Linux, will add it to the candidate list, thanks!

[–] [email protected] 2 points 1 year ago

Debian, the best Linux distro ever.

[–] [email protected] 2 points 1 year ago

DietPI ftw, debian based… it’s just easy.

[–] [email protected] 2 points 1 year ago (1 children)

I'm weird and use ArchLinux ARM on my Raspberry Pi computers. I think it's much easier to admin, especially if you don't need video accelleration, but I use Arch on the daily, so that's probably why I feel that way.

I also find that Fedora was pretty nice as well, but felt too bloated for what I needed.

Finally, Alpine was amazing. I used to use it as my daily driver for a while as well, and it is nice, lean, and easy to use. The main downside is that it uses the musl libc meaning sometimes packages won't work, or things won't compile. That was very uncommon though and the exception , not the rule.

The main problem I've had on ALL of those distributions were the clock. The Raspberry Pi doesn't have a built-in clock, so you need to use NTP to pull the time down, or else it'll be extremely out of sync. This means setting up your timezone, etc. RPi OS does this for you, but most DIY distros (Alpine, Arch) will not, so you'll need to set that up.

[–] macgregor 2 points 1 year ago

I've used alpine for minimal container images, but never as a workstation or server (or arch for that matter). Config management isn't an issue, I already ansibilized my config and a significant amount is removing crap I don't want for Ubuntu so maybe going minimal and installing exactly what I need is would be cleaner. Hmmm. Tempting.

[–] [email protected] 2 points 1 year ago (1 children)

I've only ever used Ubuntu 64-bit on my RaspberryPis without much issue, but honestly, all I ever use them for is hosting docker containers for systems that generally work out-of-the-box. I don't have them clustered in any way (yet). I'm not doing anything fancy (yet).

If you or anyone else has a suggestion for an OS that is super slim and runs Docker, I'd love to hear about it. I don't need the desktop environment whatsoever.

[–] macgregor 1 points 1 year ago

So the only "problem" I had with Ubuntu before this terrible upgrade was having to uninstall snap (which isn't straight forward to do since it's so engrained but also not terrible) because it uses a non trivial amount of resources for the little rpi - CPU, memory, start up time - just existing. I also found myself removing other packages/config because I found it annoying, like the motd/apt notice to upgrade or subscribe to some kind of "pro" plan for some security upgrades, ESM something? That raised my eyebrow.

I have plenty of respect for Ubuntu, it's just leaving a bad taste in my mouth lately so I'll let them simmer for a while as I try out another distro. I'll probably end up with something red hat based, but I won't have time to look until the weekend.

[–] [email protected] 1 points 1 year ago

I run pure debian on mine... it runs great and I just like Debian in general because everything is an apt install away, at least for what I need.

[–] zueski 1 points 1 year ago

I use Manjaro for nearly all of my pi’s, mostly because it is arch based and supports newer libraries.^___^

[–] [email protected] 1 points 1 year ago

I use Debian testing for my RPI 4, minimal install, no issues. Also booted from usb.

[–] [email protected] 1 points 1 year ago

Hello,

I am going for dietpi. That a minimalist with many auto installers/configurators. I run a docker swarm on this distro, it work pretty well. https://dietpi.com/

Regards.

[–] [email protected] 1 points 1 year ago

Fedora recently added official support for RasberryPis and having tried it on another ARM board before I can't say anything bad about it.

load more comments
view more: next ›