53

I want to reset my server soon and I'm toying with the idea of using a different operating system. I am currently using Ubuntu Server LTS. However, I have been toying with the idea of using Fedora Server (I use Fedora on my laptop and made good experiences with it) or even Fedora CoreOS. I also recently installed NixOS on my desktop computer and find the declarativeness pretty cool (but I'm still a complete beginner) and could imagine that it would fit well into a server setup.

I have quite a few services running on my server, such as Nextcloud, Conduit (Matrix), Jellyfin, etc. and all in containers. I would also rather not install programs without containers, because 1. compose is super easy to maintain and set up, 2. it remains very clear with containers (and compose) and 3. I believe that containers are more secure. But since I also want to make the services inside the containers available, I currently have Nginx installed as a reverse proxy (not in the container, but on the system) and always create certificates with certbot so that I can use HTTPS encryption.

In the paragraph above I actually described exactly the use-case of Fedora CoreOS, but I have no experience with the system and how it works. That's why I'm still a bit hesitant at considering the OS at the moment. I can imagine that NixOS with its declarative nature seems well suited, since, as I have heard, you can configure containers as well as Nginx and with Nginx also https certificates declaratively. But I could also use a base system like before (Fedora Server or Ubuntu Server) and simply install podman, nginx and certbot and manage everything that way.

Have you had any experience with Fedora Server, Fedora CoreOS, NixOS or a completely different operating system for servers and what are/were your impressions with this setup? Or do you just want to share your knowledge here? I would be delighted.

top 50 comments
sorted by: hot top controversial new old
[-] vegetaaaaaaa@lemmy.world 88 points 7 months ago

See you back on Debian in a few months

[-] aodhsishaj@lemmy.world 14 points 7 months ago
[-] PlexSheep@infosec.pub 5 points 7 months ago

Proxmox is just Debian 12 with additional software preinstalled

load more comments (1 replies)
[-] TCB13@lemmy.world 2 points 7 months ago* (last edited 7 months ago)

Or, better yet, LXD/Incus.

[-] JustEnoughDucks@feddit.nl 8 points 7 months ago

Can't be hit by new backdoors when your packages haven't had updates for years 😉

In all seriousness Debian makes solid choices that makes everything as low maintenance as it can get for self hosting.

For someone who recently lost a bunch of their free time, that is amazing to not have to mess with stuff.

[-] TCB13@lemmy.world 39 points 7 months ago

You next OS will be... Debian. Because you care about your time and you want stuff to be stable.

[-] BentiGorlich@gehirneimer.de 29 points 7 months ago

always . freaking . debian

[-] towerful@programming.dev 26 points 7 months ago

I always think about using nixos. But considering I dockerise everything, I always end up using Debian.
Good old stable Debian

[-] mobergmann@lemmy.world 3 points 7 months ago

You can also use container within NixOS and AFAICT even declare the containers which should be running. Also NixOS is sad to be stable, or am I missing something?

[-] towerful@programming.dev 3 points 7 months ago

Yeh, but I already have compose files and ansible things to set up a server.
And I'd have to figure out how health checks and depends-on works for that.

I'm sure it would give me an amazing experience, but I have all the tools and I can run them in isolation (ie I can install docker on any os I can SSH into)

load more comments (4 replies)
[-] WeLoveCastingSpellz@lemmy.dbzer0.com 16 points 7 months ago
[-] possiblylinux127@lemmy.zip 7 points 7 months ago

Debian, Debian and maybe Debian

[-] sunstoned@lemmus.org 12 points 7 months ago

My $0.02:

NixOS is excellent, and actually pretty easy if you're not trying to do anything fancy (running all services under a single user, etc.). Personally this is my pick because I primarily host services for myself, so down time in exchange for learning a new thing is acceptable.

As I mentioned elsewhere, Debian + Incus is a great minimal and rock solid solution for longer standing services. Although, it's not composeable :(

More directly to your preferences, I would also recommend considering Rocky. Being in the RHEL ecosystem has its perks (especially with rootless support for podman and podman-compose). I'm also generally a fan of SELinux. Rocky is a little less bleeding edge than Fedora with many of the same conveniences and recent packages. In my mind, for my purposes, that makes it a better choice than Fedora for a server OS.

[-] poVoq@slrpnk.net 10 points 7 months ago* (last edited 7 months ago)

Fedora Server works well, and the Podman integration is great.

I guess it is the boring option, but probably the best when coming from Ubuntu.

[-] Deebster@programming.dev 4 points 7 months ago

I went with Fedora on my VPS because I was also planning to use rootless Podman. Quadlets and running everything through systemd with SELinux enabled is working pretty well for me.

[-] realbadat@programming.dev 10 points 7 months ago

Proxmox.

Each service becomes an LXC. Docker containers can be migrated to LXC, or be contained within an LXC dedicated to docker.

Running out of processing power? Add another server, add to a cluster, and migrate services (LXC or VM) over.

Having run Fedora, Debian, Ubuntu, CentOS, RHEL, slack, even Oracle Linux - Proxmox is what I run for myself (and some clients).

