On servers, what Linux distribution can I use?

As an area specialist, it is a frequently asked question. The why? The publication can become somewhat ambiguous when looking for an answer, the truth is that everyone has their own opinion and experience on the subject. You will see some of how they defend issues such as security, availability, manageability, compatibility, support, efficiency, effectiveness, among other things.

I am here to simplify your life.

Ok think for a moment resources vs cost, you find yourself in a monetary dilemma. As a specialist in the area, you could tell me that this is not your problem because you simply did not study economics, much less do you keep company accounting. But that is your first mistake, although it is not your field, you are directly affected, because a server is not economical, much less maintaining it and supporting the hardware, in addition to each mb of ram, each gb of disk, each mhz of CPU and each watt it consumes represents a cost for the company, and you have to justify it in some way.

  • My first recommendation is to avoid wasting resources as much as possible, so do not install unnecessary services, and uninstall services that come by default and you will never use.

Ok now the end "efficiency", the eternal dilemma for which they constantly criticize us, that if we do something, they criticize us because we did not do it in the best way.

  • My second recommendation will be and it is until today (when I publish this post)
  1. Gentoo based on your ability, your knowledge and experience in the field, for those who are experts, they have the time and dedication to build something custom.
  2. Debian for those looking for a stable, highly compatible, practical, fast and safe system.

Now Gentoo vs Debian, well I wouldn't put both of them in a ring, it would be like that paradox «What would happen if an unstoppable force collided with an immovable object? " for me Debian is that unstoppable force, and Gentoo is the immovable object.

gentoo-logo-transparent

