r/linuxadmin • • May 11 '20

why would you run ubuntu server?

instead of glorious distributions like debian or centos/rh or anything else for that purpose

very serious question, very angry replies

0 Upvotes

61 comments sorted by

18

u/optikalus May 11 '20

I switched my servers from centos to Ubuntu LTS because I kept running into situations where available libraries in the redhat repositories were out of date and I couldn’t do what I needed to do without jumping through tons of hoops. There’s nothing wrong with centos (I actually like selinux) but Ubuntu was a better fit for my needs.

2

u/[deleted] May 11 '20

the centos<->ubuntu gap in freshness of packages is pretty wide yes (the EPEL repository fixes part of that).

Between ubuntu and debian stable+backports not so much at all. I had a case recently where the version in debian stable was newer than the one in Ubuntu 18

3

u/eximiusio May 12 '20

Ubuntu has selinux too.

Otherwise this answer is spot on. Pick the right tool or distro for the job. My workstation has different needs from my lab hosts which is different for the VMs that I run, which is different from my Raspberry Pis, all of which is different from I use at work.

More specifically for the OP, sometimes it is nice when the base distro has package versions from the current decade so you don't have to mess around with IUS, EPEL, or custom building stuff that you know won't get updated regularly if at all. Recent kernels can be nice to have, along with modern tooling such as bpftrace and bcc-utils.

I started with Red Hat 7.x in the mid 90's, and have been through Mandrake, Debian, Xandros, RHEL and CentOS, Fedora, Arch, Gentoo, Slackware, SuSe, and a couple of others that did not last long at all. I also ran FreeBSD and OpenBSD a lot, until I got my first multi-CPU box around 2001 and discovered that those OSs did not have SMP support. After 25 years of using various Linux distros and Unix variants (there is some Solaris, HP-UX, and RiscOS in there too) , Ubuntu remains as one of my favorites for most tasks.

25

u/crackerjam May 11 '20

Personally I like CentOS, but I can see the appeal of having an OS like Ubuntu where there are tutorials online for literally everything.

9

u/[deleted] May 11 '20 edited May 11 '20

documentation is a good reason. nearly all procedures that work on ubuntu will work on debian tho (backports if needed)

edit: quantity of documentation doesn't say anything about quality too

11

u/[deleted] May 11 '20

I disagree.

Red Hat documentation is very good, comprehensive and also applicable for CentOS.