[-] mobergmann@lemmy.world 2 points 7 months ago

I don't know if the use-case you describes fit into my problem. I only have one server and its a physical server. I'm also not really able to extend the number of servers, as I don't really have the budget.

[-] realbadat@programming.dev 3 points 7 months ago

Proxmox is a server OS based on Debian which is oriented on running virtual machines and Linux containers.

The physical server runs proxmox. The services can all be individual containers (LXC's).

Adding to the number of servers (and migrating containers later) is a benefit of Proxmox, since you can buy another PC to be a server later, and easily expand as you go.

[-] sunstoned@lemmus.org 5 points 7 months ago* (last edited 7 months ago)

I tend to not use the webui, so I prefer the similarly useful combination of Debian + Incus (spawned from the LXC project).

Sure, HA isn't baked into Incus (to my knowledge) but similar to OP I only have one physical box and don't necessarily care to manage multiple.

That being said, Proxmox is a good solution in the scheme of things and generally a good recommendation.

[-] realbadat@programming.dev 3 points 7 months ago

I've got a small fleet of tmm's, so HA is just practical for me, but yeah that works to with a single machine. Especially if you were sharing desktop use on it.

[-] Xianshi@lemm.ee 8 points 7 months ago

Not sure what works best in your case. I'm a Debian cat myself but I have been considering openbsd as a future option.

load more comments (4 replies)
[-] possiblylinux127@lemmy.zip 8 points 7 months ago
[-] ryannathans@aussie.zone 8 points 7 months ago

I'm using FreeBSD now and I have been blown away at how well it just works and gets out of your way. I am using appjail templates to script containerisation of my services

[-] sundaylab@lemmy.ml 5 points 7 months ago

Yes yes yes. It's great to see other FreeBSD fans here with the same opinion.

I was using Debian as a server OS for more than twenty years with short escapades to other distros but then I discovered FreeBSD and there was no way back. ;)

[-] MigratingtoLemmy@lemmy.world 5 points 7 months ago

Could you explain more about how you found FreeBSD to be superior to Debian for a server OS?

load more comments (2 replies)
[-] loki@lemmy.ml 3 points 7 months ago

What services do you run on FreeBSD? Does using FreeBSD limit you in the number of apps you can have, as most of them target Linux?

[-] mobergmann@lemmy.world 3 points 7 months ago

I am also curious. FreeBSD is, in my opinion, is such an unorthodox choice.

[-] lemmyreader@lemmy.ml 3 points 7 months ago

If I remember correctly when Microsoft bought Hotmail years ago, it was run on FreeBSD and SUN Solaris (And it took Microsoft a really long time to migrate it to Windows servers, but that's another thing).

load more comments (1 replies)
[-] ryannathans@aussie.zone 2 points 7 months ago* (last edited 7 months ago)

No, I haven't found anything that I haven't been able to host.

I have Jellyfin, silverbullet, nginx web server with certbot etc, java game servers, samba and nfs shares, syncthing, qbittorrent, etc.

[-] refreeze@lemmy.world 7 points 7 months ago

I have used all three! I started with Server then went to CoreOS running Kubernetes and settled on NixOS which I have been very happy with for about a year now. I run about 25-30 services all using built in modules.

Regarding security, if you are using well crafted modules on NixOS, there should be good systemd hardening in place. That being said there is no reason you can't just use containers on NixOS.

I also find deploying NixOS far superior to butane/ignition used by CoreOS/Fedora. I use nixos-anywhere and can deploy my entire server in a few minutes without manual intervention.

[-] bananahammock@lemmy.ca 5 points 7 months ago

I'm a NixOS convert too. I actually still run everything in docker but the idea of not having to remeber or document how I set everything up was too appealing....a year later and my desktop and laptop are now on nix too

load more comments (1 replies)
[-] Strit@lemmy.linuxuserspace.show 5 points 7 months ago

I'm probably the odd one out, but my home server is running Arch Linux. And it's been really smooth. I do weekly maintenance in the form of updates and cleanup and it's been reliable since I set it up a couple of years ago.

[-] t3chskel@lemmy.world 4 points 7 months ago

I've been running Arch on my servers for over a decade now and never had issues. I think people have a perception that it's not stable or it randomly breaks but that's not been the case for me.

[-] mobergmann@lemmy.world 4 points 7 months ago

I’m probably the odd one out, but my home server is running Arch Linux. And it’s been really smooth. I do weekly maintenance in the form of updates and cleanup and it’s been reliable since I set it up a couple of years ago.

I am basically doing the same right now, all by hand. It's just that I am not doing the system and container updates regularly. I also often forget which services I have running and some of the Services I am not even using anymore. I just wanted to give them a try and now they are sitting there, wasting (barely any, but it's nagging me) resources.

[-] Nibodhika@lemmy.world 3 points 7 months ago

My home server also runs arch, mostly because it's a computer I was using for myself before and I'm lazy and just left what was already there.

load more comments (1 replies)
[-] theroff@aussie.zone 5 points 7 months ago

