Selfhosting as a Linux newbie - Ubuntu Server LTS or Debian 13?
from steel_for_humans@piefed.social to selfhosted@lemmy.world on 27 Jul 14:12
https://piefed.social/c/selfhosted@lemmy.world/p/2240298/selfhosting-as-a-linux-newbie-ubuntu-server-lts-or-debian-13

I use Debian as my daily driver, but I’m still a newbie. I would like to selfhost a few apps, initially on a VPS, but I will probably move to a local PC once I diagnose what is broken with my old computer.

The guides at https://selfhosting.sh/ always recommend Ubuntu Server LTS for newbies, but Ubuntu seems to have bad PR and I already run Debian on my home PC. On one hand, I am a newbie and I guess Ubuntu might be easier to set up and maintain. Though, I don’t HOW exactly? On the other hand, if I have Debian on my home PC and on my server, they are the same system, so I’d be learning the same system at two places and with two usage scenarios. But it might be easier to make mistakes on Debian..?

What is your opinion/recommendation?

#debian #selfhosted #ubuntu

threaded - newest

SrMono@feddit.org on 27 Jul 14:15 next collapse

Always used Ubuntu server and would always recommend that to newbies.

irmadlad@lemmy.world on 27 Jul 14:17 next collapse

<Pops popcorn> Don’t mind me, I’m just here for the violence. LOL

I’m using Ubuntu Jammy LTS/ESM.

blueduck@piefed.social on 27 Jul 14:51 next collapse

I’ve got one Jammy box and one Resolute… I don’t love Canonical, but not enough hate to migrate my hosts to another distribution

irmadlad@lemmy.world on 27 Jul 14:57 collapse

It’s just something I got comfortable with long time back, and since I can drive that bus, and it does what I need it to do, I just stuck with it. I’ve never run a full blown Debian OS, so I really can’t compare the two except to say that it’s Linux.

frongt@lemmy.zip on 27 Jul 15:16 collapse

This is a safe space. We don’t kinkshame here.

TheOubliette@lemmy.ml on 27 Jul 14:27 next collapse

Debian is better as a server host. Ubuntu is not easier for a server for anything except initial installation but you’ve already done that once with Debian so you’ll be fine. Only reason to use Ubuntu is if you want core software updates every 6 months and for this purpose you don’t. And can still have the option for newer software in select cases using containers.

litchralee@sh.itjust.works on 27 Jul 14:36 next collapse

If you’re already using Debian on desktop, then Debian on a VPS makes sense from a maintenance perspective: you only have to track one set of security updates. When there’s suddenly a critical update for some vulnerability, you can update both at once because it’s the same upstream repos. Whereas with Ubuntu on your VPS, you’d have to be mindful to make sure to check back when the same vulnerability is patched there.

Do not underestimate the effort to upkeeping a server, and do try to unify your procedures so you’re spending less time doing the necessary things, and more time building up your self hosting stack.

Zwuzelmaus@feddit.org on 27 Jul 14:42 next collapse

I use Debian as my daily driver

Chances are that you would find Ubuntu not just more complicated, but unneccessary complicated.

Stay with Debian. It can do everything.

brownmustardminion@lemmy.ml on 27 Jul 14:48 next collapse

I find Debian to be the best choice unless your server requires GPU compute or transcoding, then Ubuntu becomes a better option.

frongt@lemmy.zip on 27 Jul 15:15 collapse

I have no issues with those tasks on Debian. I would never recommend Ubuntu for a server.

bjoern_tantau@swg-empire.de on 27 Jul 14:58 next collapse

Definitely Debian. You’re already used to it and personally I highly value the stability it brings for servers.

SnailMagnitude@mander.xyz on 27 Jul 15:39 next collapse

Either is fine.

I tend towards ubuntu lts pro with automatic upgrades and reboots. Much like the guide you mention pretty much everything targets ubuntu lts.

JRaccoon@discuss.tchncs.de on 27 Jul 15:42 next collapse