Gentoo: You can be sure that you compiled a system to your measure, with the necessary modules to make your hardware and applications work correctly, I support these systems in topics and scenarios such as external services, static production environments, extreme security, those that every iota of resource bill. (download here). I would place a score of 4.8 on a scale of 1 al 5 (well nothing is perfect, don't judge me). And if you ask me worth it?, look The day you master this distro, create production environments and mold your ideas with this operating system to make them come true, you will return to this post to thank me.

It has its cons, first requires knowledge. (point) If I write it explicitly because there is always that laboratory nerd who will say that it is a piece of cake, no, for those who are starting it will be an arduous task, those who come from precompiled environments it will be somewhat complicated and for those who come from linux-style windows like ubuntu maybe they should think twice.

Something very common in free software that is supported or not by communities, with collaborative developments, are security patches, which are often half solutions and tend to be followed, so you will have to be compiling and consuming resources every time you go. to upgrade a package. Nor is it that Gentoo stayed in the stone age, everything is through simple commands, "emerge" handles binary packages and source (sources), but the truth is that the process behind this command is to compile and this takes time and consumes resources.

At this point I will not talk more about the subject, since a writer of this same blog made a very good article "Gentoo the truth behind the myth"

debian-logo

debbian: my favoriteIf so, I gave you the previous speech and now I say that this is my favorite, be patient and read on. Stability, support and compatibility are only 3 of the features you will see when you use it. Debian is in my personal opinion something like the pimp, the pimp, in this world of servers and free software, it is stable, easy to manage, easy to adapt to almost all types of existing architecture (new or obsolete), it is supported by amounts, wiki, communities, forums, companies (paid), you can support yourself from other forums and supports such as ubuntu, linux-mint, etc ... I would place a score of 4.5 on a scale of 1 al 5

Now I explained to you previously that everything has its place and its time. "It all depends". On a server, you are not going to install Debian gnome or Debian kde, NO! You are going to install net-install a micro distribution(download here), with the most essential to boot your hardware, where probably during the installation you will have to load some missing firmware through an external medium (pendrive for example), but you will be sure that you have an installation adjusted to your hardware.

Applications like web server, framworks, file server, print server, mail server, proxy's, instant messaging, firewalls, routers, and the list goes on and on, are available from here with a single apt-get or aptitude command.

EMPHASIS FROM HERE ON

Popular environments like virtualization with xen, qemu and kvm, the very popular OpenStack, among others, they are fully compatible and above all easier to configure.

Simple, right now as a server administrator, engineer or technician, you have to be at the forefront, for now this is the future "Virtualization", "Cloud", manage resources remotely and squeeze every last drop from a server, turning it into 50 or more virtual servers.

They ask you for a server with certain characteristics, disk space, ram memory, processors, operating system, etc. 5 minutes later you already created the server, in a friendly and reliable environment called Debian. Then they tell you that the application is extremely securethat you practically throw away the key to that lock once you close that door, you you come and install Gentoo on your virtual machine.

They will call you 50 years later to shut down those servers because they are still working.

Well guys and here I open another door for a future post, Virtualization. As always any question, I await your comments or messages.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   pancho said

    Comment to part in 10 years working with servers.
    Centos have never given me a problem.
    Debian 2 down (Both on debian 5).
    Gentoo the next step
    Centos / Debian ratio at start 50/50 now 70/30

    1.    brodydalle said

      Thanks for your comment. For my part, I am very glad that you use CentOS linux, I have tried it in the past and I liked it, I would like you to write me your experience with CentOS and your Debian removals to my email to make a review on the subject and help me enrich more to our readers ... Following, as I wrote in the post, it is a suggestion for my professional and personal opinion, the post is titled "I can", it is not an obligation.

  2.   Tiles said

    I have the concern of installing Gentoo on an old computer that I have, the problem is that whenever I have tried it for some reason it does not work. I want to make the leap from Arch to Gentoo

    1.    brodydalle said

      Hahaha, you are not the first nor will you be the last to try and fail with Gentoo. But do not be discouraged enter here https://wiki.gentoo.org/wiki/Handbook:Main_Page/es select the architecture of your computer and follow the step by step guide. There are 11 steps more or less, I recommend you start with a virtual machine in your file, relaxed, with patience, a coffee and cookies, write down each successful step (in case you get tired and leave it for another day). Once it is a success, repeat the process at least 3 times. I promise to make a guide on how to install Gentoo for x86 and x86_64 environments

    2.    FreeBSDDICK. said

      I use gentoo on computers like pentium III and powerpc without problems ..!

  3.   Alberto Cardona said

    Wow, this blog surprises me more and more.

    Excellent article

    1.    brodydalle said

      Thank you, follow this blog closely

  4.   mexicanjuaker said

    & CentOS, Fedora, RedHat, Bugbuntu, Oracle ???

    They were missing, hehehe

    1.    brodydalle said

      Thank you for your participation, write to my email about your personal experience in production environments with those distributions, well although basically they all come from RedHat, but I admit that I have never seen a server with a fedora, aaaaah geez. Well on RedHat I already have a post planned soon. And let's not talk about Bugbutu for now XD

  5.   Victor said

    I vote in favor for that post \ guide to install gentoo ... I've installed arch for about 3 years and it's still like new there ... But it would be nice to install gentoo on another machine

    1.    Juan Pedro said

      In the wiki are all the steps to install it.

  6.   Jose Viera said

    My favorite on servers: CentOS

    Lightweight, stable, secure and based on RedHat, the company that contributes the most to the linux kernel.

    Regards!

    1.    brodydalle said

      Thank you for your comment, I hope more details in my email. Soon I will do a review on RedHat and derivatives in production environments.

  7.   Rodrigo said

    First of all, thank you very much for sharing your knowledge. I receive them wonderfully.

    I came to the blog because I was looking for information for what they have asked me to do: build a server (now I know that Debian is going to have). I have a thousand doubts, so if possible I would like you to guide me a bit with a couple of suggestions before shopping.
    Moodle must be running on the computer and the idea is (except for the best suggestion) to set up a computer that supports a virtualization environment.

    That is why I think of a team with these characteristics:
    - i7 processor
    - Memory: 32 GB (just in case)
    - Source: 600w

    -Disk:
    I have to prepare it to work in raid with at least 2 disks of 2 TB (or more). First doubt:
    Which raid controller card is best for Debian compatibility? or I can buy any generic.

    -Net:
    Do you need to have multiple network cards? because I would like to run multiple moodle servers on the same machine.

    The last thing, what virtualization environment do you recommend that is simple and stable.

    Thanks a million in advance and please always continue with the blog.

    1.    brodydalle said

      Bueeeeh that of "generic", you would have to give me more details, in my personal experience all the controllers raid aacraid (adaptec) and hpsa (hp) work (it is the most common in my country), also the dell megaraid. But don't believe me, go to this page and cheat with your eyes https://wiki.debian.org/LinuxRaidForAdmins .

      The virtualization issue is to better manage resources, it is clear that you could get 100 moodle servers through the same network interface, but you would have a bottleneck. You have to evaluate the amount of traffic you intend to receive.

      I believe that these two terms do not go hand in hand in terms of free virtualization, virtualbox is simple (although it is not very practical) but it does its job. Relatively simple is kvm and qemu. A little more level and without graphical interface or you have to install an additional xen gui.

  8.   nameless said

    In Server CentOS / Rhel & freeBSD there is no more!

    I still don't see the grace to gentoo, is it because they want to excel after using Arch some of them go to Gentoo?

    I have installed it and I still do not see the difficulty of the installation, on the contrary I feel that it is the system that has made me lose the most time, in the linux world, are we going to take more than 7 hours in an installation with an i7? and also update once a month and take 8 hours? thanks but that thing does not go with me. I need something quick not a turtle when installing something. (ahhh but you have the binaries, ahhh but maybe you don't have the flags configured properly, ahhh but this portage ahhhh ……… ..) and that of speed is objective Arch it takes me 8 seconds to be in the browser since that part, gento it took 15-20. Therefore speed is subjective.

    Of the failed servers that I have seen, I never saw a CentOS with problems, the problems are in Debian and Ubuntu.

    1.    mario said

      But do you speak as a user or owner of a server or a desktop computer? Stage3 is already precompiled, you just have to compile the custom kernel, grub, and the utilities you need. When did 7 o'clock and 90 degrees go? I hope it's not compiling Gnome and its horror library: libwebkitgtk

      Why do you mention Arch and browser when this note is about servers?

      1.    nameless said

        I have a server with centos kvm, lvm, running some virtual machines, if I apologize for not expressing myself about gentoo, I was talking about desktop and yes, it was with gnome, which is the environment I use. Arch tbm works for servers, even a friend has virtual machines running on arch although I wouldn't use it for server.

    2.    brodydalle said

      I'm not a big fan of ubuntu XD ... it's not because it's bad, I think it has done an excellent job like linux mint bringing linux to everyone, but because my job is servers ...

      I think I have created a bit of controversy, I learned with the debian branch, many of you who write learned with RedHat. ClearOS is not bad, I have tried it myself and I liked it, we will make a post about clearOS on servers hahaha.

      Regarding Gentoo, WOW 7 hours on servers? and with virtualization? What service did you think to install that could take you 7 hours? I think you are talking about a very specific case of a desktop pc.

      1.    nameless said

        I wouldn't use ubuntu on server even though it includes apparmor. I prefer SElinux, I learned with red hat before I was enterprise, maybe that's why I only use rhel and centos xD, with debian my relationship has never been good but that's another story. The gentoo thing was on my personal pc, I lasted 6 months then I went back to arch. Even so I feel that you should have included Rhel and its derivatives, on the internet there are some rather sandy threads between whether Rhel or Debian xD is better, ahhh the other thing is that freeBSD tbm is a good option but well this was only from linux distros.
        Regards!

  9.   Juan Pedro said

    I see that you do not have the philosophy of a pre-compiled binary to compile it for your hardware. Security, better used hardware resources etc.

    1.    nameless said

      The time I had gentoo not notice any difference in values ​​of speed vs arch. And if I understand that of "compiling for your system" but as I said I found no difference in speed. On the other hand, I don't have time to compile everything. Still I try to understand those who use gentoo but in my case I did not obviate any benefit, on the contrary I had to observe how my CPU rose to temperatures even at 90C °, so thanks but I passed that.

  10.   Juan said

    Congratulations!
    Very good quality of the latest articles

    1.    brodydalle said

      thanks, follow me here

  11.   Tenchy said

    I really liked the post (new here) by those who ask about virtualization at the server level, I would recommend proxmox, very easy to install, just complex to set up clusters and failover environments, but nothing special. Use qemu (kvm) to virtualize machines and openvz to virtualize linux environments.

    Fully recommended greetings

  12.   tabris said

    CoreOS, docker, profit.

  13.   J.Gelbes said

    For what they intend using Gentoo, I go for FreeBSD + Pudriere + Pkg, because it does not seem appropriate to compile on a server, it is a waste of resources in an environment in which availability must be 100%. At the other end, CentOS, then Debian.

    1.    brodydalle said

      bueeeeeeh I think I explain just that, that I do not find it useful to place gentoo on a server but on a virtual machine for a specific service ... I think that you are not going to update the Apache server of your company's website daily, you will one day Stop after testing the update on a quality (testing) or development server

      1.    J.Gelvez said

        I have said what is my opinion, if it is a server you have to approach 100% and zero failures. On the other hand friend, without the intention of arguing, a virtual machine that offers a service is exactly "a server", we are not going to allow the web service to stop being available for half an hour just because it is a VPS instead of a physical server , please.

  14.   Carlos Rodriguez said

    Hello everyone, I already read all your comments, I am looking for Linux to put as a server on a pc, and to be able to use a web system, records, reports, in a network, that you would recommend me, especially for, considering someone who he's like, wanting to learn. Greetings.

  15.   RAUL said

    Definitely CENTOS is the best in the server environment, in fact it is much better than Red Hat despite coming out of that distribution. CentOS being free substantially improved stability.

    regards

  16.   Lester Bolanos said

    I have some old PIV machines that I want to use as an e-learning server, with claroline, but I already tried with many linux distributions, ubunti 9.04 10.04, server, debian 8, 9 and I have not had a good result. The repositories can no longer be downloaded or it cannot find drivers, is there a linux version that can help me? I want to donate the servers to some schools….