I use Debian at home on my homeserver and a mix of Debian and Arch for my workstations. Most of my stuff is managed with Ansible to make rebuilding easier and most workloads in podman containers.

Personally I don't overthink the distro thing. I recently started using Arch and quite like it. I've noticed packages that are available in Debian but not Arch and vice-versa. Debian Stable is nice because it's just, well, stable.

Fedora has an annoying release cadence IMO. I have experienced desktop bugs in the early GA releases before which put me off. If I wanted instability I would sooner go with Arch (and I am yet to have many issues with Arch yet).

If I were to go with a BSD for a home server it would probably be OpenBSD or FreeBSD. OpenBSD has vmm and a bunch of tooling around it, and FreeBSD has bhyve and jails. I haven't taken the plunge because Linux works and it's what I know.

These days I hear about people using proxmox on their homeserver with LXC containers and/or VMs.

load more comments (2 replies)
[-] danielquinn@lemmy.ca 5 points 7 months ago

You might want to consider just Dockerising everything. That way, the underlying OS really doesn't matter to the applications running.

I've got a few Raspberry Pi's running Debian, and on top of that, they're running a kubernetes cluster with K3s. I host a bunch of different services, all in their own containers (effectively their own OS) and I don't have to care. If I want to change the underlying OS, the containers don't know either. It's pretty great.

[-] BautAufWasEuchAufbaut@lemmy.blahaj.zone 5 points 7 months ago* (last edited 7 months ago)

I really don't see any advantages in your post for choices other than NixOS. I'm sure you'll improve quickly by necessity! :D

[-] kylian0087@lemmy.dbzer0.com 4 points 7 months ago* (last edited 7 months ago)

If you mainly use containers perhaps OpenSUSE Micro OS is of interest to you. Other then that pretty much any distro will do. I use rocky Linux my self for a few different things.

If you want to try out many different distros virtualization is also a option. KVM or something like XCP-NG with XO or proxmox are great options.

load more comments (1 replies)
[-] narc0tic_bird@lemm.ee 3 points 7 months ago

I also recommend a stable/LTS distro like Debian or AlmaLinux (or other RHEL-based distros). Or just keep using Ubuntu Server LTS.

The OS packages being hopelessly outdated doesn't really matter when you're running most services inside containers.

[-] turbo_scanning@feddit.de 2 points 7 months ago

If you want to containerise your apps, you could try Talos Linux. It is an api driven OS tailored to run Kubernetes. There is no bulk, only what is needed to run K8s, i.e., even no ssh server.

You control it with talosctl which calls the gRPC api endpoint to read or write all sorts of state including machine configuration.

[-] erev@lemmy.world 2 points 7 months ago

I really really like Fedora Server, but any RHEL derivative is my go to for servers. I use Rocky Linux when I need something closer to RHEL, and Fedora server for pretty much everything else. I highly recommend Cockpit as well (main reason I like Fedora server) as it has allowed me to so easily manage all of my servers from a single point.

[-] robber@lemmy.ml 2 points 7 months ago

I use Fedora CoreOS on my homeserver and a bunch of VPSs. Migrated the homeserver just recently, but I've migrated the first VPSs a bit more than a year ago. So far, I had no problems with it. There's a low-traffic mailing list where the devs inform about security issues and breaking changes to the whole container stack.

I used debian before for some years, but at some point became tired of manually updating the system (which is probably one of the biggest benefit of FCOS). It takes, however, quite some time to put your first Ignition config together, and debugging is tedious as you have to redeploy to see if a bug / error is now gone (I've used a VM for that).

I use podman on some, Docker on other servers (you can't use both at the same time). Both have been working well so far.

I'd recommend it, but would also recommend taking a look at Flatcar Linux which is more or less the same without the IBM dependency (which makes my stomach hurt sometimes).

load more comments (3 replies)
[-] Pacmanlives@lemmy.world 2 points 7 months ago

Give Gentoo a shot. It’s super stable and you will understand everything in your system. Also it now supports binary packages

load more comments (5 replies)
[-] slacktoid@lemmy.ml 2 points 7 months ago

Slackware is a great, simple OS that does what it does and does it well. There will be some getting used to, but when it clicks, it makes sense and doesn't do anything you wouldn't expect. It is great if you want to use containers as it provides you with the stable, simple base to run all your containers on top of.

[-] Decronym@lemmy.decronym.xyz 2 points 7 months ago* (last edited 6 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
HA Home Assistant automation software
~ High Availability
HTTP Hypertext Transfer Protocol, the Web
LTS Long Term Support software version
LXC Linux Containers
SSH Secure Shell for remote terminal access
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)
ZFS Solaris/Linux filesystem focusing on data integrity
k8s Kubernetes container management package
nginx Popular HTTP server

[Thread #672 for this sub, first seen 11th Apr 2024, 15:35] [FAQ] [Full list] [Contact] [Source code]

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 11 Apr 2024
53 points (89.6% liked)

Selfhosted

40347 readers
462 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