r/linuxquestions • • Jul 26 '21

Why is Linux the primary operating system that is used with servers?

Title.

228 Upvotes

170 comments sorted by

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".

38

u/Izerpizer Jul 26 '21

That does make me curious as to why windows server software even exists. Is it only to cater to the familiarity of windows for some people? Or perhaps some businesses have agreements with Microsoft to solely use their software?

There must be some use case for windows server software to explain its existence. Perhaps it’s because some software is “windows only” (ignoring compatibility software for windows programs such as wine)?

135

u/dontquestionmyaction Jul 26 '21

Active Directory.

That's the reason most people have it.

48

u/DimestoreProstitute Jul 26 '21

That and Exchange

24

u/anna_lynn_fection Jul 26 '21

And group policies [maybe you intended that to be included in AD], and print server.

12

u/billdietrich1 Jul 26 '21

And MS SQL Server (although now that runs on Linux too).

And there was a time when IIS had a decent market share.

7

u/AlwynEvokedHippest Jul 26 '21

Similarly ASP .NET is a popular web framework (at least in the business/enterprise world) and was primarily supported on Windows until the past couple of years, when Microsoft started cross platforming things.

23

u/lachyBalboa Jul 26 '21

tbh what I see a lot is people that often times people just reach for what they know and run with it. For a lot of people it's not their job to consider the alternatives. It's not their KPIs. The business has hundreds of engineers who know Windows, so they go for Windows. It's not even just knowing how to use Windows servers at the desktop level.

There are whole teams of people who will figure out and fix Windows Domain Controller issues. Or the security team requires new servers to have certain security agents installed. Or the security team has not "approved" Linux for use in the environment, and no one is leaning on them to do so.

I guess a lot of companies, which are not built on technical innovation (like retail, insurance etc.) are slow to consider changes to their approach. Windows Servers are their bread and butter so they keep reaching for it.

51

u/tdreampo Jul 26 '21 edited Jul 26 '21

I always get down voted for saying stuff like this even though I’m team Linux, but Windows Active directory is incredibly powerful. Microsoft’s full stack works great, and no Linux LDAP is not the same. When you take active directly and group policy mixed with Microsoft sql you can do things and do things easily that there is simply no Linux equivalent for whatsoever. Linux dominates the web server market but Windows dominates the small business server market. For good reason, because it’s a best in breed product. I wish it wasn’t true but it simply is.

18

u/BigAndWazzy Jul 26 '21

Can confirm this. Company I work for is about ~300 employees, all on our domain, all can be managed from any machine on our network with remote desktop. We don't use windows server for anything but license managers, AD, and mass storage. Since I've started as IT I've implemented nfs on our file servers so we can save machine images with Clonezilla. Turned our 3 day turn around for new machines into 2 hours.

18

u/theOtherJT Jul 26 '21

You absolutely can do everything AD and GP does with Linux and foss only software - and I have - but it's a lot more fuss because you're going to end up using half a dozen different tools together that may or my not be easy to interoperate.

What AD does is make this sort of full stack management really a lot easier.

1

u/ronin1066 Jul 26 '21

Can you mimic the complexity of Windows ownership/file permissions?

9

u/theOtherJT Jul 26 '21

If you have an extended attributes aware file system (which basically all of them are these days) then yes. Linux has supported Posix style ACL's (which are pretty much, but not quite, identical to NT ACL's) for decades. See setfacl

1

u/ronin1066 Jul 26 '21

And there's the problem with me working in a place that doesn't value Linux in any way. Thank you.

4

u/theOtherJT Jul 26 '21

