I’ve only ever used desktop Linux and don’t have server admin experience (unless you count hosting Minecraft servers on my personal machine lol). Currently using Artix and Void for my desktop computers as I’ve grown fond of runit.

I’m going to get a VPS for some personal projects and am at the point of deciding what distro I want to use. While I imagine that systemd is generally the best for servers due to the far more widespread support (therefore it’s better for the stability needs of a server), I have a somewhat high threat model compared to most people so I was wondering if maybe I should use something like runit instead which is much smaller and less vulnerable. Security needs are also the reason why I’m leaning away from using something like Debian, because how outdated the packages are would likely leave me open to vulnerabilities. Correct me if I’m misunderstanding any of that though.

Other than that I’m not sure what considerations there are to make for my server distro. Maybe a more mainstream distro would be more likely to have the software in its repos that I need to host my various projects. On the other hand, I don’t have any experience with, say, Fedora, and it’d probably be a lot easier for me to stick to something I know.

In terms of what I want to do with the VPS, it’ll be more general-purpose and hosting a few different projects. Currently thinking of hosting a Matrix instance, a Mastodon instance, a NextCloud instance, an SMTP server, and a light website, but I’m sure I’ll want to stick more miscellaneous stuff on there too.

So what distro do you use for your server hosting? What things should I consider when picking a distro?

  • pnutzh4x0r@lemmy.ndlug.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    27 days ago

    I currently use Ubuntu for all my machines (desktops, laptops, and servers), but I used to use Void Linux on my machines for about 6 years, including on a couple of VPSes. Since you are familiar with Void Linux, you could stick with that and just use Docker/Podman for the individual services such as Matrix, Mastodon, etc.

    In regards to Debian, while the packages are somewhat frozen, they do get security updates and backports by the Debian security team:

    https://www.debian.org/security/

    There is even a LTS version of Debian that will continue backporting security updates:

    https://www.debian.org/lts/

    Good luck!

  • ginza@lemmy.ml
    link
    fedilink
    English
    arrow-up
    25
    ·
    27 days ago

    My server is running headless Debian. I run what I can in a Docker container. My experience has been rock solid.

    From what I understand Debian isn’t less secure due to the late updates. If anything it’s the opposite.

    • Grangle1@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      27 days ago

      Servers are the one thing I’ve generally heard people agree that snaps are good for, so given its history it’s a bit of a strange thing to hear of Ubuntu being a better server distro than desktop distro nowadays.

      • Pup Biru@aussie.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        snaps are like poor man’s containers when it comes to servers… maybe better than having single-use VMs but if you’re wanting to build out real systems in a modern way, i literally haven’t worked with anyone using ubuntu in the last ~10 years

  • Olap@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    27 days ago

    openSUSE worth a consideration. More frequent releases than debian, but still pretty conservative

  • visone@fosstodon.org
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    27 days ago

    @communism
    I use alpine, but void is a good option too, for me the host should be minimal and lightweight. At the end I have all on containers

  • chrand@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    27 days ago

    I always use Rocky Linux or Alma Linux, since I have extensive experience with enterprise Linux and RPM packages. I have Fedora on my main desktop computer. Both Rocky Linux and Alma Linux are rock-solid and are ideal for any kind of workload.

    Also, Debian is a good choice if you know how to manage DEB packages and you feel comfortable with APT.

    Fedora is a good choice if you want fresh packages and are willing to upgrade your server every 6 months (following the Fedora release cycle).

    Rocky Linux and Alma Linux follow a similar slow release cycle of RHEL, wherein you can install your server and not have to worry for years (as long as the packages are updated with dnf update) Debian is also a slow release distribution, which makes it good for servers.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      26 days ago

      l comfortable with APT.

      Apt4RPM was a beautiful thing. I wish we still had that as a common tool, as yum and its incapable 'up’grade dnf are just worse and less capable each time. I shudder at the crayon-eating that’ll go into whatever ‘succeeds’ dnf.

      • chrand@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        I have been using dnf for years, both on desktop and servers, and never had a problem with it. I have the opposite idea, it’s getting better with dnf5, I think it’s a great tool and upgrades not only the regular packages, but the entire distribution during new releases without any problem. I upgraded my notebook from Fedora 38 to 39 and finally to 40 through dnf, no complains.

  • thedeadwalking4242@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    26 days ago

    I use nixos, due to the incredible state management. You know exactly what versions of packages are on your machine, can build all packages from source yourself or download from a binary cache. 100% reproducible. Steep ass learning curve but tbh it’s well worth it. Saves you configuration time and energy in the long run. I’ve stopped distro hopping the implementation is so good. If you are concerned about security you can definitely harden it. There’s a lot more to security then package version. And even then nixos gives you the choice.

  • Codilingus@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    27 days ago

    Unraid is amazing for getting into servers. It’s just the right amount of WebUI and minimalism. Very safe and comfortable defaults, and the ability to start tweaking and adding more.

    • Sunny' 🌻@slrpnk.net
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      27 days ago

      Had to scroll far to find this hehe, but count me in - Unraid for the win! Great OS and fantastic community 🧡

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    27 days ago

    I switched mine to NixOS a while ago. It’s got a steep learning curve, but it’s really nice having the entire server config exist in a handful of files.

  • pastermil@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    27 days ago

    Debian!

    I’ve heard good things about Alma Linux.

    Also, Ubuntu’s not that bad. You’d see this a lot in corporate settings.