I run Debian on my homelab and manage Ubuntu Servers at work. I haven’t seen any practical differences between the two. Sometimes you might get a bit newer version of something from the Ubuntu repositories than from the Debian ones but not even once has that been an issue and most of stuff I use come from 3rd party repositories anyway.

chronicledmonocle@lemmy.world on 27 Jul 15:58 next collapse

As someone who has both Ubuntu servers and Debian servers…go with Debian. It does everything Ubuntu does, but leaner and better.

irmadlad@lemmy.world on 27 Jul 19:28 collapse

It does everything Ubuntu does, but leaner

Didn’t downvote nor do I understand why someone would, but I’m curious. When you say ‘leaner’, is it leaner that standing up a minimal installation of Ubuntu server? This is what I’ve been doing for a long while, and then adding whatever I needed, which turns out to be minimal, down the road. My reasoning would be less exposure from apps that are unneeded in my scenario.

chronicledmonocle@lemmy.world on 27 Jul 19:44 collapse

A standard install of Ubuntu Server uses more RAM, has longer boot times, and generally just needs more resources to get going. You can strip some of that out, but Debian is that way from the start. Plus, Ubuntu is just Debian with extra shit on top.

Debian is also much longer lived and stable than even Ubuntu LTS releases, so I generally have just found it to be better suited to deployments where I don’t want to fuck with it for a long time, besides monthly patching.

Andres4NY@social.ridetrans.it on 27 Jul 19:57 collapse

@chronicledmonocle @irmadlad The irony is that when Ubuntu was created in '04, one of the first features they worked on (after the initial 4.10 release) was fast booting. Debian at the time used sysvinit and booted pretty slowly. And in addition, long-term support.

Those things eventually made their way into Debian through various means; I haven't messed with Ubuntu in years, but it's very amusing to me to hear that Debian might boot faster than Ubuntu.

TeaWithDani@lemmy.world on 27 Jul 16:00 next collapse

Ubuntu’s “reputation” is nonsense. It’s a great distro for servers. Security updates are really fast and using snaps in a server environment is really great. I recommend running things like Docker or Tailscale off snap. They will revert to a previous image if an update fails. Extra stability for a server as you run automatic updates. If you run everything that is not in the base install off a snap, you have an extra layer of sandboxing against any supply chain attack for dependencies.

Ubuntu will have more recent packages, that doesnt really matter in a server environment. Debian is otherwise fine, I just dislike it’s installer and prefer Ubuntu’s. I found it easier to sync third party drivers on Ubuntu.

Ubuntu Pro gets you livepatches for kernal issues, which may be worthwhile. Also done without rebooting.

Ubuntu also gives you better apparmour default profiles on more things, whereas on debian, its up to you to set them up.

Debian will be exactly the same, its just more conservative and has less of those extras I mentioned. May be marginally lighter on resources for that. Either are fine.

lyralycan@sh.itjust.works on 27 Jul 16:43 next collapse

The only thing I know about apparmour is that it breaks some permissions for a couple of my machines, and I have to disable them in the container config in order for them to boot

irmadlad@lemmy.world on 27 Jul 19:25 collapse

Ubuntu Pro gets you livepatches for kernal issues, which may be worthwhile.

I use Ubuntu ESM. For their free, personal tier of Ubuntu Pro, you get 5 machines or 50 for active community members.

PieMePlenty@lemmy.world on 27 Jul 16:30 next collapse

You’re installing a headless system right? Ubuntu and Debian are going to have very similar if not downright identical day to day operating procedures, including installing and setting up new things. Ubuntu is going to have software packages coming from a different repository and they may be newer (though this rarely matters) and the initial install may be different. One is backed by a for profit corporation and one by a large open source community. Whenever you need help, guides for Debian will probably work on Ubuntu and vice versa.

For home self hosting use, it boils down to you own philosophy. In practice, it won’t really matter… they’re both really similar.

I proudly use Debian BTW.

steel_for_humans@piefed.social on 27 Jul 17:40 collapse

One thing I read about is that Ubuntu provides unattended updates, so it can automatically update packages and restart the server (that seems a bit too far ;) ). It’s probably possible on Debian but not out of the box.

