r/linuxquestions • u/Izerpizer • Jul 26 '21
Why is Linux the primary operating system that is used with servers?
Title.
67
u/moderately-extremist Jul 26 '21 edited Jul 26 '21
A place I sysadmin'd at had a department that was completing a project that was months in the making, construction was done, desktops were in place, clients were scheduled for the next day... That is, the next after they first told me about it and requested a server be set up that basically the whole project completely depended on.
So that's a bit of a rant, but the point is they ended up with desktop parts with Fedora linux running on it. I promptly forgot about it for about 3 years, but eventually I decided to check in on it, checked the uptime command, and saw it had 900+ days uptime. Just chugging along, keeping itself updated, hosting data, staying fast and responsive, with 100% uptime for 3 years (plus an additional 1 year after that until the power supply died), and requiring zero human intervention. I would bet that has never ever happened with a Windows machine, and it's really nothing unusual for linux - my current home server I set up in 2017 and has never had any unscheduled downtime (runs a lot of services but yeah basically only has 4 users). The harddrives were even transplanted to an entirely new machine and it just keeps chugging along.
I actually quit that job 9 years ago and now I wonder if any of my servers are still going.
Edit: well this is fun, I went to the website (which was running on Ubuntu Server under my watch), and it threw up an IIS7 error page before reloading.
32
u/pramodhrachuri Jul 26 '21
I'm feeling very sad for you bro. The new system admin must be very dump. Who replaces a super strong Ubuntu server with trashy IIS 7!
29
u/therojam Arhc btw. Jul 26 '21
Most of the sysadmins Today are Windows noobs
0
Jul 26 '21
[deleted]
14
u/ManInBlack829 Jul 26 '21
Not to hijack but do you think this puts young linux admins at an advantage or disadvantage? I just wonder if the smaller talent pool is relatively higher or lower to the smaller job availability pool
1
u/RoyalFrame1466 Aug 01 '21
I'd say it definitely puts them at an advantage. I worked ~25 years in Unix/Linux for a big FI in Canada, and while all our employee desktops ran Windows, our heavy lifting was all Unix or mainframe. A *good* Nix admin is never out of work, always in demand, whereas a Windows admin is often forced to take a job "resetting passwords" for the masses. (and by *good*, I don't just mean somebody that can install Ubuntu and copy files at the CLI, I mean somebody that can troubleshoot, harden, migrate, etc.)
If you want to be in demand, learn Linux/Unix or zOS (mainframe). (and "yes", I meant Unix, there's a huge amount of AIX, Solaris, HPUX, etc. out there running the mission critical workloads)
Just my 2 cents folks.
13
u/lorimar Jul 26 '21
3+ years of uptime is great, but unless you're running something like kpatch you're still on a 3+ year old kernel until you reboot.
3
4
u/hosnpooch Jul 26 '21
May I ask, what you are using your home server for besides storage probably? Always toying with that idea. And what type of machine is it?
8
u/husky231 Jul 26 '21 edited Jul 26 '21
I can't speak for the op
But i use mine (Linux from scratch) as a router (with ip tables and dnsmasq, sshguard and psad for firewall) /samba/LinuxApacheMysqlPhp server that i use for a search engine for my LAN.
Also a vpn/torrent downloader 😉
4
Jul 26 '21
I can share my use case.
zfs raidz on 4 drives with 1 being redundant.
File sharing through Samba and sshfs
Plex media server
Pihole docker container
syncthing sync of phone photos and videos
Just being a Linux PC where I can easily play around with Linux environment when I'm actually using a Macbook or Windows desktop PC.
auto-backups for my tiny cloud server that is responsible for:
personal e-mail
Nextcloud
vaultwarden
gitea
And yeah, I do make offline backups from time to time. I plan to make them off-site backups by having 2 (instead of 1) large HDDs. I'd keep one at my friend's house, and one here. When I update the backup on my HDD, I'd ask my friend to swap them. Encrypted of course.
Once GPU prices fall to MSRP levels, I'll give it a proper GPU, and virtualise it, install a Windows VM and use it as a VR gaming setup in the middle of the living room.
2
u/moderately-extremist Jul 26 '21
All these are separate containers with LXD:
nextcloud server
MariaDB server
Apache reverse proxy
Transmission server (web interface)
Sonarr and Radarr server
JellyFin server
encoding server (basically bare container with compiled ffmpeg)
Minecraft server (with MineOS web ui)
guacamole server
gitlab server
what could call a "gui" server? (container with xfce and vnc that I use for testing)
These are in virtual machines with libvirtd/kvm:
opensense router
home assistant server
Hardware, basically typical custom built desktop components plus:
2 x 8TB HDDs in raid1 with mdraid
2 x 1TB SDDs in raid1 with mdraid - partially high-performance vm and containers virtual drives using lvm thin volumes, and partially lvm cache for the hdd raid
2 x 1gb NICs in 802.3ad link aggregation and then split out with vlans
40
53
u/lachyBalboa Jul 26 '21
Maybe because Windows Servers come with MS Paint pre-installed. Enough said.
9
-41
u/mirkules Jul 26 '21
Let’s not go there. I mean… Linux has a GIMP.
25
u/lachyBalboa Jul 26 '21
But does it come pre-installed on Linux Servers which don't even run desktop environments?
(I genuinely don't know 100% but probably not)
11
u/Phydoux Jul 26 '21
I put Debian Server on one of my servers and I can tell you for certain that it does not. And if you install just a base line system with no GUI then for sure, it does not come with GIMP.
2
u/ManInBlack829 Jul 26 '21
Mac servers come with trials for every Adobe product
1
u/Phydoux Jul 26 '21
Linux (servers and desktops) have the open opportunity to use Free and Open Source alternatives to most Adobe products and some of them are actually quite good.
4
1
u/HCrikki Jul 26 '21
The custom installers servers use are an old relic from before distros like ubuntu started pushing a one size fits all package non-customizeable selection in their installers. Im sure noone ever installed these kind of desktop apps in their server roles or separate server distros.
14
u/good4y0u Jul 26 '21
Yeah but is gimp preinstalled with ANY major Linux server distro you know? I can tell you none that I've used have it preinstalled.
-12
u/mirkules Jul 26 '21
Windows Server is also a different animal than Windows client editions.
Point is if Paint is a problem for whatever reason, it was not specified why - is it just the fact that it’s installed or is it that it’s a shitty editor?
GIMP has always been less intuitive and more unstable than any image editor I’ve ever used.
13
u/lachyBalboa Jul 26 '21
So to clarify, my point is not that MS Paint is inherently bad. I have nothing against it. In fact I think it's a simple, easy little image editor.
My point is that in 99% of cases it has no place being on a Server. Unless the server is meant to be a kind of remote desktop for folks that can't work without paint (and don't have it locally for some reason), having paint is unnecessary bloat.
At best this bloat eats up disk space. Not much in the case of MS Paint, but I'm sure Windows servers have many more examples which collectively makes them more expensive than Linux servers as far as storage is concerned.
At worst this violates principles around keeping systems simple. Added complexity introduces more chances for vulnerabilities to exist. Sometimes added complexity is required to get the job done. But I doubt that MS Paint is going to be crucial to whatever service most windows servers are meant to provide.
-3
u/mirkules Jul 26 '21
The issue is you are thinking of Windows Server in terms of Linux server. Linux as a server is designed to be a command-line operating system, where everything is done through the terminal. Want to start a service? “systemctl start someService”. Want to set a recurring job? “crontab -e” etc. And, by extension, troubleshooting is also primarily done by redirecting error output into files, doing stack dumps, etc.
Most commands are done on Windows through the GUI. You need the Services app to start services. You need the Task Scheduler to schedule programs to run. And, sometimes, you need to take a screenshot for troubleshooting purposes - something you would never do with Linux server. Hell, I don’t even work with Windows server, at least not nearly as much as I do with Linux server (and only when I really have to), and even I recognize that you need some basic set of applications to make your life easier - applications which let you, for example, save or crop a screenshot, for example MS Paint.
1
u/lachyBalboa Jul 26 '21
I do see your point with this. Definitely there is a place in the world for Windows Servers. Especially when it comes to running stuff that's Windows native.
I guess there seems to be a philosophical difference between Windows and Linux servers, as you say. On Windows it seems to be "Have a bunch of stuff running in case you need it, even if it's rarely necessary". Case in point, MS paint or the Edge browser pre-installed. It doesnt care much for the UNIX principal that applications and servers should have a singular focus.
If Windows wants to follow its own concepts then that completely makes sense for Windows. It just has some real concequences in terms of important characteristics like security (more applications means more potential vulnerabilities), scalability (auto-scaling Windows servers often takes longer than Linux), cost (more storage, compute and memory requirements, not to mention licensing).
Of course this is all generalities. It's not like admins can't overload Linux servers with a bunch of unnecessary applications. I'll also acknowledge there is Windows Server Core which seems far more minimal than other Windows Server OS's (I don't know a lot about them though).
5
22
u/michaelpaoli Jul 26 '21
Because it rocks!, e.g.:
open source, free; also thus massively scalable at zero software (license, etc.) cost; open source can also always fork if someone does something particularly stupid/egregious - not exactly a frequent occurrence, but certainly happens on occasion - open source basically forks around such problems.
highly reliable and stable
well maintained
highly flexible - from quite small uses/applications to massively large/huge powerful uses.
very customizable - e.g. don't have to include a bunch of irrelevant unneeded software; this can also a huge difference in cost/efficiency when it comes to massively scaling that; excellent development environments for developing software for - e.g. custom software/apps
11
u/mirkules Jul 26 '21
Good list. I would add “highly scriptable”, too. While powershell can do a lot of the work from the command line nowadays, it didn’t always use to be that way. Plus, there are still things that cannot be done or accomplished cleanly with Windows (running a system script before user logs in comes to mind).
19
u/michaelpaoli Jul 26 '21
And yes, comparatively Microsoft (Windows, etc.) generally lacks
Doesn't have a reasonable way to dynamically replace things, e.g. a binary/library that's being executed - UNIX/BSD/Linux ... unlink the open file, put new file in place - it can even be done atomically with rename(2) - Microsoft still can't do that - their filesystems don't allow for unlinked open file, Linux...UNIX been doing it or well over 40 years. Likewise Microsoft filesystems don't allow for multiple hard links - this also makes many types of dynamic updates more difficult or infeasible.
Microsoft runs about 10 to 20 years behind in "catching up", e.g. it's finally starting to more-or-less make nice with Linux ... after Linux has been around for about a quarter century; I used to often mistakenly type ...
2>&1 | moreor the like on Microsoft, to attempt to redirect stderr along with stdout (to a pipe, or file) ... which of course didn't work ... until it did ... about 2+ decades after UNIX had already had such capabilities.Microsoft just isn't that well documented - by the time you get down to the lower/lowest levels of the operating system and it's processes and such, that stuff just isn't well understood - because Microsoft won't put out the information, nor will they even tell folks under support - it's mostly just a "black box". In far too many cases the only answers Microsoft will give to fix an issue is: try reinstalling the software, if that doesn't work, reboot, if that doesn't work, reinstall fresh from scratch. Well, those aren't acceptable answers. With Linux you can dig down to the bottom of any problem/issue - and fix it. Microsoft also does unfair shenanigans - like creating undocumented system calls - then using them in their products to unfairly compete against others - where exactly what's needed is the functionality of the system call which Microsoft itself uses in it's product, but doesn't document or even acknowledge or admit it exists. So, yeah, Microsoft often does not play fair.
highly scriptable/programmable - Microsoft isn't nearly as much so ... though they're still trying to catch up. Microsoft utilities, programs, etc. are generally quite limited - only allow one to do exactly what Microsoft thought of in advance - no more than that. By comparison - Unix...Linux - very different design philosophy - (mostly) build simple tools/utilities that well do what they do - and no more - and play nice with others - these things highly well interconnect and can be used in combination, to make it super easy to do things that those writing the software would never have even imagined - but because of this flexibility UNIX...Linux is exceedingly flexible and versatile. Not nearly so much the case with Microsoft. Most Microsoft software are huge monolithic bloated chunks that don't play nice with others, and can only do what Microsoft anticipated one might want or need to do.
5
2
u/lachyBalboa Jul 26 '21
Definitely on Linux you get robust Command Line Interfaces for a huge portion of applications. Even apps which also feature a GUI can often be run with equivalent functionality from the command line.
Sometimes it's good to use a GUI for apps when you have a DE. But if we are talking running repeatable scripts to set up and configure services, CLI is the way to go.
This concept seems to be fundamentally lacking when it comes to Windows Servers. Which means there is a much smaller learning curve for engineers, but also it is far less powerful in terms of automation
40
u/vacri Jul 26 '21
a) it's free
b) more suited to technically-capable users than Windows
c) in the 90s, BSD was encumbered by lawsuits so linux got a lot of base mindshare
1
u/SanderE1 Jul 26 '21
free as in licensing? that would be a big plus too if that wasn't what you meant.
2
u/WhoseTheNerd Jul 26 '21
in the Linux world, free means two things:
free as in licensing, cost and etc.
free as in freedom. You're free to do whatever you want.
0
u/Bubbagump210 Jul 26 '21
Item B: have you seen PowerShell and the registry? You have to be pretty technical to play with that mess.
70
u/funbike Jul 26 '21
The Unix design had a focus on simplicity. This is something you want in a server. This results in lighter use of resources, faster disk system, better stability, etc. Linux is basically unbranded Unix.
Linux got a head start because Unix was license encumbered in the past.
Windows licenses are restrictive and expensive. Redhat is also expensive, but you have more license flexibility (such as running CentOS free as an alternative for testing and development servers). And of course there are many 100% free distros.
Linux has freedom. Customers and users can customize it for their needs. Trim it down. Beef it up. Tweak it. Whatever.
Windows is overly complicated and crappy.
0
Jul 26 '21
[deleted]
6
u/funbike Jul 26 '21
I was a Windows user from 1993 to 2019. Linux user 2016-present. I've written apps for both, shell scripts for both (PS,bash). I've dived into internals and tried to automate each.
Window's design is overcomplicated and a complete mess. If you spend enough money on a dog's turd, you can make it look like a beautiful trophy. They've made is usable, but underneath its pure garbage. Even Microsoft realizes this.
1
Jul 26 '21
Window's design is overcomplicated and a complete mess.
What do you mean by design? The frontend or the architecture of the server OS? (or maybe both?).
3
u/funbike Jul 26 '21 edited Jul 26 '21
It's UI design is fine, although it has its issues. I'm talking about how things work and are put together. Remoting, scripting, APIs, libraries, protocols, etc.
A lot of it is historical and how it evolved from a windowing API layer on top of a single user shared-memory OS (DOS) with zero security. It took Microsoft a long time to shake the DOS mentality and adopt a security stance more like Unix/Linux (even long after their NT kernel supported it). And, backwards compatibility restrained improvements, yet at the same time they continuously broke backward and forward compatibility with integration technologies (e.g. COM-like stuff). There there's DLL dependencies and that mess.
Linux/Unix didn't suffer this as much, as the original worse-is-better principles kept things simple, at the expense of elegance. Most things are files, not some custom object API. ssh is the way to remotely access severs. It's simple. It's text. Before that there was the similar telnet protocol developed in 1969. systemd is an anti-example of how Linux is starting to suffer similar issues, but not nearly as much. Security has always been a priority as it started as a multi-user system, unlike Windows.
However, the NT kernel was a good design (developed by IBM), but Microsoft screwed up some of those details anyways, because they didn't understand the benefits. The file systems isn't terrible (also developed by IBM), but pales in comparison to some of the more recent Linux filesystems, such as zfs.
These details might not seem important, but they manifest into issues with performance, security, maintainability, and bloat.
My biggest problems with Windows is its opaqueness and complexity. I understand Linux internals deeply, even though I've only used it for a few years. Much of Windows is still a mystery after decades of supporting it and developing for it.
-3
Jul 26 '21
People wouldn't ask in linux subs for an objective answer anyways
3
10
u/jdptechnc Jul 26 '21
Speaking from many years as a Windows system engineer in the past, and still having to be pulled back in from time to time due to not being able to find COMPETENT system engineers to work on Windows servers:
Valid Reasons To Use Windows Servers
If there are more than an handful of Windows clients, you should be using Active Directory.
For a sufficiently large enough Windows client deployment, you need servers supporting the management of said Windows clients (OS deployments, patch management, configuration). While configuration management CAN be handled by FOSS, the Windows Client admins are going to be more comfortable with Windows tools
If your server hosting is still mostly on-prem (whatever the reason)
Exchange Server is still the best on-prem email
SQL Server - I know it runs on Linux now. We opted to not run it on Linux during our last version migration, wanted to give it more time to mature.
SharePoint - If seamless integration with office apps is important
You are in a line of business where the applications that you host for your users only run on Windows/SQL/IIS
If your company and your server team is too small to maintain strong Linux and Windows skill sets and you have requirements to use Windows Server - just use Windows Server.
Bogus, But Common Reasons People Use Windows Servers
Mindset that open source is should not be used in the enterprise (it is hobbyist, it is only good for test, you get what you pay for, etc)
Windows is low mental effort to get something running (though if you care about bloat, common sense security practices, consistent configurations, licensing, etc - it is a nightmare). Windows is a desktop operating system designed to be an easy button with backward compatibility and a low technical skill threshold to entry. Windows Server is the same, but with the ability to bolt on some hosted services/apps. If you, as a company, only want to pay for a point-click-next experience with low effort to kind of get something running, with no regard at all for operational security, then always use Windows Server. These types of "sysadmins" are cheap and plentiful.
5
u/h0bb3z Jul 26 '21
Honest answers -- these are totally true. Laziness becomes a huge factor for shops that are used to running Microsoft servers. Its funny to see Server 2016 "headless" -- most shops haven't gone down this path yet because command line is "hard".
In my experience, the Microsoft black hole creates a ton of gravitational pull to keep you using Microsoft software. Microsoft has really dug their own ditch with the backwards compatibility nightmare they've created -- you will continue to get new versions of junk and bloat simply because Microsoft can't rid itself of its own crappy code from 10 years prior.
Linux is lightweight and modular -- all the dependencies that need compatibility are small, modular and well maintained separate from the operating system...
6
u/anna_lynn_fection Jul 26 '21
licensing. You're supposed to pay for [have a license that accommodates] nearly every connection to your Windows server. Now try running hundreds or thousands of instances of that, on top of the connections, and you see how that can get really expensive really fast.
14
Jul 26 '21 edited Jul 26 '21
Anyone who has used Windows, knows the blue screen of death.
Linux or unix has been the mainstay of any serious server deployments because it can run for years and not crash.
A computer that can barely run windows, runs linux like it was meant to be. So much old hardware that slows with new windows updates runs well under Linux.
linux stops old hardware becoming e wase. I have literally seen old servers with linux run as fast as new servers with bloated windows server.
4
Jul 26 '21
I have literally seen old servers with linux run as fast as new servers with bloated windows server.
This is a fact, not an opinion.
-4
u/tdreampo Jul 26 '21
Blue screen of death hasn’t really been an issue in a decade or more and if you do see it, then it means hardware is failing. And Linux won’t work well either.
9
Jul 26 '21
Blue screen of death hasn’t really been an issue in a decade or more and if you do see it, then it means hardware is failing. And Linux won’t work well either.
sure sure. 🤣🤣🤣
yea 2 sec search on BSOD
and
https://borncity.com/win/2021/03/16/windows-10-out-of-band-update-for-blue-screen-printing-bug/
and
https://www.computerworld.com/article/3216425/microsoft-patch-alert-october-2020.html?page=2
and we know that Google search engine loves to censor stuff too. Like stats on how often windows server crashes. Or how windows server has certified computers and up the hardware requirements over and over.
1
u/tdreampo Jul 26 '21
All your articles reference Windows 10 not windows server…..so good job with your research I guess?
5
Jul 26 '21
All your articles reference Windows 10 not windows server…..so good job with your research I guess?
read the articles, Says lower down also affects windows server.
yea its like every person I have known on IT knows one windows error code over another and has a way to deal with it. Yet when I see the linux servers, no one seems to ever talk about it.
-1
u/tdreampo Jul 26 '21
I’m a VMware architect as my main source of income but I’m also personally responsible for about 100 windows servers over multiple industries and I haven’t seen a bsod since windows server 2008.it’s certainly possible buts just not common at all and not a valid criticism of windows. And if they are getting constant error codes in windows you have a hardware issue. Windows is very stable and runs great these days. Now is it insecure and has ton of telemetry? Absolutely, those are valid criticisms. But bsod and and it being unstable is simply false. And I personally think it hurts the credibility of the Linux community to say stuff like this.
1
Jul 26 '21 edited Jul 26 '21
I am not an IT person but have to involve with IT people for work.
Do you run windows for a year without powering down the machine and rebooting? Literally Linux servers run for 2 or more years without ever being turned off to reboot and have kernel updated and it continues. Its not unheard of for Linux servers to run even longer.
This does not happen with windows servers as far as I have ever heard.
What is the longest uptime for Windows servers?
1
u/tdreampo Jul 26 '21 edited Jul 26 '21
Windows servers can absolutely run years and years without rebooting, no problem at all. But this “Linux servers can run years without rebooting “ Is not the badge of honor the Linux community seems to think it is. It’s incredibly bad practice to never reboot a server or have a maintenance window. Power outages can happen, hardware failures can happen, battery backups can die and even in the Linux universe some patches require a reboot. Proper care and feeding of any server requires regular reboots. If you let ANY server go for 5-6 years without rebooting you are likely in for a nasty surprise when you do. that’s just being a bad admin.
6
u/Sciencey-Coder Jul 26 '21
You don't want a server with e.g 8gb ram and windoes taking up 3gb of it. Linux is extremely light weight, improving the efficacy of a server no matter what. Also windows is HIGHLY targeted by malware and viruses, making servers very vulnerable.
-1
u/billdietrich1 Jul 26 '21
Also windows is HIGHLY targeted by malware and viruses, making servers very vulnerable.
https://threatpost.com/mac-linux-attack-finspy/159607/
https://www.bluefintech.com/2019/06/22/new-malware-designed-to-go-after-linux-systems/
https://socprime.com/en/news/evilgnome-new-linux-malware-targeting-desktop-users/
https://www.zdnet.com/article/eset-discovers-21-new-linux-malware-families/
0
u/Sciencey-Coder Jul 27 '21
I see that some if not most are more than 6 months old, linux is open source, if there is a bug/vulnerability it will be fixed by one of the millions of contributors sooner or later. Windows on the other hand sends bug fixes rather slowly, and ships out-of-schedule updates *only* when its *really* severe.
0
u/billdietrich1 Jul 27 '21
Windows on the other hand sends bug fixes rather slowly
"... Microsoft platform assets get fixes faster than other platforms, according to the paper. "The half-life of vulnerabilities in a Windows system is 36 days," it reports. "For network appliances, that figure jumps to 369 days. Linux systems are slower to get fixed, with a half-life of 253 days. ..." from https://www.theregister.com/2020/04/28/vulnerabilities_report_9_million/
0
0
u/Sciencey-Coder Jul 29 '21
If you check this article, it states that linux maintainers never take more than 21 days. https://www.kernel.org/doc/html/v4.15/admin-guide/reporting-bugs.html
3
u/jiyusuzuki Jul 26 '21
Free. Stable. Security Updates. File Systems.
I'm sure there's more, I would like to know too. :))
3
Jul 26 '21
Because companies don't have to follow Microsoft's licensing. FOSS software have very permissive licenses so companies can do whatever they want with it without paying money. So companies developed their server software for Linux.
3
u/HCrikki Jul 26 '21
Not priced ridiculously or per copy/processor like windows server (the webhosting industry couldnt have thrived otherwise).
WS editions are crippled in certain ways depending on how much you pay. Windows Server Essentials is limited to 25 users and 50 devices despite being charged up to 600$ for one processor.
Reproducibility of configurations.
Important software like cpanel supported very few operating systems, so the webhosting industry make those like centos popular at the expense of others like WS and ubuntu/debian server.
Lower attack surface since everything can be audited and tweaked to your exact needs. You run WS on a take it or leave it basis, with large amounts of unneeded binary-only blobs of unclear purpose bloating your servers and needing to be patched, updated and sometimes imposing reboots more frequently than supposed.
3
u/SteveM2020 Jul 26 '21
Had a couple of friends who were IT Admins for companies. They were both pro windows, but they said, the linux server just chugs along. They reboot it every few days. Windows servers weren't as reliable. They said they had to sit on them all day just to keep them up.
9
2
u/0xKaishakunin Jul 26 '21
The internet was born on Unix (and VAX/VMS) machines, so it was just natural evolution from AT&T and BSD Unix to commercial ones (SCO which is based on Microsofts unix-like Xenix, SunOS, Solaris, HP/UX) who later got substituted by NetBSD/FreeBSD and Linux, once they matured and recovered from their lawsuits.
There is also often the somewhat false asumption that open source software is something strange and cannot be used in productive environments, but the internet was only successful because of it's open source foundation.
The idea that software can be sold and that there is a market only really took off in the 1980s with IBMs PC and Microsofts DOS.
2
Jul 26 '21 edited Jul 26 '21
Much easier to tender for a project by i.e. reducing (read cost+consequence) current budget which yield better return in future operations $ _
2
u/CMDR-Vanghard Jul 26 '21
In my case : light, fast, responsive. You can just install a bare system, the service the server need to run, config and done.
I have nothing against MS server but apart specific case I will prefer linux server for general use.
(Specifically Debian, but I think it's more a matter of habit than anything else on that point).
2
u/nullmove Jul 26 '21
Because it's better etc etc.
But there is something else (and having glanced through these post I don't think it was mentioned yet). Imagine you are a cloud vendor who is about to loan access to huge fleets of computers to random people. There are lots of considerations in that line of business. Obviously customer demand is important, but I suspect the businesses found that: i) Windows license is much more complicated ii) You have technical needs to modify the OS (perhaps for security hardening, hypervisor and so on), and they found it's much easier to hire engineers to extend something that's already open-source, or easier to ask kernel people to do so without going through hoops of corporate customer service.
Either way, they found Linux easier to deploy and made available to customers. That's how it came to be ubiquitous. And after that more and more people were drawn to it because it's available and free. That got the ball rolling.
2
2
u/tomjleo Jul 26 '21
Maintainability & Cost.
Maintainability:
Surfacing bugs: You can deep-dive into every level from the server software to the kernel . If a odd behavior is found, you can debug and potentially surface an operating system bug, and if you have the means actually submit a fix. To do that with proprietary software is literally a crime under US DMCA laws. Even just discovering a bug implies you "reverse engineered something" and therefore broken the law.
Control: You can turn off any service. You don't need to "root" or "jail break" your software. You have complete control over software updates which could potentially break your application stack. If support ends, because the software is opensource a different group could step-in to continue support. For example Red Hat is supporting python2.7 beyond the support timeline of the PSF.
Cost:
Licensing: At a certain point you must accept a certain level of software lock-in. If you're dealing with Microsoft or historically Adobe for flash, you were subject to extremely high licensing costs. At any point (besides already agreed upon contracts) a company could raise the cost of licensing to the point where you can no longer be profitable. When that happens you're kid of stuck in the water.
2
Jul 26 '21
Because Science requires peer review.
Ever done a group project without checking up on what others are working on? That is proprietary software and no amount of managerial smokescreens and illusions will fix it.
Such a system has not the self awareness to differentiate its own ass from a hole in the ground so will never do all the cool parkour loopy de loop barrrel rolls of a more self aware system.
Which would you like a Transformer or a redundantly botched dependency hell that is a brick shit out on wheels?
2
u/deux3xmachina Jul 26 '21
Mix of things. Most relevant, but not recent is because of AT&T suing BSDi, which caused a significant shift in interest away from BSD systems towards Linux ones.
Then we have things that are mostly shared by all F/LOSS systems, like no licensing fees, easy customization, etc.
Finally, the network effect at this point is pretty huge, it's hard to find people who even know how to use a non-Linux server unless they're an AD admin, so even when Linux may not be the best choice, it's easier to find people to make it work than to find people to set up and maintain an alternative technology.
3
u/Dereference_operator Jul 26 '21
The World run on Linux period. But don't get fooled by sysadmin who have no experience who will say things like Linux is much better than Windows or Windows is much better than Linux the truth is none is better they are different and they both have their strenght.
Thing is everything is moving to the cloud and being automated as Infrastructure as code and managing services online and preconfigured iso's etc etc who can spins any vm's server in the cloud faster than installing buying running on premise hardware...
now you have to ask yourself do you really want to be a sysadmin today or you want to program and go for a career in programming ? because advanced sysadmin stuffs is a lot of scripting with powershell/bash/python etc etc
Depending of your situation where you live and all being a programmer will be easier if your looking for a 100% remote position and the pay may be better. Sysadmin is still very in demand and there is some remote position but it will be harder.. you'll need to be a better people person being a sysadmin than a programmer thought.
Linux run the world because it's free and the best server os with AWS but Azure is getting VERY BIG and popular mainly with O365 and Cloud AD etc no matters what the linux fanboys say there is no alternatives in the linux world to Office, Active Directory domain, Exchange and the Adobe suite... there is some alternatives but they aren't as great and most ppl don't want to use them so business around the world are heavy on Azure and Office and they go with Hybrid configurations of BOTH Linux and Windows Server... but for small shop having Windows server licensing cost make no sense for a dns dhcp or file server etc where everything is small and on premise... but when you fall into 1000's of users with office things change...
There is a lot of great career you could be a senior Linux sysadmin or a senior windows server admin ( both with Azure and AWS for linux) or go the Cisco route too for pure networking... don't forget about programming too which pay a tons too...
What I would recommend is install a big virtual network with Vmware Workstation (if your on windows) config and play with everything linux windows etc if you don't like it go program a few days and see what you want... it's more important to love what you do than doing what you need for money etc money will come if your good at what you do
3
1
u/ElMachoGrande Jul 26 '21
Stable, both in terms of "won't crash" and in terms of "an update won't break things".
Uses less resources. Most servers are run as virtual machines, and if you can run more servers on each physical machines, you save lots of money.
Better suited for effective administration. IF you want to roll out 100 new servers, you don't want to get through it all manually. With Linux, you can script almost everything, so setting up 10 or 1000 isn't much difference.
No activation and all that stuff. Once again, saves work.
License costs. Windows server isn't cheap, and with the trend of running every small service on its own virtual server, license costs rack up.
Security. In some high security applications (say, for example, military), one can't trust a closed source OS.
Flexibility. Windows is pretty much "one size fits all", even though it really doesn't. With Linux, you get the size which suits your needs, and nothing else.
1
u/Kriss3d Jul 26 '21
Linux is made as a very stable system and is built to allow you to costumize everything. Windows servers are fine as it's very streamlined and uses proprititaty software and protocols. For example you can't set up an exchange in Linux. Exchange does a great job at into grating calendar and mail with things like Skype and teams etc. Linux can't because the protocols aren't open so it can't make software for it.
But what you can do in Linux is set up servers easily on anything that runs on the operating system..
You want a webserver on your little home computer? Install apache and you're running. That's it.
In windows you'd need to install visual studio code, install Apache, enable alot of things..
Or have a windows server which is expensive where you can install the various server parts.
A server can be anything running Linux. You can run it without a gui if you want. Windows is only recently doing the same.
1
1
1
Jul 26 '21
Because it doesn't automatically reboot. Now, I don't know if Windows Server actually does it, but desktop Windows does and to me automatic reboots are a completely unacceptable thing for any OS to do. It's called "operating system", not "rebooting system".
1
u/bigfig Jul 26 '21
Reliable, familiar interface (can hire people to administer it), cheap, gets the job done. Other options like *BSD are competitive.
1
u/walterbanana Jul 26 '21
Easier automation, free tools and less resource usage. All of these save a massive amount of money for big companies, which is what it's all about in system administration.
1
u/smashcatroof Jul 26 '21
For Intel based hardware back in the 1990s, we mainly had Novell, SCO, Notes ( Domino ) [1], and NT server. All of which were expensive and overkill for 90% of use cases.
RedHat's Linux dropped, offering a much cheaper way ( not so cheap anymore ) for anything not required to offer directory / bindery type services.
25 years later here we are.
[1] I think I installed Domino on Linux but my memory is unsure...
1
Jul 26 '21 edited Jul 26 '21
I'm no expert, but I can think of two main reasons:
Linux is free and open source. Which means companies can do whatever they want (within the GPL or whatever else FOSS license) without worrying about a lawsuit.
On Linux, you can start with a very very minimal kernel then build up from there as needed. Windows is bloated and removing things would probably require Microsoft's supervision (proprietary) and more work.
Money?
1
u/ileskagamer Jul 26 '21
Windows servers cost money. If you have a lot server computers and you think what operating system to use using linux (what is free) can save you thousands of Euros
1
Jul 26 '21
You only install what you need. No GUI if you don't need a GUI. Can be really small and fast and easy to install because of this.
It's open source. That means that any provider can ship their custom kernel that allows better management of their infrastructure for example.
It's free. You don't have to pay license fees for using it. Even if one can afford the license fees, there is a huge overhead in processes when you have to plan these licenses, read the EULA and figuring out if you pay for the right thing and that you won't get sued and fined for having an extra VM.
Higher hypothetical security. Because it's open source, you can hire auditors to audit packages, and install only code that was approved to run.
It's extremely easy to have completely scripted setups because it was designed from the very beginning for CLI-based management. That means that any installations can be easily automated.
The big question at this point is: why aren't ALL servers using Linux or *BSD (it's not Linux, but can easily be confused with Linux)?
1
Jul 26 '21
It's more secure, stable and efficient than windows because you can tweak it just like how you want it to be.
1
u/supradave Jul 26 '21 edited Jul 26 '21
Windows Server was never meant to be huge. For the most part, Microsoft was working from the desktop paradigm, i.e. all work is done at the desktop, like the Workgroup, therefore a server would only be necessary for file storage and shared services, like printing, AD and DNS, and it would be internal to a company. Because you can throw other servers, like IIS, on top and it could work, it wasn't scalable enough due to licensing.
I don't know how it is today as I haven't worked on Windows for a many years now.
1
Jul 26 '21
Being free-as-in-beer matters in these horizontally-scaling cloud days when you just want to add a new VM whenever.
1
1
u/h0bb3z Jul 26 '21
There's a lot of posts that say similar things, but...
The Linux OS is just that -- an operating system build on a set of modular software that is well maintained. It does not require a lot of resources to build or run the basic OS, so it is perfect as a foundation to run server-based services. If you want a web server, you add one (with about 20 different choices of web server to suit the need). By comparison, you can't really run Microsoft server without requiring a multitude of supporting junk that you would normally not need if you just wanted, say a web server (95% likely its IIS) for some content.
Linux is natively multi-threaded and multi-user - something that took Microsoft years to catch up to and do well (enough). Linux has a great approach to multi-user security that is simple and effective. Microsoft's default is to give you "root" level access to everything - and on a server that is a security nightmare, but unfortunately many application rely on superuser privileges to even function properly.
Linux is well suited for mass-administration. It is easy to script and deploy changes to a Linux server environment without impacting the availability of the services. By contrast, it is now not that difficult to apply patches to a Microsoft server environment, but doing so still creates significant impact to services -- you can't patch anything without having to reboot (maybe multiple times).
For all its benefits and advantages, Linux is also free to use without licensing burden. Have you ever tried to license an 8-core virtual server for Windows Enterprise server and Microsoft SQL server? Ridiculous cost. Linux server and an open source DB can do as much and it costs 100% less money.
Infinitely customizable. Linux can be tailored to suit what ever specific purpose you need. Many branded vendors have made their money creating custom builds based on Linux as a starting point. Most hyperscale cloud platforms (like AWS, Google, etc) run on a custom Linux platform. Facebook's platform is all running custom Linux at the core. Hell, even some of the Microsoft Azure cloud would not be possible without relying on an underlying Linux core.
Availability is king in the server world. While you can make up for availability issues from the patching deficiencies of Windows using load balancers, proxies, etc., Linux is just the more obvious choice as it is the most fit for purpose - and the bulk of services on the Internet (the bulk of which are running on Linux) is good indication that this is true...
1
Jul 26 '21
I typed a longer comment, but FireFox crashed—I use Chromium for a reason and I keep forgetting that.
Firefox actually crashed the tab 3 times. But I copied and pasted the second and third times in anticipation.
Basically, it is three-fold:
Right time (Linux popped up coincidentally just as BSD was having legal issues, giving them a bad name at the time);
Low price and extensibility (to this day, a RedHat support contract is only like $700 USD per copy of Red Hat Enterprise Linux—then on top of that, all the source code and documentation is available to you, the only thing is, any modifications you make to GNU software, you must freely give back to the owner of said software);
Right customers (Corporations using then dozens of copies of the same machines with the same hardware and LOTS of spares on demand in an emergency).
Basically, IIRC, BSD made their phonenumber, “1-800-It's-UNIX,” and this triggered AT&T, who owned the copyright of UNIX, and they still had some AT&T owned code in BSD, though they were trying to get rid of much of it. Red Hat popped up not long after when they realised that with GNU being a drop-in replacement for UNIX, they could literally offer to support companies in their transition to GNU. Which was JUST what companies wanted—if they couldn't get support, it wasn't worth their time.
In a server environment today, you have thousands of clones of the exact same hardware, and you either have spare replacement components on hand or can get them on hand in an hour. And the vendors you buy from, they don't offer many alternative component selections. This means that you either have replacement components on hand or can get them within an hour. This regular, expected hardware means that if your vendor doesn't support Linux or they did but stopped, it doesn't take very long to write your own drivers for the hardware. Many companies may use the same hundred machines, so passing around drivers or selling them is easy.
With everyone starting to switch over, any improvements you make to the GNU project or perhaps a piece of open source software like the XEN hypervisor, or what. That makes your company look VERY good when you contribute. It makes you look VERY good when you can sell and offer support for software you wrote or say you made the guy you hired to write it, and support him.
These days, the Cloud is the future. Amazon's Cloud and Microsoft's Azure run on Linux and GNU. And many companies now are stopping using Linux themselves in favour of just using Linux as provided by Cloud providers. It is cheap and in theory secure.
Netflix for instance, when you browse the catalogue or their website—all that is on Amazon's Cloud. But when you click play, everything else happens in-house on their own servers running FreeBSD. They chose FreeBSD probably mainly because of its MIT licensing, but also because it has the fastest networking. The MIT licensing FreeBSD uses basically say, “Take our code, do whatever with it, we want you to, you don't even have to pay us or contribute back, just say you use FreeBSD.” Netflix makes a lot of under-the-hood modifications they own and are not required to surrender, but they contribute back most of those to FreeBSD freely to make the work of upgrading FreeBSD easier on them in the future.
1
Jul 26 '21
stability and the live kernel. next to no crashes, very low resource consumption and with the love kernel theres almost never a need to restart the system.
1
u/Thraingios Jul 26 '21
Most servers run linux for the reasons of security, reliability, upgradability and customisability. Windows server exists to A: never see a internet connection B: manage active directory and exchange. Both through gpo's mostly. Everyone hates active directory.
1
Jul 26 '21
Because there are no cheaper alternatives. Imagine google/amazon to have a cloud based on windows servers. What would be the licenses costs? :)
1
u/artremist Jul 26 '21
Linux is flexible. If you want Linux to do only one task and nothing else, you can setup the task, install the dependencies and delete mostly everything. And windows on the other hand you can delete only some of the stuff and the rest is un uninstallable.
Linux does not use up all of your ram as it is lightweight and also takes very less space on your hdd(some distros use only 500 mb of storage.).
Windows on the other hand uses 14 - 25 gb of storage just for fresh install and that also without any apps installed by the user
And for performance reason servers use Linux instead of windows
1
u/SBG_Mujtaba Jul 26 '21
Because it’s excellent, secure, configurable and free. Unlike windows which is none of those and Mac which can only be used on Mac hardware,
1
u/metromsi Jul 26 '21
Due to the rich eco system of some of the major Linux distributions <choice here> you can always install a very minimal system. Some of these Distributions have over 20,000+ packages that can be installed. As for windows almost any tool you want is created by 3rd parties, MS have a limited eco system if not purchased. Do you get a free word document, AD isn't free either. On the other hand Directory Server 386 or LDAP is available.
However, with LINUX comes a required need to understand the OS at a much closer layer than windows. RE-install is the mantra we've seen many times when things go bad. On the other hand on Linux eco system you have strace/ltrace etc.. tools that allow to see things in real time. There are tools like this on windows too free as well. However, enterprise level likes to make calls that is why (RedHat(e) / SuSE / Ubuntu) that why you can purchase the software but you don't own it you are purchasing support.
We've been working in UNIX/LINUX for almost 3 decades seen what UNIX/LINUX can bring vs MS. Internet of Things (IoT) yup MS tried and failed because of licensing and now they are scrambling to play catch up... EG: cell phones really only two camps Driod or iOS. What will happen with the new Microsoft / Linux we'll wait and see but they are in it for MONEY not for the species to become better. Either way (our) career is based of UNIX/LINUX and has done us good even though it did take almost 2 decades in the data-center. Desktop well that's on to each of us.
EG:
Linux file systems: ext2/3, ext4, xfs, jfs, resierfs, zfs
Windows file systems: DOS, fat32, nfts ( hpfs ), refs..
Kind Regards,
METROMSI
1
u/United_Algae2332 Jul 26 '21
Rock solid; once it is working on a system, it will last as long as the system does.
No extra/unnecessary software packages.
Broad scalability and cross system compatibility.
No addware, bloatware, etc.
There's also an expansive firmware library from which you can pick and choose only what your system needs.
Less prone to cyberattacks, malware, etc.
Easily coded for with minimal skills.
Awesome support, development, and community.
1
1
1
u/gosand Jul 26 '21
What do you mean by servers? That's kind of a generic term.
As others have mentioned, there are reasons to use Windows for some things - mainly for Microsoft-specific platforms/applications. Those are valuable things that are necessary for businesses, no doubt. But there is soooo much more than that, things that power the internet and data centers.
In general Linux is
Easier to install and automate
Easier to update / administer (CLI)
Easier to trim down to bare essentials and become lightweight
Less costly - licensing, but you may need support for large footprints
More friendly for things like Virtualization/Containers/Microservices
Supportive of innovation and things that power the internet... a long history of this, the list is too long... nginx, apache, tomcat, CI/CD tools, containers, etc. Many of these are supported on Windows but aren't as performant.
Secure
Stable
Tunable / configurable / flexible / customizable. see: supercomputers
1
1
u/peatthebeat Jul 26 '21
I always explain to people that the hardware will mostly fail before the service itself will crash on Linux. That’s how stable (granted if properly setup) Linux is.
1
u/thejacer87 Jul 27 '21
What I've read before, which I haven't seen listed here: Apache.
Spinning up web servers during the stock boom made more sense with it.
If you wanted a website, on windows, you needing a single machine that could NOT be shared.
Apache showed up with vhosts allowing running multiple sites from one server.
This is me just guessing now, but perhaps Apache didn't work well with windows, which made it an easy choice to go with Linux and the open licenses of Linux and Apache
1
Jul 26 '21 edited Jul 26 '21
No particular reason, honestly. Windows and FreeBSD are very capable server operating systems too, FreeBSD perhaps even more so than Linux.
Why is Windows the primary desktop operating system, why is Linux the primary desktop OS, why is Android dominant on phones? Well, in both cases we need to look back at history and the answer we will find is: they were both in the right place, at the right time. Linux is free and shared much in common with UNIX, an OS popular on servers before then. It being free made that Linux could effectively be deployed at scale and already came with the tools that people required.
There is no other particular reasons. Linux has simply had the momentum on servers since then. An observable effect with software is that once something becomes dominant in their particular sector, it's weight and inertia make it really hard to topple. See: any social media platform, Windows, Steam, Android, Photoshop, etc.
The bigger the software, the more likely it is people are to start using it, thus keeping it big. The bigger it is, seemingly the less effort it needs to give to remain large.
Hope that answers your question.
1
u/Nibodhika Jul 26 '21
There are many reasons.
Security: Linux is a lot more secure, less vulnerabilities and quicker fixes, not to mention almost impervious to viruses.
Resource efficient: Windows requires a GUI, anti-virus, and a lot of other things that bloat the OS and you can't disable or uninstall, Linux can realistically be run in a couple of MB of RAM, windows needs orders of magnitude more, so you would need to pay a lot more to get the resources the OS needs + the resources your application needs.
Reliable: Linux is known for being robust and reliable, there are servers that have been running Linux for years with 100% uptime, which is impossible on Windows since you need to reboot after every update. Not to mention not once in all of my years on Linux have I seen one freeze without good cause, whereas Windows has the infamous Blue Screen of Death.
Free as in beer: the majority of Linuxes can be used without paying a dime, so for companies that are starting up Linux is very attractive, and the more you grow the more you save on costs.
Free as in speech: Linux is Open Source, so you can be sure of what's running on your machine, if Microsoft wanted they could be gathering data or using resources from your server for themselves and you're not very likely to find out.
Linux is so good that even Microsoft uses it, if the owners don't trust their product for their own needs, you should know better than to trust it.
2
u/ntrid Jul 26 '21
Security: Linux is a lot more secure, less vulnerabilities and quicker fixes, not to mention almost impervious to viruses.
Quicker fixes - sure. Anything else in that sentence is false. We can see more CVEs produced for linux kernel than for windows. Linux may seem impervious to malware, but only because tiny desktop market share makes Linux irrelevant to malware developers. Besides we have a steady rise of malware aimed at linux servers. I love Linux and i use Linux as my main OS, but there is no need for rosy glasses here..
0
u/billdietrich1 Jul 26 '21
quicker fixes
"... Microsoft platform assets get fixes faster than other platforms, according to the paper. "The half-life of vulnerabilities in a Windows system is 36 days," it reports. "For network appliances, that figure jumps to 369 days. Linux systems are slower to get fixed, with a half-life of 253 days. ..." from https://www.theregister.com/2020/04/28/vulnerabilities_report_9_million/
Linux is so good that even Microsoft uses it, if the owners don't trust their product for their own needs, you should know better than to trust it.
Not a matter of "trust". It's just that MS will support whatever enterprises are using. MS makes much of its money from the enterprise market.
And places such as the US military "trust" MS software:
The U.S. Army alone upgraded 950,000 office IT computers to Windows 10 and became the first major military branch to complete the Windows 10 upgrade push in January 2018. The U.S. Air Force targeted its upgrade completion for March 2018, whereas the Navy has said that it hopes to complete its Windows 10 push by this summer.
from https://slate.com/technology/2018/06/why-the-military-cant-quit-windows-xp.html
Free as in speech: Linux is Open Source
MS has a source-inspection program for its software. It's available for reading by researchers, govts, corps. Just not available to the general public. https://www.microsoft.com/en-us/sharedsource/
0
u/husky231 Jul 26 '21
Free software
Windoze makes you pay a license fee for every install... Linux is 100% free, although with redhat the support is not.
0
-6
u/stufforstuff Jul 26 '21
Why would you think it is? According to numerous studies, Microsoft is the leading Server OS.
https://www.t4.ai/industry/server-operating-system-market-share
7
u/Nibodhika Jul 26 '21
Read that very carefully
Server OS market share of global shipments for enterprise Server Operating Systems in 2018
Most people who use Linux don't buy enterprise licenses so they wouldn't be accounted for. And that's being generous with that site, since they claims there are only 11 million servers worldwide, which is ridiculous since w3techs has been checking the top 10 million websites since 2013 (source https://w3techs.com/technologies)
The closest thing we have to a real number is the publicly available web page servers which for historical data on 2018 to match your article you can find here. As you can see Unix like servers are the vast majority and always were. I'm more willing to trust this data because they have explanations on methodology and how things were queried, is not just a chart saying something without backup.
The problem with this data is that you can only query user facing servers, which are the vast minority, but usually companies tend to stick to the same OS for all of their servers out of consistency. For example the company I work for has 10/20 servers for each user facing one, all of them running Linux, yet only counting as 1 for the data that I sent and as 0 for the one you did.
-3
0
Jul 26 '21
[deleted]
1
u/mirkules Jul 26 '21
You can use Ansible with Windows too.
3
u/natnit555 Jul 26 '21
Ansible works with Windows, but not as control machine. Linux machine is still needed to run the playbook.
0
Jul 26 '21
[deleted]
1
u/computer-machine Jul 26 '21
2. Lighter on resources than Windows in standard form. (Most distros, and you can custom configure an even lighter system for embedded servers)
I had a WD MyCloud once. I think it ran Debian on 28MB RAM.
1
Jul 26 '21 edited Jul 27 '21
[removed] — view removed comment
1
Jul 27 '21
This. At scale, you want the cheapest tool that will do the job. Linux and Windows can both do the job, but nobody wants to pay for VMWare and Windows Datacenter licenses when they could scale out with Kubernetes.
162
u/cjcox4 Jul 26 '21
Can be configured to be what it needs to be (?)
If the idea is "why not Windows?", Windows comes with a lot of "stuff"... while you can trim things down a bit, maybe that's harder than starting light and adding what you need (Linux style).
When you think about deployment, having to start out "big" and somehow "shrink" is much more difficult than starting out "small" and "growing".