We use these alongside ZFS and samba to pull off the awesome shadow_copy_volume trick where you can have hour by hour (in theory minute or even second by second, but that's just a bit silly) per-user home directory snapshots where the user can right-click on a file and revert to previous versions based on their access control rights. It's awesome.

Obviously windows can do that with NTFS, so you know, that's also awesome, but I like the fact that it is still possible for windows users to have that feature with an entirely FOSS backend.

1

u/tdreampo Jul 26 '21

Interesting, how are you doing gpo stuff and rolling out to 1k workstations?

21

u/theOtherJT Jul 26 '21

Short version: ansible and puppet.

Long version:

PXE boot to a minimal linux that allows me to register the machine as a company asset using my admin creds if the machine isn't registered already.

If it is registered it will boot the first disk if that's already got an OS on it, or boot an installer and install either Windows or Linux depending on what sort of machine I registered it as.

Once it's installed, puppet will kick off and configure the machine into whatever sort of thing it's meant to be - staff windows desktop, staff linux desktop, guest kiosk mode desktop, linux server etc.

With VM's if something is defined in the manifest puppet running on the server will check, validate, and create if required any missing machines, and then once they're up it uses ansible to configure them (There's a weird historical reason for that - basically because we already had a "create a machine with ansible" playbook ready and because the devops people like to deploy them by hand all the time.)

Puppet on the Linux desktops is super easy to do just everything but it doesn't do quite so well on the Windows ones.

Ansible can be run on the windows desktops to deploy powershell scripts, so it's possible to do pretty much everything that GPOs would do on those as well, but again it's kinda a ballache compared to just using AD and GPOs.

So... yeah. It's super possible. It's even relatively clean and easy if you're used to using git to version all your infra-as-code code. Anyone wants to update something, clone the repo, create a pull request, get it approved by someone on the IT team. When approved it gets merged back to master and then automatically deployed via puppet to all 1,300 hosts or however many we actually have these days.

It's not pointy-clicky-easy tho. You need to know a lot more stuff, and to get it to manage the Windows machines involves a whole ton of powershell.

2

u/tdreampo Jul 26 '21

Now that is interesting for sure, totally makes sense but boy your right, that’s pretty messy. How would you then apply a group permission to a database field for example?

12

u/theOtherJT Jul 26 '21

Personally, I wouldn't, because the last thing I want is people in our general directory using SQL. I can't imagine a single one of them who is competent to do it.

If I did want to do that, I'd use this:

https://dev.mysql.com/doc/mysql-security-excerpt/8.0/en/ldap-pluggable-authentication.html

and then something along the lines of (forgive me if this is wrong, my SQL is pretty rusty, not used it in years)

GRANT SELECT (example), INSERT (example,example2) ON database.table TO 'groupname'

if I wanted to do it by hand, but more realistically, get puppet to do it for me on the database host:

https://github.com/puppetlabs/puppetlabs-mysql

Now what I will say in favour of doing it the long way around is that it's a damn sight easier to enforce the "No one person may change a god damn thing" policy. Since everything has to be committed into git and then approved for a merge to master, there's no chance of someone just logging in and clicking on things. Maybe there's a way to enforce that in Windows, but I'm not a Windows admin, so I don't know.

It's also nice just having the entire inventory from how many machines we own, what they're doing, our entire user directory... everything... in plaintext so you can just search the whole thing and keep it all in version control.

We're even running Kerberos (MIT 1.17) so we have SSO into our webapps, remote desktop, VPN, SSH sessions etc, and astonishingly it even has cross domain trust with our AD and Windows servers (Yeah, we have some - mostly for licensing reasons)

You don't need Windows server to do anything that it does, and if you're running a Linux first shop, and are used to working with CLI type tools that can be neatly automated by their very nature, having to use the Windows GUI to perform server tasks feels like a massive step backwards. Thank Christ they're finally taking powershell seriously is all I can say. My last job as a primarily Windows admin was back in 2009 and we were still mostly using Server 2003 back then - god that was hateful.

1

u/tdreampo Jul 26 '21

Oh god windows server 2003 was a disaster. And I use AD to control db permissions for developer access. Works soooo smooth and takes no time to admin.

1

u/metromsi Jul 27 '21

Puppet

Also would point out we don't use master it just a its just a HEAD. Use of TAGs With the reference number for the ticketing system of your choice. Therefore if the master HEAD of the branch had an issue you know that the TAGs are a point in time.

Metromsi

7

u/domsch1988 Jul 26 '21

Funnily enough Microsoft is basically killing of the small business market (SBS already isn't a product anymore) and is moving everyone into their cloud services, which i'm pretty sure run on linux.

With our customers, rarely do companies keep running servers on site anymore. It's only at the 200-500 employee mark, that they start thinking about that again. The reasons to choose microsoft stayed the same, only that it's now running on Azure, which is running on Linux.

2

u/billdietrich1 Jul 26 '21

their cloud services, which i'm pretty sure run on linux.

Probably something like 55% Linux as of 7/2019, according to https://www.zdnet.com/article/microsoft-developer-reveals-linux-is-now-more-used-on-azure-than-windows-server/ I'm sure it's higher now.

3

u/Disruption0 Jul 26 '21

I work at a company almost exclusively linux worskstations and a few windows workstations ( will be transformed in rds soon). For the moment samba ad (samba 4 ) do a great job. Soon we'll deploy freeipa and get rid of the last winblows workstations. I'm glad to see things can change and participate to it.

1

u/[deleted] Jul 26 '21

You used to be able to run Novell's eDirectory on Linux. That was a great directory service in its day but Novell lost the fight a long time ago. At a job many jobs ago we paid $40,000 to Gartner for a powerpoint that said to build our national network with eDirectory at its core. LOL. Nope. To be fair Windows 2000 was either brand new or just on the edge of being released.

26

u/sidusnare Senior Systems Engineer Jul 26 '21

If you're a Windows engineer, at a Windows shop, that has only Windows experience, and you are gullible enough to believe the Windows marketing hype, then Windows server makes sense.

It's not a bad choice for some narrow use cases if kept up to date and configured by a component engineer, like a SOHO domain and file server. The big problem is that people don't do all of that and use it where it makes no sense.

14

u/Larsenist Jul 26 '21

The Marine Corps uses Windows servers (virtualized in an ESXI environment)

Active Directory is a good reason to use Windows, mainly if your users' devices use Windows (which they most often do)

Then you have your Office 365 integration which is very common

9

u/nswizdum Jul 26 '21

I would also add that windows server is better at integrating with windows desktop. For example, its easier to manage a windows file server with active directory than it is to create a linux file server and configure it to work with windows permissions.

1

u/domsch1988 Jul 26 '21

On the desktop part: Terminal server is a huge feature for our customers still. Employees expect byod and Linux doesn't have an easily manged solution for that. That and most users can only work on a windows desktop. And once you need a Terminalserver with profile management, you more or less also need a Domain on site.

2

u/[deleted] Jul 26 '21

"If you don't know you don't know and that makes you stupid"

3

u/cjcox4 Jul 26 '21

You can actually run very comparable stacks on Windows Server.

But it's weighty, and I'm not just talking price.

2

u/satanic-surfer Jul 26 '21

I like to make hybrid solutions, small Linux / ngnix servers serving as reverse proxy to our tomcat app that uses LDAP, meanwhile Windows TCP stack by itself can run out of resources and call TCP Chimney offloading which on my experience causes weird problems on the Windows TCP stack on virtualized environments, Linux/ngnix only are limited by the available RAM on the small server so the best of both worlds combined

2

u/sogun123 Jul 26 '21

There are legacy projects. There are some good technologies that used to be windows only like .NET. It is used to be easier for managers to justify expenses on windows then on some back then "obscure hobbyist project called Linux" so they now have windows only software developed. Also for companies running all the Windows ecosystem with AD, desktops, auditing etc. Is easier to run other stuff they need on windows servers they already have and fit in their environment well. May be inner security policy.

2

u/[deleted] Jul 26 '21

There must be some use case for windows server software to explain its existence.

Yes. Some.

Active Directory is a system that is very appealing in a large organisation. It ensures easy control of accounts from a single place, as well as security restrictions. However in most cases I've seen that as more of a hindrance than it being actually helpful.

Microsoft SQL Server. It used to be quite a good product, and it used to be available only on Windows. Nowadays the lack of even Regular Expressions in it makes it a cruel joke, and it's even sadder that it has a large following that's willing to defend it to the bitter end.

ASP.NET, and later ASP.NET MVC was a very nice web platform to work with. The biggest benefit was that it (C#) wasn't a dynamically typed language, and the platform was really fast, and was among the best platforms for web development. Most notably, when I joined StackOverflow (they were big enough for me to encounter the questions on Google already), their setup was basically 2 small computers running on MSSQL and ASP.NET or something. Nowadays, ASP.NET MVC has been moved to .NET Core, which is open source and multi-platform, and people just deploy it on Linux.

One platform that still requires Windows is SharePoint (it's super bad).

So basically it's mostly legacy stuff, and people stuck in their ways.

1

u/Scratch9898 Jul 26 '21

Active directory and azure, there is literally no other reason to use it except for the software that u can install on it

1

u/Slash_Root Jul 26 '21

I think you touched on the main scenarios people choose Windows Server over Linux.

Is it only to cater to the familiarity of windows for some people?

This is sometimes the case especially in smaller organizations. Often there will only be a handful of IT people that need to desktops/laptops, servers, printers, and networking equipment. It is pretty much a given that a non-tech company is going to use Windows somewhere (for end-user devices and active directory). It doesn't always make sense to add more complexity to the environment by having more than OS to support.

Or perhaps some businesses have agreements with Microsoft to solely use their software?

I don't think it is common for businesses to agree not to use other operating systems. However, you touch on an important point - support. Businesses don't like risk so they like to have someone to call and like guarantees. Of course Linux distributions such as RHEL/SLES/Ubuntu can have support but no one was ever fired for choosing Microsoft. There can also be bundled pricing for things like Windows 10 licensing, Office 365, etc. Some industries also get special pricing (ie education and non-profit).

Perhaps it’s because some software is “windows only”

Bingo. This is the big one. Some Microsoft products must run on Windows and are extremely popular. Active Directory is almost ubiquitous for identity management. Many tools exist from Microsoft to manage Windows desktops/laptops and provide easy file/print servers. Also, VDI is very popular. Some COTS software is designed to run on Windows. Also, some companies write custom software using .NET which has traditionally run on top of Windows with IIS as the web server and SQL Server for the database. This is changing with .NET Core.

What I have personally seen is that small companies often use only Windows and large companies use some combination of Windows. Tech companies are a little different and are more likely to not use Windows at all. For example, the Reddit infrastructure team has said in an AMA that they use 0 Windows.

1

u/caffeineshakesthe2nd Jul 26 '21

Windows server supports Windows desktops which are way more common for regular workers. Active Directory and Group Policy allows for both computer and user management. Most business applications that are installed on desktops are Windows/Mac only as well. Their other big offering is Office which a lot of companies need for Excel, Word, PowerPoint.

Linux just doesn't have a good answer for that. We may see more companies move their employees to Linux PC's now that Office365 and Google Apps for business allow usage to their apps online, but we would still need a better way to manage 100's/1000+ users at a company.

1

u/PaintDrinkingPete Jul 26 '21

That does make me curious as to why windows server software even exists.

There are use-cases where Windows Server makes sense. Yes, on an overall scale, Linux dominates the "server world", but Windows still has a place.

For many (or most?) companies, the user workstations all run Windows, and in most cases there is a network of Windows Servers behind the scenes running services like AD, file sharing, on-site exchange, etc. And it's not that you can't host these types of services on Linux, but it is, generally, easier to do it all with Windows Servers since they're built to be fully compatible with the workstations your users are utilizing.

Now, once you get beyond that, into "enterprise" level stuff and publicly facing servers, Linux-based servers usually make more sense. (I won't get into the reasons, since I'm sure other comments here and on other threads can answer that)

1

u/Zeddie- Jul 26 '21

My workplace is a Windows shop. Why Windows? Because that's what we built on top of, so it's hard to completely change everything out. A lot of tech we rely on are now Windows based:

Active Directory, security/permissions/distribution lists, file servers, authentication, MS SQL, RDS, etc.

A lot can be duplicated with Linux, but our IT people are already "experts" in working the Microsoft way, so to pull everything out for Linux will either be new hires that have Linux experience, reduction in our current Windows workforce, and/or training.

I guess the kind of server/services you're trying to provide has to be taken into account as well.

We do have a couple of Linux servers, but only because some products require it. Many are actually VM appliances built by products that uses Linux as the OS.

I'm personally getting bored of Windows, and would love to work at a place that's a Linux shop. If that means just the servers, but clients are still using MacOS, Windows, etc - that's fine by me. It's hard to find a place that's fully Linux, including the clients.

1

u/edman007-work Jul 26 '21

Today, mostly Active Directory and Exchange, basically windows in an enterprise environment requires windows servers, because that's how microsoft made it.

They tried in the past to make their stuff available to server applications, think .NET, ASP, and their database, MSSQL, with the main benefit that it's easy to share code between desktop and server. I think today, most people are not really interested in having their code locked to Windows, and then paying extra for windows server, and their server code doesn't really share anything with windows desktop code. So they use Linux because there isn't any significant difference other than cost.

1

u/zoharel Jul 26 '21

That does make me curious as to why windows server software even exists. Is it only to cater to the familiarity of windows for some people?

Well, basically yes. It has always been Microsoft's way to sell substandard software to people who can't recognize it as being substandard. There have always been other and better solutions for most anything, but Microsoft has a dedicated group of fans

2

u/edparadox Jul 26 '21

Reliability? Security? Nobody, really?

1

u/cjcox4 Jul 26 '21

Certainly also true. But often times those things can depend on the application side. And there's a ton of crappy (though world adopted) Java stuff available on Linux (for example).

1

u/WantDebianThanks Jul 26 '21

And as far as I'm aware, Windows has only recently released the ability to update the system from the command line. But the ability to do that is an add-on, not a core part of PS. And it doesn't do drivers. And I don't think it includes the ability to install exe's. Or a package system.

So it seems there's as much of what Windows is missing as what it has.

1

u/pixiegod Jul 26 '21

I have deployed both in enterprise environments from both an engineering as well as an IT leadership perspective…

…contrary to what many people say here it comes down to business need, engineering familiarity, and budget.

If the need is for asp.net, or other Microsoft technologies, then the business finds money to pay for Microsoft.

If the need can be maintained by internal resources who understand Linux and you don’t need to run a Microsoft stack on top of it, then Linux is chosen…if they have the money, they go redhat…if they don’t, it’s all over the place. I have seen Centos, fedora, Ubuntu…

There is a misguided idea that most servers are Linux because it’s more secure, but it normally comes down to business need and budget. Security is layered in through network monitoring tools and firewalls anyways, so while there are baseline security practices with GPO’s and Profiles, it’s not as “do or die” as people make it out to be, and it’s 100% not the main decision factor for choosing one over the other.

The other fallacy is uptime…I have walked into both Linux as well as windows servers who have had years of uptime…uptime is based on complexity of the app it’s running, business maintenance policies, and the skill of the engineers who run the systems. You give me an experienced windows engineer and an experienced Linux engineer, and BOTH servers will maintain epic levels of uptime…his being said, the paradigm has shifted over the years and having years of uptime now might be seen as a major flaw.

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

u/[deleted] 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.

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

u/[deleted] 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

u/nswizdum Jul 26 '21

Microsoft licensing is a nightmare, is one good reason.

53

u/lachyBalboa Jul 26 '21

Maybe because Windows Servers come with MS Paint pre-installed. Enough said.

9

u/2cats2hats Jul 26 '21

Paint I can forgive....but games and audio configs by default? Why?!?

-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

u/BubblyMango Jul 26 '21

holy cow then windows is so much more advanced

7

u/[deleted] Jul 26 '21

Excuse me, what the fuck

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

u/good4y0u Jul 26 '21

WHY Does a server OS need MS Paint, or any other unnecessary bloat software.

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 | more or 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

u/Falimor Jul 26 '21

Very clear answer, tx.

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:

  1. free as in licensing, cost and etc.

  2. 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

u/[deleted] 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

u/[deleted] 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.

cc: /u/BundleOfJoysticks /u/Lonely_Northling/

-3

u/[deleted] Jul 26 '21

People wouldn't ask in linux subs for an objective answer anyways

3

u/TheGoldenPotato69 Jul 26 '21

Where would they ask?? Windows subs??

1

u/[deleted] Jul 26 '21

"Not with me, you against me"

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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

https://www.tomsguide.com/news/windows-10-updates-cause-nasty-blue-screen-of-death-and-more-what-to-do

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

u/[deleted] 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

u/[deleted] 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

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

u/Sciencey-Coder Jul 27 '21

Lol ok, what about system downtime during updates o.O

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

u/[deleted] 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

u/[deleted] Jul 26 '21

Because it's good.

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

u/[deleted] 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

u/gnosys_ Jul 26 '21

the it's free real estate meme

2

u/tomjleo Jul 26 '21

Maintainability & Cost.

Maintainability:

  1. 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.

  2. 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:

  1. 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

u/[deleted] 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

u/[deleted] Jul 26 '21

because its the best kernel humanity has so far

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

u/Zipdox Jul 26 '21

Stable

Free

Secure

Package manager

No bloat, low overhead

Simple

1

u/Snir17 Jul 26 '21

More secure, more control over the server, more flexiable

1

u/[deleted] 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

u/[deleted] Jul 26 '21 edited Jul 26 '21

I'm no expert, but I can think of two main reasons:

  1. 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.

  2. 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.

  3. 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

u/[deleted] Jul 26 '21
  1. 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.

  2. It's open source. That means that any provider can ship their custom kernel that allows better management of their infrastructure for example.

  3. 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.

  4. Higher hypothetical security. Because it's open source, you can hire auditors to audit packages, and install only code that was approved to run.

  5. 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

u/[deleted] 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

u/[deleted] 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

u/wurmphlegm Jul 26 '21

No overhead.

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

u/[deleted] 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:

  1. Right time (Linux popped up coincidentally just as BSD was having legal issues, giving them a bad name at the time);

  2. 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);

  3. 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

u/[deleted] 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

u/[deleted] 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

u/rakminiov Jul 26 '21

free

security

light

1

u/[deleted] Jul 26 '21

Why would a server OS need a graphical interface???

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

u/drman769 Jul 26 '21

STABILITY

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

u/[deleted] 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

u/almighty_nsa Jul 26 '21

Unhackable unless administrated wrongly.

-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

u/SevenxWasly Jul 26 '21

the only reason: Free of charge and open source.

0

u/[deleted] 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.

https://docs.ansible.com/ansible/2.3/intro_windows.html#reminder-you-must-have-a-linux-control-machine

0

u/[deleted] 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

u/[deleted] Jul 26 '21 edited Jul 27 '21

[removed] — view removed comment

1

u/[deleted] 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.