stuner@lemmy.world on 27 Jul 18:04 next collapse

Debian also supports “unattended-upgrades”: wiki.debian.org/PeriodicUpdates

I actually have it set up the same way on both: Automatically install updates (and restart some services), but don’t reboot. I don’t think it was different/easier on Ubuntu.

Overall, the two distros are very similar for a server application. If you’re already running Debian on your PC, I would also go with that for a server.

moonpiedumplings@programming.dev on 27 Jul 18:10 collapse

One thing I read about is that Ubuntu provides unattended updates, so it can automatically update packages and restart the server (that seems a bit too far ;) ). It’s probably possible on Debian but not out of the box.

Ubuntu automatically has unattended upgrades, which makes I think makes it a popular choice for VPS providers to push (beyond being popular in corporate/institutions overall), since they don’t have to worry about users forgetting security updates. However, it doesn’t enable automatic reboots. But, it does look like automatic restarts of services updated via unattended upgrades is done, but only as of Ubuntu 24.

Another thing to note is that Ubuntu has updates that are explicitly for security, and then everything else, including more general bugfixes and program updates with additional features. By default, unattended upgrades on Ubuntu only do security updates.

Of course, both a unattended upgrades and automatic reboots are possible on Debian (same software, Ubuntu just preconfigures it), although default configurations can vary. I wouldn’t be suprised if a VPS provider was shipping a default Debian configuration that enabled automatic upgrades.

On Debian, for the most part, ALL updates are only for security issues or severe bugfixes (program crashes or the like). Debian, for the most part, doesn’t do minor bugfixes at all, or do program feature updates. I prefer this model, since it’s easier to manage than having separate types of package updates. It ensures absolute stability, a guarantee that the system tomorrow will behave the same as it did yesterday, while still enabling automatic security updates. This model is ideal for a server I don’t want to babysit, or for your grandpa who loses his mind when the button he is supposed to click was moved one spot over.

In addition to that, I like the policy of automatic reboots. With the stable, slow moving nature of both distros, it’s safe to automatically reboot to ensure that kernel vulnerabilities, or vulnerabilities in other critical systems are fixed. Automatic updates and reboots can be the difference between someone being able to escape a docker container or someone not being able to.

There is one thing to note, is that adding additional repos (or PPA’s which technically you aren’t supposed to work on Debian), can be dangerous, and you have to be careful: wiki.debian.org/DontBreakDebian/#Don.27t_make_a_F…

The main problem is that if a third party repo and Debian provide the same package, and the system is configured to prefer the third party repo, then you can be installing a potential dependency to the rest of your system that isn’t actually tested against your system, or compatible.

You have to be really careful to ensure that the programs in the repo are actually built and designed for your system, and also that the your system does not default to installing them.

Third party repos also break the guarantee of stability that automatic updates depend on. Third party repos don’t have a separate security channel, so Ubuntu will probably avoid touching them, even if critical security fixes are needed. Debian will update them, but unlike Debian’s packages, the overall program updates won’t be guaranteed to be behave the same due to potential major/minor version changes.

For example, if you get Docker from docker’s repo instead of Debian’s/Ubuntu’s, now your version of docker can no longer auto update and receive potential security fixes safely.

Overall, I prefer Debian but Ubuntu is fine. If I was in an environment that used Ubuntu already, I would also just use Ubuntu. If you are already using Debian, then Debian is probably preferable.

irmadlad@lemmy.world on 27 Jul 19:22 collapse

or for your grandpa who loses his mind when the button he is supposed to click was moved one spot over

Ouch! /s LOL There is something to be said for order and consistency. I don’t wig out, but I do like everything in it’s place. I like apps to open up in a certain spot on the screen consistently, etc. Over all, a great explanation.

danielfm123@lemmy.zip on 27 Jul 17:04 next collapse

Never Ubuntu, debian for server, fedora for desktop and arch/cachyos for tech fun.

Blurntout@lemmy.ca on 27 Jul 17:24 next collapse