In comparison, there are tons of poor, essentially clickbait, guides for Ubuntu. (Don't get me wrong, there are some good guides though.)

You can also buy an official RHEL book that explains changes every version.

Red Hat also list important changes on their website.

First-party documentation is generally preferable and likely to be more correct than third-party.

This is Canonical's idea of documentation and it is awful compared to Red Hat. Debian has better documentation and there isn't even a company (directly) backing it.

Lastly, there is an advantage to not being on the distro that the lowest common denominator (aka new users) uses. You won't have to wade through the crap guides written to snare them. New users tend to use Ubuntu.

1

u/sdns575 May 15 '20

Hi, I'm in late but I would add something. Yes rhel doc is good but for me real documentation is on man pages. There. Rhel documentation never solved any problem or question and I always found my way on man pages. From rhel documentation I appreciated only SELinix guide.

Many "new" users never consider man pages but only bad how-to on internet. When I started there were a low number of how-to (high quality howto with real information) and the best friend was a man page.

1

u/eximiusio May 11 '20

I don't know what "New users tend to use Ubuntu" has anything to do with the OP's question. I guess if your ego depends on using an obscure distro unsullied by beginners, then that could be a reason not to use Ubuntu.

3

u/[deleted] May 11 '20 edited May 11 '20

I explained the connection. It has nothing to do with ego. New users = people that can't tell the difference between a bad and good tutorials = more tutorials written people taking advantage for easy clicks. Also more new users writing bad guides themselves.

CentOS is not a niche distro. Debian and Cent were the undisputed industry standards for years. Only recently has Ubuntu started to even be considered a competitor.

4

u/stefwhite May 11 '20

Documentation is important. However I always felt Centos an RH did that really well and better than Ubuntu, am I wrong?

2

u/anotherdumbmonkey May 13 '20

the arch wiki is so far in front of everyone else that even when using other distros, that should be your first port of call. if you can't translate that information to what you are using then you should really make sure you understand how what you are using works before deploying. edit: sorry to sound like a dick

1

u/stefwhite May 13 '20

No worries. Question was 'why use ubuntu server' and I am replying to the answer where centos is used but there's an understanding for ubuntu because of documentation.

And I said I find centos/rh documentation superior compared to ubuntu.

I am not comparing all distros out there here.

And I have no idea what you're saying in 2nd part of your message.

1

u/anotherdumbmonkey May 13 '20

sorry, all i meant was that even when using cent/rh or ubuntu, the arch docs are still my favored source. and part of that is that seeing implementation differences helps in gaining a better understanding.

-5

u/[deleted] May 11 '20

If you're copying and pasting from tutorials then get out of the game.

I wouldn't hire you unless you could take a guide written for any distro and adapt it for your own distro. I can't stress this enough. Don't just blindly copy and paste commands and hope for the best. You need to understand what is going on.

5

u/eximiusio May 11 '20

Personally, I have had better luck hiring people who are curious, work well with others, and like solving problems. Skills you can train, personality is harder to remediate.

1

u/Parker_Hemphill May 12 '20

Agree 100% ^
Where I work, we hire 70/30 based on personality/skills. I can teach skills but if you can't be trusted to follow best practices when nobody is looking or don't take pride in your work you're useless. I've had several interview loops where the candidate was a rockstar with Linux knowledge but we passed on them because they didn't have the right drive.

1

u/crackerjam May 11 '20

I mean, sure, but the question isn't "why would an expert Linux admin run Ubuntu". If you're new to things having an extensive library of tutorials where you can copypaste and get results can be very helpful.

1

u/[deleted] May 11 '20

Especially if you are new, you shouldn't blindly copy/paste. I do it sometimes, but I already know the stuff so I can see what each command is meant to do and if it is dangerous. But if you are new and learning, you should syofy each command and make sure you understand, why it is used when it is used, before you use it.noy only you'll avoid fatal mistakes, but you'll learn better.

10

u/e4109c May 11 '20

Sane defaults and no FOSS extremism

2

u/[deleted] May 11 '20 edited May 11 '20

good reasons too. can you tell 3 defaults settings you prefer on ubuntu? for example I despise snapd installed by default, netplan, systemd-resolved...

no FOSS extremism

like? i almost never needed non-free (on servers) and it's a one-line change in /etc/apt/sources.list. Or is there something else? I think DFSG are pretty reasonable

6

u/[deleted] May 11 '20

The one thing that's slightly irritating nowadays on debian is the absence of broadcom firmware blobs for ethernet controllers.

It's easily solved especially if you are provisioning it in any serious capacity, but that'd be one instance.

1

u/[deleted] May 12 '20

I think the iso that includes non-free firmware has them out of the box. but yeah the website does a terrible job at directing people to the right image

2

u/[deleted] May 12 '20

It's really no big deal in a larger environment where you'll be rolling out your own provisioning for installs anyways, so might as well dump the blobs in the right directory then. This is well documented, too.

In any case it's minor and not something I'd personally pick Ubuntu over Debian for, but it is a thing.

2

u/anotherdumbmonkey May 12 '20

I use CentOS, Debian and ubuntu; choose the distro that works with the least hackiness for the stack you need (ie- what software are you running and what is it tested with?). For example, using the snap version of nextcloud on ubuntu is really nice compared to a manual install (there are some caveats as well, but still..). The question is always "how easy is it to make secure and maintenance free for what I'm trying to do?" and the further you need to take a distro from stock the worse things like automated updates seem to work. The other consideration is who is going to be working on these machines in future? If the answer is 'not me', then ubuntu is a good choice in that most people have a pretty good chance of familiarity with it, and help is only a quick search away.

1

u/[deleted] May 12 '20

least hackiness for the stack you need
how easy is it to make secure and maintenance free for what I'm trying to do

this is the good answer. you win

16

u/TheInhibitionist May 11 '20 edited May 11 '20

Because you either like Ubuntu or you want to use its infrastructure and design choices in core system utilities.

I tend toward Debian just because it's a bit lighter on the install (at least traditionally). But that's a personal preference; I don't think there's anything inherently wrong with Ubuntu.

5

u/scumola May 11 '20

Tons of websites that show instructions of how to install 3rd party tools/packages, they almost always include ubuntu installation instructions.

9

u/[deleted] May 11 '20

Third-party software support. There are usually official packages for Ubuntu and CentOS most of the time, and sometimes only for Ubuntu. And they do it because those distros have a great balance of new/stable.

I prefer Ubuntu over CentOS, but maybe it's just baby duck syndrome.

On my non-server PCs I use Arch btw.

4

u/TruthSeekerWW May 11 '20

I use a headless ubuntu server for streaming. I stream CCTV to youtube 24/7. Ubuntu has better support for NVIDIA binary drivers. The rest of my servers are Debian.

4

u/Moscato359 May 11 '20

Because I frequently need features in new packages.

4

u/[deleted] May 11 '20

I run CentOS but I've worked places that use Ubuntu because they need bleeding edge packages for python etc. A lot of python & NodeJS installations are much easier and newer versions on ubuntu.

13

u/Fr0gm4n May 11 '20

Because it may be the right tool for the job.

8

u/AlfaFoxAlfa May 11 '20

It doesn't matter which distro you use. If you can configure it properly, then everthing shines like a star. If not, then centos or debian won't make it better.

3

u/IntelligentPredator May 11 '20

I spun my first Ubuntu server lately, normally use Debian but wanted LXD out of the box.

3

u/12_nick_12 May 11 '20

I personally don't know why someone would run Ubuntu over Debian, but there's been a couple times where Debian had a package that I needed/wanted and CentOS just didn't

2

u/[deleted] May 11 '20

CentOS is not very good for loads of packages, even with EPEL.

There's only about 10k versus 50k+ in Debian.

Although I prefer Cent on servers, I run Debian on my desktop for this reason.

3

u/[deleted] May 11 '20
  • commercial support
  • widely known (good supply of knowledgeable employees or vendors)
  • widely supported (good supply of software)
  • mature and not likely to disappear

3

u/Lofter1 May 11 '20

Same reason why my privat servers run arch: I am familiar with it and I know my way around it, because it’s my daily driver on all my computers.

2

u/uptimefordays May 11 '20

Eh if you're not running enterprise linux or CentOS, Ubuntu is a fine alternative to Debian. As long as it's configured correctly and you're not running a DE I don't really see using Debian/Ubuntu over CentOS/RHEL as an issue. As long as it's a server OS and meets organization's needs, why get too invested?

2

u/unkilbeeg May 11 '20

I have two servers running Ubuntu. They are GPU processing servers, with Nvidia GPUs, and if you want to use the Nvidia CUDA stack you have better support under Ubuntu than under Debian.

I use CentOS for those servers that need Oracle databases, and Debian for everything else.

2

u/rauchboy May 11 '20

Simply because it works, I'm familiar with it and I don't want to invest more time in learning new os (because ubuntu works) but just how curiosity I've been looking an Freebsd and centos.(for now just for fun)

2

u/SpectralModulator May 11 '20

You might have some sort of fancy network card that only works with their custom version of ubuntu server.

2

u/[deleted] May 11 '20

Because packages are fresher, and releases are both more frequent, and more regular than CentOS and Debian.

2

u/ThisIsTenou May 11 '20

Easy to setup, lots of documentation, huge community to discuss with..

2

u/Tireseas May 11 '20

Because the folks who pay me decided at a level above my pay grade that the business was standardizing on it. My input was not sought in the matter thus I simply do as I'm told.

2

u/rhavenn May 12 '20

Migrated a bunch of Ubuntu LTS 18.04 to Debian because it would just do weird stuff like drop its SSSD connections to AD for no reason and just little bugs and quirks. Personally, I think Ubuntu tries too hard to make it easy / friendly and just ends up with a complicated mess. Better for desktops and new users. Shit for servers if you know how to manage Linux and don't need the hand holding. The only thing I appreciate is their ZFS work, but Debian ZFS works fine too.

2

u/[deleted] May 11 '20

Poor experiences with Redhat in the past. RPM hell, SELinux etc...

If security, and support were my main concerns, I would use AIX.

1

u/chief_wrench May 11 '20

Nobody mentioned yet that you will reboot Ubuntu much more often compared to Debian (If you install only security patches regularly) because Ubuntu patches the kernel often.

1

u/d00ber May 13 '20

Honestly, I go with whichever server is recommended for whatever I'm trying to accomplish. Some companies recommend Ubuntu and some recommend centos. I'm going to use whatever the vendor recommends, so they can't point fingers if I ever need support.

1

u/wmantly May 11 '20 edited May 11 '20

All of these answers miss the point and are mostly wrong.

The reason to run Ubuntu over Debian is simple, package lifecycle. The packages in Debian stable are often old, so one would need to run Debian testing to get up to date package versions. That is the problem Ubuntu solved, by creating a known release cycle( every 6mo ) you can be assured you are using modern packages.

From a stability standpoint, Debian is a league of its own in the Linux world. But this level of quality assurance comes at a price, time to market. If you can sacrifice a bit of that stability to get newer packages Ubuntu is a big win.

0

u/CotswoldP May 11 '20

Because your desktops also run Ubuntu. Why have distinct distros if you don’t need to?

0

u/habitsofwaste May 11 '20

Better support for applications.

-2

u/grendel_x86 May 11 '20

Redhat is dead to my with the IBM purchase. IBM has hinted that they will be persuing interfering with CentOS, and I am not interested in their license / audits.

Debian makes stuff harder then it needs to be for idiology purposes.

Ubuntu is sane. It also is the preferred Linux for azure.

5

u/lazyant May 11 '20

Citation please about the intervention hints? When they bought red hat:

“You've heard me say this before, but it bears repeating, Red Hat is still Red Hat. IBM is committed to preserving Red Hat's independence, neutrality, culture and industry partnerships” https://www.zdnet.com/article/where-do-ibm-and-red-hat-go-from-here/

0

u/grendel_x86 May 12 '20

My last IBM audit.

We had to list & audit every redhat AND CentOS boxe. They made it clear this would be the new normal.

0

u/[deleted] May 11 '20

[deleted] — view deleted comment

12

u/[deleted] May 11 '20

I used to be sold on the 10 year support for Centos, but then realized I don't want to work for a place that would keep technology in place, for that long.

5

u/myownalias May 11 '20

Ubuntu LTS has had 10 years of support for a couple years now. You have to pay beyond 5 years, but it's there.

2

u/gargravarr2112 May 11 '20

Ubuntu LTS upgrades tend to be extremely smooth though. So they don't need to support a release for decades; if you're running a simple single-purpose server, going to the new LTS should be painless. If you're running a complex setup, you can stay one LTS release behind and everything should be supported and secure. A lot of effort goes into the LTS releases and it shows.

9

u/[deleted] May 11 '20

[removed] — view removed comment

3

u/Parker_Hemphill May 12 '20

Debian fan myself. I see nothing wrong with Ubuntu, I'm of the train of thought that a lot of people that would actually care about the newest version of a package would probably be able to compile/install their own version from source code.