177 points · by selmat · 9y ago · 318 comments
What are your experience with various linux distros as main OS? Which one is the best? How looks like your dev environment?
For me are important these points :
- Ability to run virtualized systems (Windows, other linux distros)
- Good battery management
All necessary dev tasks and experiments will be performed in virtualized systems.
Thanks
Even after all these years it's hard to beat apt-get. I think a lot of people dismiss Debian as unmodern or some how less than the distros built on it but that's hardly the case. Debian "testing" has all the latest software and yet is still very stable. Many people are scared away by the "testing" release but this is what Ubuntu and Mint are based off of.
I find Arch, Gentoo and many others to be a lot of work. I don't have time to spend fiddling around with the OS.
Don't get me started on Fedora/CentOS/RedHat. yum/rpm is just horrible if you've used nearly anything else. I think the only reason this OS family is still alive is because RedHat managed to sell so many copies to big corps and universities. I think people still use it mainly because they were exposed to it at school or work and don't know any better.
Why? You shouldn't rely on system files for development... you probably want a proper dev environment that can later be replicated into production or staging (eg. containerization, VMs, virtualenv, etc). Just stick with Ubuntu LTS releases, and enjoy the consistent updates (eg. security) and the massive support benefits (eg. forums) associated with running one of the most popular distros.
Personally, I love the consistent Ubuntu updates. Granted... I always switch to xfce for the desktop environment.
Because if you miss three releases then you have to do three upgrades. If you setup a system and then come back to it a couple of years later and find you need to upgrade you can plan on fighting through multiple system braking upgrades. Yes I know you can mitigate this with LTS but that's a big compromise.
Genuine question as a Ubuntu user, where do you win using Debian on a laptop? I totally understand using it on servers, as it is the definition of 'rock solid' and you can ensure that it will work 100% of the time.
Admittedly I don't pay a huge amount of attention to the differences, but isn't using Ubuntu LTS compromising in the same way as Debian stable? Specifically, packages are oriented for stability. Consequently, you don't get improvements to the kernel, or other packages you may use frequently. On my laptop, I don't want to use Kernel 3.6 that doesn't have the latest improvements to work with Intel processors, direct rendering management, and power saving. I don't particularly want to use quite outdated versions of GNOME either. Six months, to me, is a solid amount of time to sit on a release.
Some people suggest (misguidedly, according to Debian volunteers) using Unstable on a workstation / laptop, which caused my system to outright break entirely because I was using a Nvidia graphics card, so I just installed Ubuntu and it worked from first boot.
Using testing is sworn against by almost everybody, as it's the worst of both worlds - it's not stable and it's not fixed quickly.
Stable plus backports, suggested elsewhere in these comments, sounds nice only if you consider ensuring that water drains out of each hole in a colander equally an adequate use of your time. You then have what I'm fairly sure it's explicitly listed as "don't do this" on the DontBreakDebian[0] page.
wtf? who is actually incompetent enough to do something like this?
# ls -l /etc/httpd/
conf
conf.d
logs -> ../../var/log/httpd
modules -> ../../usr/lib/httpd/modules
run -> ../../var/run
Reactions: * Why is 'grep -r /etc' taking so long?
* Why am I seeing log entries in the output?
* Why am I seeing 'permission denied' on a bunch of socket files?
Debian seems to have the most respect for the FHS. http://www.pathname.com/fhs/Nobody has the QA force Debian has.
I would say Fedora's dnf has it beat quite objectively, but to each their own.
You mean even though the slightest care was not given to reliability while coding it?
https://lists.fedoraproject.org/archives/list/devel@lists.fe...
If I have two scripts running in parallel which both wants to install packages, using apt will cause one of the scripts to fail, because apt is already locked.
dnf however will be just fine, because instead of failing it will just queue and wait for the lock to be released.
There's small things like that all over which to me, as an end user, makes relying on dnf feel much safer.
Your experience may support such a statement, but without any context it doesn't really help the question at hand. Sharing specific criticisms of rpm-based distributions or rpm package managers would go a lot further towards arguing why they would be a poor choice for a development laptop.
> I think the only reason this OS family is still alive is because RedHat managed to sell so many copies to big corps and universities. I think people still use it mainly because they were exposed to it at school or work and don't know any better.
Do you really think there are no situations where running Red Hat/CentOS or Fedora would be a suitable choice?
Fedora is IMO a great desktop distro, but for some reason consistently underrated in the wider community.
I agree, first install was boring and confusing. I installed it once and didn't touch it since then, haven't touched it for 6 years, it's still running. In fact that's the last time I installed an OS.
edit: I'm running Arch.
If you don't like fiddling with your OS once you get set up, then you should be using some sort of LTS distro like Ubuntu or perhaps a BSD. Things like debian, arch, and fedora require a modicum of maintenance (not much, but it's there). If you don't mind (or like!) fiddling, then a rolling release distro is best.
If you need a library that isn't in backports, just compile from source and install to /usr/local, it's not hard!
It's fine because I understand what Sid is about and this is to be expected, but I wouldn't suggest this to a naive user. And since Testing gets these changes in short order, I'd stay away from that as well if the user isn't comfortable fiddling.
So yes, stable + backports, unless you're comfortable with change/fiddling (same with any rolling distro).
Ever tried to install Debian on a Macbook without an Ethernet-to-USB cable? I take it not, because then you would know how completely retarded it is that you need a second USB stick with the broadcom-wl driver on it to do a proper install. Debian's 'free software' zealotry makes for a horrible UX.
Edit: and here come the 'free software' zealots. Keep downvoting, but everyone out of your echo chamber can see how rabidly sticking to ideology completely destroys usability.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-in...
I was really tired of not being able to find insightful content and discussions on so many other social networks and/or forums. Most of them are full of frivolousness, hatred, squable, swear, all that memes, gifs... etc. Then I came across HN, ~3 years ago. I am not a coder (trying to learn fundamentals on my own, though) and not so fluent in English either. Even though, it was (and is) like brilliant content filter - in terms of both news and comments. You cannot get a grip if you are not civil enough or if you are looking for some visual entertainments. You know, I guess it's all about text. You read. You get valuable information and knowledge from other readers'/writers' experiences. Text is not dead here on HN.
All in all, HN is like "The best content aggregator for humans, by humans".
This place does, however, have its limitations too. For reasons I cannot fathom, the community here absolutely _loves_ to nitpick. People will pick on the absolute nitty-gritty specifics of something some OP said and spend an inordinate amount of time splitting hairs.
For me Arch breaks extremely rarely. I use it for 7 years and remember no more than a couple of times it made me confused after an update. Most issues are covered in the wiki or newsfeed (like breaking changes).
If you need something Windows-like, you can try Ubuntu, sure. But once you need fresh drivers or recent libraries for development, you add third-party PPAs and the shitshow begins. The very idea of keeping old stable versions with just a few new ones that you really need leads to problems surprisingly hard to fix.
That said, if you're like me and prone to fits of 'mad science', you will find yourself breaking your OS from time to time. But I've yet to get myself into a situation I couldn't recover from, largely thanks the the excellent Arch wiki. The 'big jumps' (i.e. staged distro) leading to 'big breaks' can happen to Arch, mind you. It's not a distro you want to 'leave alone' for too long.
So I guess if you're going to use the machine daily, Arch should be fine. If we were talking about a server or something, or maybe a work laptop that would go unused for a few weeks from time to time, I'd probably suggest sticking with Ubuntu or the like. Trust me, I've attempted running Arch on my NAS and it was not very fun. Ubuntu/Debian is much better suited there.
I guess the other downside of Arch is that there's less official packaging for it (whereas there's an rpm and deb for everything, it seems). But I think the AUR more than makes up for that, and simplifies quite a lot of things that are complex to do on Ubuntu (e.g. compile FFmpeg with HW accel support, and with all the other fancy encoder dependencies etc.).
For those cases I use Kubuntu for destops and Ubuntu for servers, pick the current LTS release and install unattended-upgrades to ensure security updates get maintained.
But I could not imagine running Arch on a server. Each week I forget to update Arch it's like 1GB of updates a few of which are kernel related and need a reboot.
Yes, Manjaro has a small team and occasionally mess up the website, but don't let that stop you from trying the distro.
(Retired Core team member)
Updates break things. Often. Almost every time. And you don't notice until you need to use that broken thing. To install new things you may need to update whole system. And you break something completely different.
-PHP7 just released? Yes, we will replace your PHP5 and leave you in agony (compile from source, or wait for AUR and compile it too).
-Networkmanager GUI works with VLANS? Pfff, who uses VLANS, some bug will remove them for you. Use nmcli. Or roll back to older version. Oops, that depends on old library that can not be installed anymore, beacause everything now depends on newer version of that library.
-Wine drag&drop support works flawlessly in one version? Guess what won't work in next? And in next it's the clippoard.
-Prepare for the new world order, Chromium will now train you reading right to left by writing to input boxes backwards randomly.
I still use Arch daily because I've set it up the way I like it and don't want to waste more time trying to setup Debian/Fedora/Ubuntu...
I just wish there's some more testing before something so critical, like Python, is unleashed.
Also, you can try out the hot new stuff (e.g. Vulkan, or the recent stable Rust) without having to enable backports repos.
Edit: And you don't have to sacrifice stability. Arch is surprisingly stable. I run three servers on Arch without any issues.
ArchLinux: Great community but too many surprises when updating that sometimes break things or in one case left the OS unbootable. Fun to tinker with but if your livelihood depends on it, choose something more stable.
Fedora: good option but no LTS version
Debian: slow to upgrade and doesn't support newer hardware
Pros:
- It's stable
- Easy to replicate same environment on home/cloud machines
- Handles millions of request daily, just fine
- Almost all popular s/w packages are easily available
Cons:
- Some advanced manufacturer specific laptop features/drivers don't work out of the box
- No real complaints. I'm getting great value for no money.
> slow to upgrade
More or less the same as Ubuntu LTS, ~2 years.
> and doesn't support newer hardware
Enable non-free, install firmwares and now they're almost equal in terms of hardware support (which one has newer kernel depends on the year). For support comparable to HWE stack kernels use the kernel from backports repository and now Debian probably has even better hw support because backports kernel is updated every ~3 months following mainline, while Ubuntu follows latest non-LTS Ubuntu kernel, thus every 6 months).
It's been more than a decade these claims aren't true anymore. Please stop repeating the same old myths.
If you need the very latest packages (although Ubuntu has PPA), or are developing for Linux itself, or want to know whether system components are all FLOSS, another distro might be better. For ease of setup and maintenance and stability, Ubuntu is good.
zzzzzzzz
This is said so often it's not even fun anymore. Debian stable is made for servers, for stuff that's not going to move for ten years and is supposed to be up 99.9999% of the time. Run testing and your problems are solved. Recent hardware is supported, relatively recent versions of all software are in the repositories, depending on the maintainer. Or run unstable if you're feeling adventurous
Seriously, install apt-listbugs and apt-listchanges. Unstable is not that adventurous.
E.g. Debian stable comes with kernel 3.16, but 4.8 is available as an official backport, should you need the (almost) latest and greatest. Just add backports to sources.list && apt update && apt -t jessie-backports install linux-image-amd64.
> Moreover, I prefer to develop on the same OS I deploy to.
Me too, but I use containers (Docker) or VMs to achieve this.
In the end it comes down to Ubuntu provides me with a better abstraction layer for support and problem solving over the top of Linux than the alternatives I've seen.
[1]: Edit. As that sort of interface goes, I think Unity is better than many, but it took some time fooling with it enough to be familiar to reach that opinion.
Mind you, if I don't get answers I normally end up looking at the Arch documentation, which is phenomenal.
I once went into an epic fight trying to make it so my normal user was able configure the network through network manager. Presumably someone out there must understand all that policykit and related project stuff really well, so well that nobody seems to feel the need to even remotely document it. (At least at the time.) I never did win; I just ran the nm-applet as root via sudo. With the way I'm doing now, it just works correctly, which seems to be the only way to get that stuff working at all.
RH has a big virtualization focus, and Fedora is their development playgroond, so if you're planning on using KVM for virtualization, it's very easy to get going.
However, if you use VMWare, sometimes VMware won't support the newest kernels immediately which can cause problems since Fedora upgrades quite frequently.
Others have mentioned trouble updating with Fedora, but I upgraded from F16-F24 on my desktop fine. I finally decided to do a clean install to F25 on my desktop just to switch to a UEFI boot. F24->F25 worked perfectly fine on my laptop (and the upgrade experience has gotten better and better). Either way, as long as you put /home (and, maybe /opt, /usr/local and /var) on their own partitions, doing a clean install is no big deal.
It seems many people had bad experiences with yum/rpm in the past, but dnf is much faster and I think people usually run into problems when mixing non-compatible repositories.
This is due to university lock in. RedHat convinced a lot of institutions that they were better off paying for Linux. I think a lot of the establishment couldn't use free software because they had no procedure in place for doing so. Often buying a RedHat support agreement was the most palatable or even only way to get on the Linux bandwagon.
Around the time RedHat stopped supporting desktop RedHat and spawned Fedora they turned their focus towards selling contracts and creating so called enterprise features such as remote management which appealed to institutional IT teams, to the detriment of the desktop user.
RedHat has made a lot of money this way but they lost their position as the dominant Linux distro because the hackers whom RedHat originally catered to moved on to distros which paid then more attention.
But yeah, for some reason, on our servers, it seems to work solid, but here it's not very liked as dev distro.
1. Gets out of your way really fast - very little config and setup to do.
2. Clean UI - very macOS inspired, so they try and get rid of everything unnecessary. To the point where it doesn't feel like a normal Linux distro with knobs all over the place.
3. Excellent built in terminal - can't stress this enough - the built in Terminal on Ubuntu is very barebones - the Elementary terminal feels really polished and had everything I wanted coming over from macOS.
4. HiDpi support - you haven't mentioned what you monitor is, but Elementary handles retina and 4K displays well straight out of the box.
5. Ubuntu based, so pretty much everything that works there works here, apt is available for everything you need to install.
But not having windows menus in any application or contextual menus in the default video player is way too minimalistic for me.
Also, installing and using Chrome instead of the default browser results in three icons in the dock.
Now my laptop can run 64bits and has 8GB of RAM, so standard Ubuntu (and having menus) is a much better choice.
- All modern distros can run virtualized systems. You just need to install your favorite virtualization software (VirtualBox, qemu, VMWare, etc.).
- No distros have good battery management, at least not really on par with Windows, and certainly not on par with macOS. This is just the unfortunate state of affairs with the Linux kernel. Some of it is due to lack of focus on improving that aspect, and much of it is due to the difficulty of programming power management modes for various bits of hardware (a decent amount of this stuff isn't well-documented, or documented at all, depending on manufacturer). Using "powertop" (on any distro) can help you figure out the things that are eating into your battery and can help you reduce usage. TLP, a set of tools for configuring your system better for longer battery life, can also help, and should be available on most if not all distros.
Personally I run Debian (stretch) as on my main dev laptop, and it's been working well for me for years (well, jessie before stretch existed). I used to run Gentoo years ago, but got tired of long compile times. The flexibility of compiling or not compiling certain features into software just turned out not to be all that useful for me.
I've owned laptops in the past that actually get better battery life under linux than windows. My current laptop is a $189 Acer Cloudbook. It gets ~ 10hours with the backlight set low. I accidentally left it on overnight (backlight off, no web browser) and it was at 20% > 10 hours later. The only power tuning is "sudo powertop --auto-tune". I run evilwm (so, not some heavy desktop environment like unity).
(Web browsing is painfully slow without noscript; I use it for light C++ and VNC)
Similarly, compiling flexibility didn't prove like important feature for myself also. It allows you to slim down package installations or compile them with different optimization flags, but in most cases you don't gain much by using them:
- smaller package installation (by turning off features not commonly used) in the time where disk is cheap and OS is not the biggest consumer of the disk space
- have marginally improved performance if you know when it's safe to crank up compiler flags (better leave this decision to package maintainers)
- have debugger symbols built in - if you happen to ever need to do this, doing it for the binary package is not that difficult; you shouldn't have source distro just for this use-case
Gentoo deffinitely excels in providing you with concrete reasons to deepen your Linux knowledge if you have it as a distro on your main machine, which can be both pro and con.
Most users will probably never need to do this, but I find it invaluable.
I maintain my own patches for dozens of packages in order to fix quirks/WONTFIX bugs, add features that upstream refuse to touch, remove intrusive/unwanted features that piss me off, etc, and being able to do this without also having to maintain my own deb/rpm/<some other package format> makes it much less painful.
It's also nice for applying emergency security fixes without waiting for your distro to pick them up.
For battery life, I get Windows like battery life out of my laptops using powertop/tlp but mostly by swapping out the window manager for i3. I3 is very efficient. Not only to work with but also for the battery; it literally makes hours of difference on my Thinkpad X2x0 systems.
I read about Archlinux here a lot and I will try it some time in the future, but if you don't need the latest, cutting edge linux related software, you are fine with Ubuntu (which, compared to Debian, is already quite cutting edge). I say Linux related, because many tools web devs etc use have no apt-get package or have a package you don't want anyway. So that's not related to the OS installation then anyway.
The preposition of always up to date would be great if that wouldn't mean that your PC doesn't work properly most of the time due to some new bug or incompatibility.
We've run Arch on embedded PCs (arm) due to out of the box docker support, but after updating a year later we've literally were unable to deploy Docker containers. There was a bug in the kernel, and no amount of hacking, upgrading or downgrading made it work.
Luckily we had a sdcard snapshot a year old.
I suggest Ubuntu or Debian, they got good docs, good support and generally a positive community.
As far as windows managers go - pick what you like. Gnome looks slick, xbuntu is my go-to for Chromebooks and default isn't too bad.
A lot of devs in our company go for tiling desktop managers - i3, awm....
You are talking about a non official Arch project (Arch Linux ARM) as it was an official derivative of Arch. It is not.
> The preposition of always up to date would be great if that wouldn't mean that your PC doesn't work properly most of the time due to some new bug or incompatibility.
I haven't found this to be the case at all, quite the opposite, I've run stable Arch systems for years, even done large upgrades like the switch to systemd without an issue.
If you want a developer laptop you want modern hardware. If you want to run modern hardware you want a modern kernel.
In your case (since your hardware is a little old), you might not care about support from recent kernels but still want modern compilers, toolchains, etc available to you.
You also probably don't want it to break every 6 months when you have to system upgrade. Rolling release is the best.
In 9 years running Arch, I have never ever experienced the need to downgrade my kernel after an upgrade, and only once had to downgrade a package (ghc). I key point was always to run hardware that needs no drivers aside from those coming with vanilla kernels.
Quite on the contrary, I love getting new versions of things quickly as this means new features and bugfixes come to me ASAP.
With that said, I am considering to migrate to NixOS or GuixSD (currently toying with 2 virtual machines). I find Arch to be a great imperative distro, but functional ones are simply superior. Declarative system configuration, declarative package recipes, and the ability to install multiple versions of the same package is key if you have a complex setup (e.g. doing deep learning).
I've been eying NixOS, but haven't heard of GuixSD. I'll look into it, would be interested to hear your comparison.
The main downside to NixOS seems to be package availability. I get the impression that you spend a lot of time repackaging things for it because the coverage isn't there yet.
GuixSD is a GNU version of NixOS, running on Guix package manager. Extremely neat, as it's written in Guile Scheme. They have most basic things packaged. Also, derivations are compatible with Nix ones, so you can use any Nix channel.
That made me laugh. Yesterday, when I updated Arch, it included new python 3.6 which not only broke half-a-dozen packages but it also disabled my DE.
Arch breaks way more often than any other distro I've ever used.
Just last month a kernel update rendered my arch laptop unbootable. I had to boot from a live USB drive, revert the kernel, and temporarily blacklist the package from upgrading. What I love about arch is the community, and that awesome wiki.
Can you tell me more about what an imperative and functional distro is?
With a functional system you describe what kind of system you would like and it gets built for you. See https://nixos.org/nixos/about.html
If you're looking for a MacOS replacement, Ubuntu might be a quicker path to just get things going. It mostly just works, and when it doesn't, there are lots of good resources to get you going again. There are a lot of developers on Ubuntu so a lot of package development happens there first.
In my experience, Arch has been more solid than Ubuntu, but I like to heavily customize my laptop. If a default Ubuntu (or Xubuntu, Lubuntu, etc) desktop environment works for you, it might be more stable.
For the first installation, there are way more things to do though than with your typical Ubuntu installation. People complaining about fonts should know, that in AUR there are font setups with the Ubuntu patches and the results are awesome. Why these are not in the mainline I don't know. I guess it has something to do with patents...
Installers are brittle. They don't always fit every case you give to them. That's why vanilla Arch lacks an installer, because chances are you're smarter than a shell script. No matter what crazy, inane setup you might be facing, Arch can tolerate it. Specifically because it doesn't have an installer.
(I once dual-booted Mac OS and Arch, with a shared /home partition. It totally worked and was a lot of fun.)
With vanilla Arch, since you're the one who brought up the system, you know exactly what you put in and why. If something breaks, you are better able to fix it. Because it's no longer magic. You did it yourself, after all. You can at least identify the parts of the system that are wrong, if not being able to outright fix them.
And since setting up the system means learning how to use the wiki and IRC channel, for most people, you already know the support network to fall back on.
Arch's installation procedure doesn't just prepare the computer for booting Arch. It also prepares you for using Arch.
If you're using Antergos et al. there's no shame in it, but you're seriously missing out on a very interesting experience.
Interesting! What caveats did you experience? Did you end up symlinking stuff like ~/.firefox to ~/Library/Application Support/Firefox?
I usually test distros in a VM instead of installing them on bare metal. So far I have not found a distro specifically tailored to development though, and the question really should be what tools are best for development?
In that case, Emacs/Vim[2] would be a good start, and being able to develop without an Internet connection helps harden your coding ability too as you're not so reliant on the solutions of others. Go for one day of coding without Stack Overflow/Google and see how you fare.
[2]: https://stackoverflow.com/questions/1430164/differences-betw...
Another place to check out different OS's is distrowatch[3]. Its interface is a definitely a bit too busy, which can make navigation a pain, but it's constantly kept up to date and has fairly detailed information about each OS.
[1]: http://livecdlist.com/dragonfly-bsd/ [2]: https://www.dragonflybsd.org/release46/ [3]: https://distrowatch.org/
it also helps that Fedora is pushing the edge with newer tech like wayland, etc.
its polished, dont have to muck about with complex howto. just pop the bootable usb drive and you're done in 5 mins.
Brilliant experience.
I also find dnf/yum a lot simpler to use than the apt-* ecosystem.
I spent many years jumping around Debian and its derivatives but then I found Arch and it just felt right. I love the package manager and the fact I can control what I have installed. With a 9 cell Thinkpad battery and some cleaver settings I can last all day.
I have to admit that these days I tend to run from Antergos which is a great Arch derivative but that is mainly because of a lack of time and a need to get stuff done. Also from years of installing and running standard Arch I can tweak things very quickly from Pacman.
- Pacman is a great package manager (esp. when compared to e.g. ´yum´).
- The Arch User Repository (https://aur.archlinux.org/) has a large list of additional packages maintained by the community.
- The PKGBUILD format used by the AUR is easy to read and essentially just generates Pacman packages you can install alongside packages from the Arch repo.
- PKGBUILD also makes it really easy to create a package for some obscure software yourself (or e.g. a specific font), if necessary.
- There are tools that create PKGBUILD packages from language repos like gem, npm or pypi (via pip). Those are really useful since they prevent language based packages from clashing with pacman.
In addition, I really like that arch is built with choice in mind: There's no default "way to go" - you can e.g. choose from several desktop environments without having to install a specific one first, meaning you can configure your system from the ground up.
I think Slackware and Gentoo work similarly? (I've personally never tried them)
This allows for a great number of AUR packages (the ones ending with "-git", "-hg" or the like) that essentially download/compile a bleeding edge version from the according source versioning repo (e.g. on Github). If they're correctly set up, the system will recognize them as a replacement for another package, that might even be in the main system repos.
Gentoo is a whole other ballgame, and its packaging system is much closer to a modern-day BSD-style ports tree.
As for the starting environment, Slackware actually takes the opposite approach from Arch: the installer defaults to installing all package sets available, which in the case of the install DVD includes KDE, Xfce, a bunch of other window managers, and a whole lot more. You're of course free to deselect the package sets you don't want (or even individually deselect packages), but Slackware's approach is definitely to start the user off with a fully functional system rather than expect the user to set things up from the bottom up.
Gentoo's somewhere in between those two extremes, at least as far as I remember from last time I installed Gentoo.
´sudo pacman -Syy´ to update the package db
´sudo pacman -Suy´ to update all packages
´sudo pacman -S package´ to install/update a specific pakage
´sudo pacman -U package.pkg.tar.xz´ to install a package from a local file (useful if you're using makepkg)
Those are usually enough to maintain my system. I'll have to hit the wiki for the various query options though. But if the CLI side of pacman bothers you, I'd suggest defining aliases in your shell's RC. I track my dotfiles using git and share them on all my machines, and this method works quite well for me...
$ pacman -Qs package
And yeah, this is exactly how it works. Once you learn a bit about how pacman works, it all connects, same thing as vim.
Useful if you have to jump distro's when you surely have your commands aliased.
I would recommend having root FS on ZFS or other filesystem with snapshots. Take a snapshot before or after running a full system update with pacman.
Another aspect I dislike about Arch is that package binaries get removed very soon - it's not an option to not keep it constantly up to date.
That said, it's still my favorite distro.
From that perspective, what works in Arch's favor is that fixing it is usually more straightforward than other distros. I remember spending a saturday afternoon trying to uninstall the proprietary ATI graphics driver from an Ubuntu machine - only to find out (after much googling) that you need to set a very obscure, barely documented environment variable before the attempt.
With Arch, the benefit of installing it manually is that fixing the system works pretty much the same - you just skip a couple of steps (partitioning etc).
Also, I found the Arch and Gentoo Wikis to be very useful for those attempts, regardless of the distro I actually tried to repair.
On a related note: On Arch, I stopped breaking things through updates after I subscribed to their main news feed (https://www.archlinux.org/feeds/news/) - pretty much every breaking change is announced and explained properly there.
So this was an Arch-specific issue that could have been mitigated with ZFS snapshots. E.g. Gentoo does consistency checks of dynamic libs, and other systems don't allow you to make such upgrades.
I had something critical happen to me twice in one year and both times it would have been avoidable with an earlier snapshot of the rootfs. I will definitely do that next time I re-format a disk.
If you do actually need to develop for Linux, I would suggest something with a rolling release model, otherwise it won't be long before you'll need to start compiling things from source because you need a more recent version of <something> than your distro is packaging.
"Rolling release" means that there is no Arch Linux 1, 2, 3 and so on, as in Fedora's case. Arch periodically releases an install image, which you use to bootstrap your system, but the latest tested version of every package is what's available in the package repository, for everyone, and as soon as a newer version is packaged, you can install it. This seems to be the best way to guarantee that you get the latest packages and the most stable system that you can get with them (spoiler alert: it's not that stable, but not disastrously unstable, either; I've ran rolling release distros on my laptop for years).
Arch is an usual recommendation in this case. Red Hat Enterprise Beta, uh, I mean, Fedora, is also a good choice -- it's not a rolling release, but it regularly ships with very recent packages. It's also a testbed for new technologies, and does have the advantage that you get a fully setup (and generally mostly working) system from the beginning.
If you're a more experienced user, you might want to have a look at Gentoo and Void Linux.
It depends on your requirements. If you constantly find yourself needing the latest and greatest upstream software releases, then yes, use a rolling release. But if not, rolling releases can make your life much more painful. If you're not paying attention when you update your system, then each update is a roll of the dice as to whether your software will still build or run afterwards, as any update could introduce incompatible changes to packages your software depends on.
A distribution with a release model (usually) tries to maintain API and ABI compatibility for the duration of a release, so you can update with more confidence that it you won't have to re-build or port your code as a result.
There's trade-offs between stability and shininess across the spectrum of distributions with rolling releases, with frequent releases, and with long release cycles. As long as you're aware of that, you can decide for yourself how frequently you want updates, and therefore the type of distribution you should run.
> Red Hat Enterprise Beta, uh, I mean, Fedora
I really wish people would stop making comments like this. I volunteer a significant amount of my free time and effort to improve Fedora, and I see a lot of others in the Fedora community doing the same. I can't speak for anyone else, but I'm doing it to make Fedora better, not to crowd-source Red Hat development for free. Fedora is a first-class distribution in its own right, with an open, inclusive, and independent community. Reducing it to a beta distribution for Red Hat glosses over that fact, which I find very unfortunate.
I didn't mean to imply that Fedora isn't a first-class distribution in its own right. In this post's context, I see why it would look that way, and I apologize for it. I don't mean to belittle the work you folks are doing, and I know that the Fedora project is more than just the distro, and that the distro itself is more than just Red Hat's testbed for new features.
I don't run Fedora on any of my home computers anymore. I ran it up to Core 3, I think, having ran Red Hat Linux before. But I've always "ran into" Fedora computers as part of my work and occasionally ran it on my company-issued laptop at $work. While Red Hat's presence can account for some of your stranger choices, it cannot be the only reason behind your success (and I honestly don't think it is).
The origin of my snarky comment is that to many of us outside the Fedora community, it often feels like a lot of things are finding their way into Fedora largely because they need more ample testing. The fact that they're so active and so pushy means that most of them are from Red Hat. I have very few fond memories about dealing with very early breakage from NetworkManager, PulseAudio, systemd and so on. All of them are now successful technologies, but they were not "ready" by any responsible use of the word when they were first included or enabled by default in Fedora. Wayland is, to some degree, an exception, but only because it has already seen wide enough deployment in the embedded/infotainment area that, for once, the desktop is not the earliest adopter.
This is one of the reasons why I recommended Fedora as a development distribution (my wording probably didn't really look like a recommendation, sorry!). At $work, I already work on Linux software; I don't want to deal with more Linux craziness at home, so I tend to stay way from bleeding edge stuff. But if you do need to keep in touch with what's happening in the Linux world, Fedora is the most stable way of doing it that's also reasonably low-maintenance (the second best option, IMHO, is Gentoo).
Staying up-to-date with all these changes is very important, IMHO. For better or for worse, very important pieces of a modern Linux system, like systemd and GTK, are making a lot of breaking changes in-between releases. Running a bleeding-edge system is about the only reasonable way of becoming "passively" acquainted with them, and is a great way of weeding out the subtle bugs that they introduce.
Part of why you see things working their way into the distribution quickly is because of the "first" foundation[1]. Fedora purposely does not wait for other distributions to do the hard work of integrating new technologies, which means they're often among the first to discover bugs in new technologies. That said, I think that these large integrations are getting smoother over time, as the community is putting a lot more effort into coordinating these large changes and instituting QA that has the teeth to block releases on bugs with flaky integration.
It's a great distribution for developers, especially if you're developing Linux packages. It's very easy to create your own local overlay and test your package changes against a system, without needing your own custom repo or VM.
I'm glad you mentioned Void too. I'm currently using that on my router.
I like how Void is systemd free and Gentoo makes it optional.
If you try building a Linux From Scratch (LFS), think of Gentoo as LFS with package management.
Not having systemd isn't such a big deal to me, but it helps. I had to learn it at $work a while ago so it doesn't baffle me anymore. I get why it's so appreciated by DevOps and software outsourcing companies, but it doesn't do anything I need. I can live with it (and I have), but it helps if I don't need to.
Gentoo is great, but with Linux land being the way it is lately, I wouldn't recommend it to anyone who's not very familiar with it. Asking someone to get a working system with Grub 2, xdg-* and the like using nothing but the Gentoo handbook and the Gentoo forum is more or less the equivalent of sending someone to fight World War II with a fork.
The manual partitioning also was quite cumbersome for me, even though I've done a lot of fdisk fiddling when I was younger. The main issue for me was the lack of clear documentation regarding this phase [1]. However, I took it as a "forced learning" opportunity and spend a day fiddling with it until I got it working, from which point onward it really is a fast and lean system to work with, very BSD-ish in style, that doesn't get in your way. I love it. My only alternative nowadays would be Manjaro-OpenRC.
[1]: If I remember correctly, you can screw up the rest of the partition management step if you select the incorrect "label type" (gpt or dos), with no clear way to revert your selection.
If you like or at least don't mind regularly tinkering with your system and have a preference for running the newest software, Arch is definitely your best bet. Depending on UX and ecosystem preferences, you could go with Antergos with a DE of your choice (personally, I prefer KDE, it's gotten much better over the last year or two), but there's a lot to be said for setting the whole thing up from scratch at least once. It really teaches you a lot, and will invariably be useful when something breaks. Battery management will be as good as you bother to make it, with some effort it's possible to come close to Win10 levels of battery life.
On the other hand, if you want something that just works out of the box and the last paragraph sounds annoying to you, don't get on the Arch bandwagon. Fedora (my preference) or Ubuntu are you best choices here, and I suggest trying both for a week.
And, of course, if all you care about is a thin base for VMs of your choice, all of this is completely off topic. If you want the newest kernels, Arch will be a bit more convenient, but ultimately distro choices don't matter much for this use case.
The benefit is that you can easily switch to a new distro or reinstall a completely hosed one with much less migration effort. That way, if you don't like the first thing you tried, there's no harm done.
There can still be issues here or there when Package 3.0 upgrades Package 2.0's dot directory irreversibly, but I haven't had much trouble; it happens that most of what I personally deeply care about are things like .emacs or .vimrc type files that don't work that way.
Of course, I still have Windows as my primary OS, if for no other reason than I'm too lazy to deal with the inevitable driver wrangling. (Caveat: PuTTY into an Arch VM is my dev environment.)
However, my laptop has an Intel video card. I'm sure with an AMD or nVidia video card, using Linux can be more problematic.
As is SUSE Linux Enterprise and openSUSE. People often forget about us.
To start, I'm not a sales person. I'm a developer. If you want a proper sales pitch, you can request one from www.suse.com. Also, if Ubuntu works better for you then that's what works for you -- I work with people from Canonical and RedHat on a daily basis, and I know they make good stuff just like us.
Longer history in enterprise deployments. PTFs and patches for packages are supported in zypper (not true for dpkg). Kernel live patches (no reboot kernel fixes) are supplied as packages. Very good integration with a wide variety of tools such as the Open Build Service (making your own appliances and packages), YaST (our manager for the system which is integrated into everything), snapper (snapshot before and after updates/upgrades/changes), SUSE Manager (allows management of many machines and configuration), and a bunch of other cool stuff.
Also (and this is honestly my fault for being bad at using computers), I've personally never had an Ubuntu install that has worked for more than 4 months.
One thing when using Arch, you won't get an out of the box experience and you will need to tweak almost every aspect of the system manually.
- Missing even a trivial step during installation (such as setting locale) can lead to quirky repercussions. The plus side is that getting your hands dirty during setup really familiarzes you with the system.
- Pacman (and Yaourt) is simply great and make updating, removing and filtering packages a breeze
- AUR (arch user repos) contain nearly every popular FOSS and non-FOSS software not provided officially. Installation and removal is painless with Yaourt. No more PPAs.
- Packages occasionally break. E.g. When libx265 is upgraded but VLC is not compiled against the latest version, resulting in the latter unable to play any media. These are usually fixed pretty quickly in the repos, or you can workaround with a bit of searching.
- Archwiki and the forums are some of the best resources to turn to when you eventually run into problems, and trust me you will
I started with Ubuntu, which technically seems to do fine; however I always ended up wanting/needing to use some current version of some dev software (up to date compiler or a newer Qt Creator for cross compilation for example).
To get those newer versions, I found myself having to rely on PPAs providing them as well as the necessary libraries, which ended up destroying a dist upgrade half a year later. That happened to me at least 2 times.
After that, I tried Fedora and had various problems from the start (maybe that's not the case anymore). Then I ended up with Arch, and have never looked back.
So, if you want to use up to date software, I'd recommend you to strongly consider a rolling release distro. The occational fixing of a single package is worth it over the loss of multiple days/much hair reconstructing your old dev environment on the next distro version any day of the week.
Arch however can be a pain if something does not work, if you want it easy just use a Ubuntu derivat (or Ubuntu if you like that fugly Desktop)
- Its stable while being very latest of packages. So I am done with distro upgrades which might break something between version changes.
- It has largest number of packages in repository https://en.wikipedia.org/wiki/Comparison_of_Linux_distributi... .
- YaST is great for everything to administer - NetworkManager, static network config, printers, kernel parameters, sysconfig, docker and what not. So I do not have to hop through different GUI's
- Hardware works out of box mostly (because I am on MacBook Pro)
- The community is vibrant, receptive and responsive. Till now I haven't seen anybody pushing an agenda of preferring one way over other (systemd would be another discussion). Most packages are as good as upstream with little branding change, which also can be changed with a package change from Yast (or zypper).
- Server, desktop, RaspberryPi (and variants) are supported from same base.
- OpenQA, OBS, Suse Studio and packman!
- Defaults set are good to go, but you can easily change them, for most packages and configurations in general. The distro doesn't stand in your way that you have to change something very basic for the distro itself.
IMHO after inside all distro's are same, since you still need to use bash, KDE/GNOME, systemd, NetworkManager, FFMPEG etc. unless you are rolling your own solution. They differ in what they pack as defaults, updates and administration tools provide, and what they consider as "best config" for your use case. openSUE seems to have a fail balance on these.
One good thing that can be said about it is that it has the most stable KDE packages of all KDE distros that are still left.
Other than that, it was the most unstable non-Microsoft OS I've ever used. Kept crashing on me all the time, updates broke stuff frequently. After the last update, it refused mounting my encrypted home partition for whatever reason.
From my experience, I'd recommend steering way clear of openSUSE if getting actual work done is a priority.
The only caveat is, use it if all hardware works right off the box (Eg: you don't need proprietary drivers for your display and suspend/resume works without twiddling etc...). If that's not the case, don't bother with fedora because you'll just end up fighting the hardware with every update.
fwiw, fedora has been my default OS for 10+ years now. My dev usually happens on the system (since I don't want to keep replicating my dev environment) and testing happens in containers and/or VMs. It's easier to spin up docker/lxc instances than VMs imho.
I've tried most(and then some) popular distros and the last 6 years I've settle on it.
It may be excellent as a distro, I really don't know. I am just thinking out loud here.
I have had nothing but trouble with Debian and its derivatives on my machine. In a VM they're fine, but on bare hardware they are a pure nightmare of dysfunction. Fedora was the first linux OS I was able to get going on my PC out of the box.
Arch is good too - i hear a lot for that. I might look into that for a VM, but i'd lean more towards something like Fedora for the hardware, so you don't need to muck around to get the basics going.
YMMV though, hardware can make/break a distro.
It's very actively developed though so sometimes kernel upgrades break propriety drivers, but that is extremely infrequent and is easy to fix.
* Best SElinux implementation if that sort of thing turns your clock.
* Latest gnome 3 and yearly new releases with even more recent desktop software.
* dnf, or yum as it was called, which from personal experience I think is very good. On par or better than apt/dpkg.
* Backing of RedHat, a huge Linux company that have proven their dedication to open source countless times and are one of the major contributors to the Linux kernel.
Exactly. You'll basically just need to experiment to find what suits you for the little things.
For me, it's Elementary OS, and before that, Slackware. When I finally started getting over my aversion to systemd I started using Elementary full time, and it's a great fit for me. The interface is superficially a near-clone of macOS, but in reality, only where it makes sense to do so. It's Ubuntu LTS based so it's got a solid foundation, and it has some great features for developers. The Terminal app is great, the built in visual text editor (Scratch) is good but not superb (it meets my needs but programmers will probably stick to what they're used to), and hardware support in my experience is, again, as good as Ubuntu. It also happens to have excellent laptop support, with ACPI and sleep/hibernate/resume usually working out of the box unless you have esoteric hardware.
Two downsides I've found: One, it can be a bit slow on underpowered hardware (but that's probably not an issue in your case), and two, it's not a rolling release which is a dealbreaker for some. If those are issues, Arch may be a better fit. I've found Antergos to be a beautiful, painless introduction to that distro.
An honorable mention is BunsenLabs, which was started by former users of Crunchbang Linux. It's almost pure Debian with a well-configured Openbox+Tint2+Compton theme and some really great defaults. It's as minimalist as you can get while still running a stacking WM and visual effects. Hardware support is slightly less robust than Ubuntu thanks to being Debian based, but I never had any issues with it except on one old Pentium M laptop that didn't support PAE kernels. They do offer a non-PAE installer for just that scenario (again, not a concern you'll have).
* Ubuntu. Works fine (I used kubuntu and xubuntu).
* Mint. Tried it and it seemed to work okay until I upgraded it one day and ran into issues that I think were related to the system having an identity crisis over who it really was (ubuntu or mint?).
* Fedora: had a few more driver issues than ubuntu but still worked okay for the most part.
* Debian: pain to set up and a lot of issues - there wasn't a bootable ISO I could find that would let me boot into a USB and test run the latest version with all of the (nonfree) drivers I needed.
* Arch: ran into more bugs than on ubuntu/fedora: the project maintainers don't do QA as effectively as ubuntu, debian and fedora. There seems to be a pervasive attitude that since its the distro where you get your hands dirty, that you should hand-fix a lot of bugs too. I tried manjaro as well because I wanted to try Arch and didn't want to configure every little thing until I saw this horrifying post and then ran far, far away: https://www.reddit.com/r/linux/comments/31yayt/manjaro_forgo...
* Gentoo: tried and failed to install firefox due to dependency issues and then gave up. Waste of time.
* Opensuse: tried and again got bogged down by the package manager crashing when trying to upgrade some pretty basic part of the system.
For me the decision comes down to comprehensive driver support out of the box and QA. Ubuntu still seems to be the best at those although Fedora isn't far behind. Arch has the most up to date packages which is nice but IMHO its instability caused me way too many headaches.
Does this help? https://fiendish.github.io/The-Debian-Gotham-Needs/
I'm not 100% satisfied with it, but the only problem I have that is actually fixed by another distro (Arch has more up to date packages) went hand in hand with more instability than I was willing to tolerate.
Also, anyone commenting here about their personal favorite will most likely comment on why that distro is their favorite, which should at least be enough for OP to inform himself further.
On the other hand, gentoo makes a great linux experience for those who would like to get more intimate knowledge of Linux internals, networking, etc. It's a great experience if you have time and will to get your hands dirty. The documentation is excellent IMHO and the community (forums) very helpful.
Very true; keep the time investment aspect in mind though. Gentoo is probably not what you want if things should just work out of the box right away with minimal tweaking and a minimal learning curve. Ubuntu (or perhaps Arch) is more friendly in that respect, and unless you have really outlandish hardware, it will have you sitting in a working desktop five minutes after you've plugged in a USB-drive with the installer.
Now to me stability is everything. I have shit to do and don't have time to fuck around with the system every two days (that's why I was on 14.04 in late 2016). But a friend of mine convinced me to invest some time, install Manjaro and learn the slightly different ecosystem. And I can say, it's been worth it. Fantastically stable, things work, and in the 3 months of usage I have yet to find a bug.
It worked flawlessly for me.
Now I wonder if I was lucky or you were unlucky.
Oh, and I live it: clean fresh KDE 5 built on a Ubuntu/debian base.
Can't remember installation settings but I know I have successfully used the Norwegian locale after installation.
PS Manjaro in my case has been installed not using GUI installer since I needed to go with a kind of complex LUKS/dm-crypt encrypting scenario and GUI doesn't support a complex configurations.
Fast and light, rock solid, many packages available, a lot of tutorials and documents on the 'net, and ltd is guaranteed to receive updates for three years on desktop and five years on servers (well, on server is Ubuntu).
Just works and doesn't get in the way.
If I need something else, qemu-kvm is awesome or docker.
* Chromium tends to be unresponsive after waking up from hibernation.
* VLC tends to hang and freeze.
That's not the stability and simplicity that I originally moved to Xubuntu for.
I'm considering changing to Ubuntu :(
I'm by no means a seasoned Linux veteran though so just explaining that YMMV.
They do have another version that is based on Debian directly, but I have never used it so can't say much about its upgrade paths.
Before I discuss specific distributions:
1) powertop is your friend for battery management
2) Pretty much all distros will let you run virtualbox and qemu-kvm so there's no real wrong choice for your use case.
A lot of people like Ubuntu, but I've had terrible luck with it. It somehow seems to be in the (for me) uncomfortable spot where it adopts certain things before they are ready for prime time while also having other things feel old compared to a rolling-release distro.
Debian "testing" tends to be more stable than Ubuntu and "unstable" more bleeding edge. If you want a middle ground between those two, give Ubuntu a try.
That being said, nearly 20 years of running linux has given me a strong bias for source based distributions. Rolling binary distributions (e.g. Arch) tend to have issues with DLLs, and release based binary distributions are often a pain to switch releases.
For non-laptops I use Gentoo, but you don't want to have to install or upgrade packages when not plugged in as you will be able to watch your battery usage go down in realtime.
My current laptop uses Nix, which is a source-based distribution with a binary caching system. I love Nix, but it's a small enough community that you are likely to find software for which no package exists; as a source based distribution, you can often write a package expression in a few minutes, and I've done that about 6 times in the past 6 months. It is a very non-FHS layout so a ./configure && make && sudo make install like you can do on Gentoo is unlikely to work.
Another upside of Nix is that it also has a lot of great tools for developers, letting you easily make isolated environments with different libraries and utilities in each one. All this being said, I usually don't recommend it to someone who is asking "what distro should I use?" since the small community and sheer difference of the approach makes it much harder to do google-based troubleshooting.
After just a few weeks, even using the same distro, everyone's installation is customized to its user like a glovesl. Some start with more more comfortable distros than others. Something like Ubuntu will give you a very stock, GUI heavy, "beginner/I don't want to think about my OS" operating system. From there, you get into Debian, a much more "pick and choose distro" than Ubuntu, but still with great support and stable packages. After that, maybe into Arch, a rolling release distro with grear, always-up-to-date, system with a very minimalist and well designed base install. After that, Gentoo, a hand crafted, labor intensive distro that will be completely bespoke to you.
Some never move on from Ubuntu, some never make it to Gentoo. AND THAT'S _OKAY_. It's about what YOU are comfortable with.
As you grow and become more familiar with the CLI and Linux, you'll want to take more control of what you install and I think you'll start to appreciate simplicity and purity over "initial ease of use". You might even consider trying out different window managers like KDE, i3 (my current love affair), or awesome wm. At that point in your Linux journey, you'll actually have some intuition about how a window manager is different from your distro and how most window managers are built on top of X server. You'll have your own hand rolled .Bashrc. You'll know what you _want_ from your OS.
Personally, that's where I am now. I've been running Arch for 2 years now and made the switch from GNOME to i3 about 6 months ago.
My advice is not to try the most highly recommended distro, or the most "barebones" but simply begin with so.thing very easy like Ubuntu. You might quickly hit some frustrations and identify things that you would like your distro of choice to better. At that point look elsewhere. Migrate and give that some time.
Don't just jump onto the "perfect developer's distro", ease into the easiest and most comforting distro for you "where you are now".
There are various flavors of BSD that have the toolsets to do what you requested. Not very sure of laptop battery management though.
FreeBSD (Very stable)
OpenBSD (Stability + Security focused)
PCBSD (Linux like ease of setup for Desktop environments)
They all have access to large/comprehensive application/system/development software.
Three major reasons:
A) AUR
B) custom installs are default
C) rolling release + up-to-date
Of course, Arch is not that easy to setup compared to other distros (Antergos might help), you're gonna have to manage the system yourself to some extent.
If you don't like ArchLinux you could go for Fedora, NixOS or Ubuntu variants.
Personally, I think KDE has a bit less good integration, KIO and the such don't work as well as GVFS. (GVFS uses FUSE while KIO (IIRC) is sockets or something)
Gnome 3, for the most part, works like an oiled machine.
For example, I've recently started to play with Systemtap, and found it to be the perfect tool for some of my work.
But after some frustrating attempts to use it on Ubuntu 14.04 LTS, I discovered that it's broken and Canonical won't fix it. I tried to build my own, nonbroken version of Systemtap on this distro, but ran into nontrivial problems with library versions.
Even on Ubuntu 16.04 / 16.10, Ubuntu seems to build Perf Tools (which is part of the kernel's code base) without support for Python scripting. It was pretty easy for me to fix, but it did require downloading the kernel source, and rebuilding "perf". I don't know if they have a good reason for doing things this way, but it's irritating.
In contrast, Oracle Enterprise Linux has DTrace, which arguably is the (aging) gold standard for dynamic tracing on Linux. But OREL is a distro I never seriously considered using before needing this kind of tool.
* NOTE: I'm not trying to state which tracing / profiling tools work well on specific distros. I haven't done enough research for that. My point was only to bring attention to this category of feature.
I personally am using elementary right now. It seems to take advantage of the macos/win10 exodus by offering the next closest experience. It takes the principles of user friendliness from Ubuntu and takes it a step further. As others have said here, it sets up quickly, has an awesome terminal, has a great default text editor, and looks sublime. It's great. It has the occasional bug but I still find myself using it. I really believe that elementary is the closest thing that there is to a universla, open source os that makes computing accessible to _everyone_. I have been doing a lot of rust stuff in visual studio code and everything works very well.
----
I personally use Slackware. Some developer-friendly features I've found to be useful:
* Ships with all sorts of editors, including Emacs (which is what I use)
* Ships with the full GCC suite among other compilers (including LLVM)
* Convention is for all packages to include development headers; no more "foobar" and "foobar-dev" like in most other distros
It ain't for everyone, though. Like Arch and Gentoo, Slackware carries an expectation of being very comfortable with low-level Linux use.
Over years, I have tried all three and found Slackware to be the easiest one to install and get up and running as a development environment or as a server. It worked perfectly on a Dell laptop (including wifi) in 2003, and it is working perfectly now on an Asus UX305 (the best light-weight non-Apple laptop I know of).
* No dependency resolution. I consider it a feature, but quite a few folks will understandably consider it a huge drawback.
* No PAM. Again, whether this is a feature or a drawback depends on the user.
* No systemd. Same story.
Basically, the aim of Slackware is full customization and transparency, which means that users are not required to worry aboit dependencies or broken authentication systems or binary log files. Slackware also has a pretty strong "if it ain't broke, don't fix it" mentality, which probably explains why the installer doesn't look all that much different from the one in Softlanding Linux System ;)
I'm sure you already know all this; just clarifying for other readers on this thread. It's definitely the easiest of the SAG Trifecta to install, but it deviates pretty strongly from the Linux distro norm due to its history and philosophy.
- ~CON: It's not as polished experience as Ubuntu on "first install", i.e. "end user first" or "Windows-like". But based on other comments here, I assume if you're willing to try Arch, you agree for some tweaking. Please note I've never used Arch, so I can't more precisely compare the level of tweak-ness required; what I can say for sure that it's certainly easier than what was required in '90s (at least because we have teh internets now; and esp. the ArchWiki + askubuntu...) But again, I started my post with "if you're willing to consider Arch", so in such case I assume this point is a non-really-CON, as you're already agreeing to take this cost.
- CON: you have to learn a new language (Nix). To sweeten the deal, IIUC it's one of the few truly purely functional languages around. No IO monads or whatsit. As a result, you may (um; will have to...) learn some interesting functional tricks you never imagined may exist. Note also, that some advanced usage ideas are spread over a few blogs (see esp. the "Nix pills" series), and also in inline comments in the Nix standard library source code.
- SUPER-PRO: I found out that NixOS is a hacker's dream OS. Nix's core idea is that removing a package from your OS nukes it clean, leaving absolutely no trace it ever existed. As a result, you practically don't fear any changes in even most sophisticated internals of the OS. Want to change a kernel compilation flag? Meh, let's just try this one, bam, compile, reboot! Oh, it hanged during boot? Pfff, reboot again, select previous version in GRUB, and we're back! [Um; I mean, as long as you haven't burnt your hardware ;) you know, Linux is powerful :)] Also, part of this is in the fact, that all of your OS config is described in a single file, so you can control everything from single central position, and VCS it trivially.
I've already sent a couple PRs based on this ease of hacking and tweaking, namely to neovim and systemd-bootchart. I'm also trying to write my own series of blogposts documenting this (while it's still fresh in memory); but, eh, you know, a bit too many side projects... not to mention even some of this weird "real life" thing people are talking about so often...
The Nix language is cute, very powerful, and as you say, is capable of cool tricks. I personally find it very easy to read too.
For every project I work on, I define a .nix file describing its build environment. It is then just a matter of cloning the repo, typing nix-shell, and then all build dependencies will be downloaded and I'm ready to go. These nix files also specify which emacs I want to use and with which modes: I don't use Emacs' package manager.
I use nix-shell for pretty much everything. My basic environment contains only core utilities. I launch firefox with "nix-shell -p firefox --run firefox" (bound to a shortcut defined in my xmonad config).
Nix is easy to customize. The override infrastructure makes it easy to modify package definitions from your user config file, and I find I am much happier doing this in a programming language rather than a bespoke config file format.
Other pros: you don't need to be root to install stuff. And there isn't much more satisfying than getting a new laptop, git cloning the repo containing your intended system configuration, and being back up with your old OS with one or two commands.
As you say, if Arch turns you off, Nix may horrify. Despite the vote, I'm pretty discriminating about who I recommend it to.
* -- again, standard disclaimer, any Linux distro can kill your puppy, eat your homework, and burn your laptop; but that's true even of Ubuntu :)
Not sure how to rephrase the original post to better express what I mean. That said, after reading your reply, I agree that I find it hard to push on NixOS to even fellow "regular" devs; I don't have balls yet to install it as my main OS either. Maybe it's that NixOS has somewhat harder initial curve than "your common Linux"; the install phase reminded me somewhat of Slackware of '90s for a sec (though it's still better); again, not sure how it compares to Arch; plus there's the new language (Nix). That said, personally I wouldn't even think about using Arch, knowing how even tweaking Ubuntu is risky. And exactly as you said, I found Nix (the language) truly cute quite quickly. Totally much simpler than Haskell (which I still can't break into, even after some initial successes with SML, OCaml, and growing interest in Idris, which is reportedly Haskell-inspired).
The IO monad, as in Haskell, can be viewed as an entirely pure construct. Its implementation is impure purely because of performance reasons. You can write your own completely pure IO type if you want, with unchanged semantics.
A basic example of this would be
data IOF r = PutStrLn String r
| GetLine (String -> r) deriving Functor
type IO = Free IOF
putStrLn s = liftF (PutStrLn s ())
getLine = liftF (GetLine id)
main :: IO ()
main = do
putStrLn "Enter your age"
age <- read <$> getLine
if age >= 18
then putStrLn "You can vote!"
else putStrLn $ unwords ["You can vote in", show (18-age), "years"]
Of course, now you need a way to interpret your IO type in order to make the machine actually do stuff. This can be achieved in two ways: You can modify the GHC RTS to allow it to interpret your IO type, or you can define an interpreter in Haskell to convert it to the IO type that the GHC RTS knows how to interpret interpret :: IO a -> Prelude.IO a
interpret (Free (PutStrLn s r)) = Prelude.putStrLn s >> interpret r
interpret (Free (GetLine s)) = Prelude.getLine >>= interpret . sOn the first ~CON: If the "end user" is a developer that is new to nix and nix expressions, the transparency of nixpkgs and its nix expressions may turn tweaking from a problem into an opportunity. Seeing the details of builds, configs, and installs clearly laid out in a nix expression taught me more about the package that I was blindly depending on. Having the same tools (nix, nix-repl, nix-shell, *.nix) available across projects and vertically within developments has reduced the "special knowledge" that "end users" need to know for both development and operations.
Extra PRO: Have the expression for your configuration just perfect? Need to build on multiple VMs, machines, EC2? Simply add an expression for networking and deploy with Nixops https://nixos.org/nixops/. Now logical and physical configuration is a declarative data file. If a build fails, I check the source. If my cloud fails, I check the source.
For me, the reproducibility and variable independence in NixOS puts the SCIENCE in Computer Science.
+1. Dependency management and deployment is the biggest problem Nix solves and it is the only system that actually does so instead of putting the problem somewhere else and presenting that as a "solution." A lot of people are using Docker for this scenario, which gives the illusion of a solution for new projects because you have convenient pre-built images. The images do not come from thin air, and people will run into exactly the same problems as they did with VM images once their Docker projects age and dependencies will need to be updated. Adding virtualization layers cannot solve the problem of updating software dependencies.
The only solution is a package manager that tracks the complete dependency tree, all the linked libraries down to libc, and prevents different versions of packages from interfering with each other. Nix is the only package manager that does this.
They were all satisfactory.
Ubuntu: the 6-month release cycle highlights whats great with rolling release distros. Youre greeted every 6 months with a broken system you have to reinstall. Ubuntu LTS: Alot of the packages are extremely outdated and you'll most likely collect a huge amount of ppas(a method of installing 3rd party programs in debian based distros) that will slowly but surely give your computer a decrease in speed and stablilty
RPM based distros: Rpm package managers are the slowest you'll use. This will get to you eventually trust me.
Gentoo: so difficult and impractical to use its a joke in many linux inner circles
What's so special about the fedora Thinkpad combo?
Arch gets my vote. :) Even though I run CentOS on servers and it requires a bit more mental shift when switching between than Fedora.
I also mentioned recent troubles with nvidia drivers, which very relevant to people shopping for a laptop based on prior experiences with nvidia binary blobs.
Finally, I linked to JWZ's relevant post on CADT, and how it leads to the sorts of issues that drove me away from Ubuntu in the first place.
None of this seems worthy of downvotes, but I'd like to hear what is so offensive. Color me confused.
-builds upon a minimal stack of software, letting you create the environment of your own needs
-rolling distribution, meaning your system is always up to date
-the greatest package manager across linux distros : pacman!
Don't get caught up with setting up VMs and doing a lot of stuff for setting up a distro. Write a game. Work through a series of OpenGL tutorials, compilers, and a few other game-related topics and then build something.
If your goal is to build something, you want tools and an environment that make that task easier or more efficient, and then get out of your way. You don't want to get lost in a myriad of system config/tweaks, or to get overwhelmed and find yourself fighting the tools most of the time.
For some, that's part of the fun. For others, they want an environment that just works, and stays out of their way.
Have to admit I occasionally run sudo service network-manager restart and/or sudo service networking restart but compared to anything else it is a bliss IMO.
Can anyone comment on the current situation? Can you set Arch to automatically update with security patches only? Or is it an "updates include patches plus new bugs too" type situation?
So yeah, you probably won't be using it for a web server or the like, but I wouldn't imply from that that Arch is to insecure to use as a dev machine.
As far as bugs go: There's a testing phase/repo for new packages, so it's not really likely that an upgrade will do much damage (and as I said, you can still downgrade if necessary).
If you fall off the update treadmill, you start running into problems, and they tend to be weird problems that are hard to reproduce because so few people are running the exact combination of package versions that you are. Usually a full update fixes things, but the longer you've missed updates for, the more likely something will get FUBAR during the update process.
Maybe a simpler way to look at it is that rolling release distros trade slow-moving versions with low quality variance for rapid updates with high variance. Any given snapshot of Arch package versions is going to have problems, but you also don't sit on that particular combination of package versions for long. As a user you just have to decide whether that tradeoff is worth it.
The next station in this Linux journey is to dual boot Mint and Arch. Mint for when I wanna get things done and Arch for learning and customising linux.
If you're doing enterprise development, you might want to look towards RHEL, Fedora, or CentOS.
If you're doing all work in virtual environments, you might want to just install ESX, but 275GB isn't going to hold a lot of different environments.
For reference: http://www.dell.com/us/business/p/xps-15-9560-laptop/pd
* The huge community would fix all the issues quickly.
* Up to date set of "trusted" libraries and language runtimes.
Latest Ubunty, if you understand how (and why it is so) community-supported distros evolve.So I vote for Arch.
If you just want to run linux, Ubuntu will be better choice .
Never had a problem.
it's not everyday event (it gets better, last year i got 1); however, it's a good idea to clone a working virtual disk.
also consider about having openbsd as your main os. it's stable and simpler than arch. i use openbsd on my remote server and have a desktop version on my spare laptop. zzz sleeps, ZZZ hybernates, wifi automatically reconnects after sleep, etc. all made simple by the sane default. no need to fudge around systemd, power management, etc (oh yeah, i got weird mouse freeze under arch, click and it unfreezes. but freeze again after 2 sec of no movement. turns out linux power management tries to save every juice from battery, putting the mouse in 'sleep' mode after moment of inactivity. really smart, right? until the mouse frustrate u). there's workaround (i forgot atm), but not after you waste hours of testing every mouse brands you have, test said mouses on other os, etc.
linux is like that, a lot of gotchas. it seems linux devs just code but no empathy to user (things get more complex every year). openbsd feels like its devs love using their stuff so it's smoother. it's hard not to notice.
NB: i know i know, i should read archlinux.org latest news before updating; but, what if i'm clueless about the changes?
I use mint xfce now and the only complaints I have are palm detection (probably a driver issue) and wifi trickiness after sleep (probably a driver issue).
I would not recommend Ubuntu or Debian, mostly because dealing with old packages can be the reason you waste great amount of times.
I'm writing this on Arch Linux. My oldest files (that I created) are from 2008, but I think I've been using Arch Linux longer than that. Before that I was mostly using Gentoo - basically since it got some popularity, so very early. I'd recommend Gentoo, if you don't mind compiling. I do, so that's why I don't use it.
Other than Alpine (which is the base for many Docker images) those OSs, so you want to use something else there, but all of them have the great benefit of being minimalist and do a relatively low amount of customization, meaning that software works how to author intended.
On RedHat/CentOS/Fedora, SuSE, Debian, Ubuntu, as great as these systems might be you tend to have many, many specifics, potentially making it a bit annoying when you want your software to work somewhere else. At least that's my experience. They are an option if you are sure to exclusively use those, but other than with Fedora, which I wouldn't recommend on the server you end up with fairly old software.
You might also want to take a look on one of the BSDs. They are really great for whatever you are doing, but their major caveat is desktop hardware support. You might be lucky or not. If you try TrueOS, a for desktop "distribution" of FreeBSD you might be lucky. Oh and doing Android development on there isn't the most pleasant. For everything else it actually has a lot of benefits. For example dtrace being a first class citizen means that debugging is so much easier, especially when it's something you didn't run in debugging mode.
All of them support virtualization and allow for battery management.
I'd make a list of distros/OSs that look interesting and _use_ any of them for at least 3 months. Don't make the mistake of essentially just trying how their installer is. After all you want to have an OS where you are productive and not run the installer. ;)
Oh and one more thing: Don't listen to hypes regarding OSs. What works for you is in my experience and incredibly personal choice. If it doesn't work for you (which you will know after 3 months) kick things of your hard disk. Don't waste your time on trying to run a system just because everyone else uses it. There just is too many people that only try the top ten linux distros, which are all really similar, because they think that one of them has to fit and that the others all all bad. That's certainly not the case. There is successful developers and companies (plural there) running any of the top 100. Look often you read about OpenBSD here and how it is only on spot 86 on distrowatch.
A better measure is how old it is and whether it is still actively developed. If it is older than ten years and there is developers working on it there probably is a good reason for them investing their time.
I was mostly looking for ease of installing as well as setting it up to be a workable internet/email machine, ultimately leaving it up for the guest who would house-sit for me over Xmas. My criteria on the opinions below are based on not only installing, but also; ease of updating, get it functioning fine on the current web (youtube, flash games, etc), install a few software choices I preferred and finally try to "break" the system by pretending I wanted the latest Mesa drivers than what came with it.
First, I see a lot of suggestions by many for Arch. I really do understand the following this distro and others based on it because of the super control of having complete choice of everything installed, BUT to recommend it is a bit much for anyone just wanting things to work for a while and then getting real work done after. This "rolling release" model of distro (and Gentoo even more so) is great for those wanting to learn more/experiment about linux or those who just can't stand having anything other than the latest release for every single item on the hard drive. Stick with binary distro's to save your sanity in the long run.
Off all the 10+ I tried, I recommend this:
1) OpenSuse Leap - Pretty up-to-date and long term support cycle. Even better look to the Spin GeckoLinux for well put together lite/minimalist Opensuse Leap spins. I really liked these and he has them made for all the popular desktop environments (I really liked Geckolinux Mate). OpenSuse "Tumbleweed" is their rolling release version for those wanting latest software.
2) Korora - A Fedora spin with great defaults, codecs, etc. Also has choice of DE and Korora Mate was the one I ultimately left on my machine for my house guest.
3) Any of the Ubuntu spins like Ubuntu-Mate or KDE, etc. I leaned more towards the LTS version (16.04) because I just prefer longer stability/support between major releases. I really liked the corny named Maui Linux. This is a spin of KDE Neon (which is KDE's own distro and based on Ubuntu). Maui has a cool idea to be part rolling when you want so you can get latest, then just freeze it and turn it into a long term just security updates LTS. I was able to get the latest KDE and Mesa just by enabling a repository, then I unchecked it and can stay with it. Maui was sort of ugly imo at default but I quickly was able to get rid of their theme to a vanilla Breeze/KDE. I also am enjoying KDE again because of Maui.
Also, Suse's Zypper (and now Fedora's dnf, which is based off of Zypper) I think are the best package managers, by far. Do research for why, but RPM has come a long way. I was able to update major versions of Leap and Fedora without a hitch. Install software and back out if needed. All very speedy on top of it.
Hope this was helpful.
Personally I use Gentoo now because it doesn't have systemd and I like source-based packages; compiling everything is kind of a hassle sometimes though. I ran Arch for years and I really like it, the AUR especially is great.
As for systemd - it is the sole reason I haven't upgraded from Debian Wheezy yet and I am seriously considering switching to Gentoo too. And before somebody asks, yes, I have installed systems based on systemd (Ubuntu mostly) and I appreciate that it simplified boot process. But I have a very strong opinion about bundling all services under one roof with no alternatives. No thank you. If I wanted that I would use Windows or MacOS. </rant>