Jump right into proxmox and use container templates for everything and spin up and kill virtual machines for experimentation!

uuj8za@piefed.social on 27 Jul 17:31 next collapse

Yeah, I would go with Debian for sure.

Although… I’m experimenting with Fedora IoT (the name might be misleading) for my server OS right now…

glizzyguzzler@piefed.blahaj.zone on 27 Jul 17:49 next collapse

Choose Debian. Real secret reason? Debian means you have to upgrade to new versions less. Ubuntu LTS lasts as long as Debian (5 years) but they crank out a new LTS every 2 years. If you have 3rd party sources, I’ve run into they only support the two latest LTSes - well you have one year left on your 5 year support… but do you really? And now you can put on your sad face because you get to do two LTS upgrades. All while Debian was over there on one version and everyone will target that one version and its previous version no problem.

Debian just makes better sense for a server.

(And Ubuntu is stupid with its “ooh extra patches just register your machine with our central authority” ok bud my Debian machine just says I have mail for some reason every time I boot it up, it doesn’t make it weird and gimmicky and based on a “free” deal that could change whenever they want to jerk you around)

watson387@sopuli.xyz on 27 Jul 18:00 next collapse

Debian. Fuck Ubuntu. Don’t forget to install sudo.

lemming741@lemmy.world on 27 Jul 19:46 collapse

And a dns resolver resolvconf :(

wiki.debian.org/NetworkConfiguration#resolv.conf.…

Decronym@lemmy.decronym.xyz on 27 Jul 18:10 next collapse

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

Fewer Letters More Letters
IoT Internet of Things for device controllers
LTS Long Term Support software version
LXC Linux Containers
VPS Virtual Private Server (opposed to shared hosting)

4 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

[Thread #65 for this comm, first seen 27th Jul 2026, 18:10] [FAQ] [Full list] [Contact] [Source code]

Chee_Koala@lemmy.world on 27 Jul 18:21 next collapse

I have very little Linux self host experience. I went the ’ same distro on server/client ’ route with Fedora, for the same learning reasons and have been pretty happy. Although all my use is recreational (game server hosting), so far no complaints :). I never see anyone talking about it, does anyone know why?

Pika@sh.itjust.works on 27 Jul 18:24 next collapse

As someone who ran Ubuntu server for a few years before moving to Debian. I would recommend Debian over Ubuntu just because I have had to do less maintenance with it. When I was on Ubuntu updating it was a constant concern of “will something change that is bad” for example they pushed the kernel live patch and the Ubuntu subscription banner as an update instead of an upgrade, so I updated as normal, and there it was.

I dislike OS’s that install new packages as part of their update procedures (an update that installs a new package instead of replacing an existing one should be reserved for upgrades), and Debian has never done that with me, so Debian is where I stay.

Nullpwn@lemmy.world on 27 Jul 18:34 next collapse

Debian, I use it for over 2 years by now; if it died I was able to revive it easy; and when it did it was my fault

historicaldocuments@lemmy.world on 27 Jul 18:42 next collapse

Debian.

This is the future so Virtual Machines and containers are where most of the stuff will end up anyway. If you need a specific distro it’s minutes away with a VM or container.

If you think there’s a chance you might want some Redhat cert for a job at some point it might be the time to jump to Rocky, and I’ve never used Proxmox so I can’t comment except to say that if I come into two fairly large computers for self hosting, the first one will get Rocky so I can get much more familiar with it, and the second will get Proxmox.

It’s all systemd anyway.

curbstickle_lw@lemmy.world on 27 Jul 19:22 next collapse

Choosy self-hosters choose Debian.

That said, I don’t recommend hosting software at the bare metal level - use VMs or containers. Far easier to manage and isolate.

ndupont@lemmy.blahaj.zone on 27 Jul 19:41 collapse

Debian and docker. When you’ll have your local server, just go with Proxmox, which is based on Debian. On that you’ll be free to run any Linux flavour as an LXC container. As you are already familiar with it, that’s a no-brainer. The day you decide to play with a raspberry pi, Raspberry-Pi OS is also Debian with very little customisation.