LWN.net Logo

Advertisement

E-Commerce & credit card processing - the Open Source way!

Advertise here

My Gentoo odyssey (Linux.com)

Advertisement
Joe Barr concludes that Gentoo is not for everyone. "Gentoo is a popular, powerful, well-crafted distribution that panders to your geek side to the nth degree. You want control? Gentoo hands you the reins and wishes you good luck. How much luck you need depends on how much you know. But it's simply not for me. Like a good programmer, I'm lazy. While it was once fun to compile the kernel and mention it the next morning while grabbing a cup of coffee, these days I want to use my machine for things other the care and feeding of the operating system."
(Log in to post comments)

My Gentoo odyssey (Linux.com)

Posted Sep 19, 2006 19:55 UTC (Tue) by pbardet (subscriber, #22762) [Link]

I have to mostly agree with his conclusion. Why did I stay with Gentoo, though ? Because since I've setup my system/hardware, I haven't lost a single service. I know how to enable them, keep them alive while my previous distro (Mandrake) would be great out of the box, but suddenly, something would stop working without having a single clue about how to fix it.

But for sure it took me at least a week to setup the system, without being able to spend a minute to do useful work. Not everyone is prepared to do this.

My Gentoo odyssey (Linux.com)

Posted Sep 19, 2006 21:20 UTC (Tue) by flewellyn (subscriber, #5047) [Link]

In general, I think the level of "useful work" to "configuring" you have to do is going to depend on, among other things, what you're used to. If you come from the Debian world, Gentoo still offers some advantages, but Debian has always been pretty good about "install and go". Some of us, however, have had to do more drastic things.

Pre-Gentoo, I used Red Hat, starting with Red Hat 5 and ending with RH9. Often, I found myself wanting a package that was not in the distro, and for which no RPMs had been built (or else they were for a different RPM distro, or the wrong version). So, I would download the source tarball, do the configure/make/make install dance, and build the package in /usr/local. In the case of "program" packages, this wasn't a huge issue, but what became very problematic was that I needed libraries that weren't packaged with Red Hat. Worse, on several occasions I needed a different version of GCC or glibc than the distro packaged. Distro updates were not a solution to this problem, either.

So, by the time I finally decided "enough is enough!" and jumped ship to Gentoo, I had spent several years maintaining a /usr/local that was almost its own distribution. I had built and installed a separate GCC and glibc version, compiled large numbers of libraries and programs with them, and managed (somehow) a separate ld.so.conf for the separate branches, with associated maintenance headaches. I had hand-built well over 20% of the software I used day to day.

Coming from that to Gentoo was like a dream. I could do what I wanted, i.e., select all the compile-time options for a package and make sure I had the right version, without having to deal with manually satisfying dependencies, much less maintaining a separate toolchain. The whole system would work together without undue effort on my part: just set the USE flags I want in make.conf, emerge the packages, and everything works. Even upgrades of GCC and glibc are painless.

So, at least in my case, using Gentoo has resulted in a lot LESS effort spent on maintaining the system, and a lot more "real work" getting done.

Well, so it was wrong prev distro

Posted Sep 20, 2006 3:54 UTC (Wed) by gvy (guest, #11981) [Link]

I guess when you were stuck with RH9 (and glibc/gcc upgrade issues were really unsolvable with updates), the problem was with not considering changing it *right away* when the phrase "sub-distro maintenance" might have struck you. If it was even earlier, then it was somewhat worse -- influencing RH seems to have been somewhat hard, and regarding glibc soname changes within N.x -- impossible.

Having somewhat artifical nightmare then is indeed guaranted to make you relief when you, as they say here, finally "sell the goat". :)

--
Mike,
ALT Linux Team member

Well, so it was wrong prev distro

Posted Sep 20, 2006 4:41 UTC (Wed) by flewellyn (subscriber, #5047) [Link]

Certainly, although Gentoo does still have some major advantages, in that I can determine compile-time settings for a package without having to jump out of the package system. In my experience with Debian, if I want to do that, I can pull down the source DEB, but I have to manually build it. And updates aren't as transparent: if I want to keep those settings, I have to make sure I do the manual build of the updated package every time.

Although they may have changed it a bit since Woody.

Adventures are pretty personal

Posted Sep 19, 2006 21:57 UTC (Tue) by felixfix (subscriber, #242) [Link]

In my case, I chose gentoo two years ago because I wanted a 64 bit system and Slackware is 32 bit only. Yes, I know there is an offshoot 64 bit slackware, but I have seen some bad reports and it is not from Patrick, so I didn't go that way.

I have come to the conclusion that gentoo has too many amateurs with too much say with too little historical knowledge. /bin/ls once got recompiled with a link against a /usr/lib library; people, you just can't do that! Root partition commands need to link against root partition libraries only. Another time, a library used by lvm was removed during an upgrade without relinking lvm; luckily I could use a rescue disk to change a symlink and it stayed up long enough to relink for real. The latest fiasco is that a kde package created a /usr/lib library which it shoudln't have, overriding a /lib library and disabling many many packages, include ssh, so I could no longer log in remotely to see what was wrong.

Similar amateurish nonsense has happened too often. But I stick with gentoo because (a) I really don't like the other 64 bit choices with their gui configuraters and shadow config files and vastly patched kernels, and (b) because I do like updating by emerge rather than doing a complete install from scratch for every major upgrade. But I won't recommend it, and if my Opteron system were to die, I would seriously think about replacing it with a 32 bit system and going back to Slackware, even tho I would not enjoy the twice yearly reinstall upgrades.

Adventures are pretty personal

Posted Sep 19, 2006 23:34 UTC (Tue) by debacle (subscriber, #7114) [Link]

Sorry for the impudent selfpromotion: Debian amd64 (already in 3.1 "sarge", officially in the upcoming 4.0 "etch") does not feature GUI configurators, shadow config files, or a vastly patched kernel. You definitely do never a complete install from scratch for a major update. The specific problems you mentioned about Gentoo are not likely to occur in Debian, as there is a stringent policy. The compliance of packages with the policy is checked both manually by developers and users and automatically by the lintian and linda tools. Of course, Debian is far from being errorless! (Btw. I used to use SLS and Slackware before Debian.)

Adventures are pretty personal

Posted Sep 20, 2006 2:24 UTC (Wed) by drag (subscriber, #31333) [Link]

Redhat to Slackware to Gentoo to Debian for me. More or less.

I liked slackware probably the most, but in terms of having to compile my own software it was too tedious. The first time wasn't bad, but over having the system for several months and wanting to update this or that it became pretty hard.

I tried Gentoo fairly early on since it seemed like Slackware except with package management. It was fine, having to compile everything is tiresome though. I liked the install though because I learned how to setup a chroot environment from it.

After that I did a bunch of quad booting and tried FreeBSD and such and left my Gentoo install to langish for a 3 or 4 months or so. After that I tried to update it and it basicly self-destructed. So much of the system had changed that trying to get it back up to date was a lost cause.

With Debian it was difficult to come to term with living with the package management system. It seems that the whole distro revolves around just the package management system and it's easy to break stuff if you go around in the ham-fisted Slackware style of administrating stuff.

But otherwise it's the only system that is realy maintainable for me in the long term. I had a install going for several years and it outlasted 2 computers.

Now I think I would have a very hard time going back to Gentoo. Debian has revealed to me that I very much prefer spending my time using my computer rather then working to maintain my system when stuff randomly break on each update.

Let me ask about Debian

Posted Sep 20, 2006 3:10 UTC (Wed) by felixfix (subscriber, #242) [Link]

I tried Debian many years ago and was horrified at the install. My memory is having to individually select thousands of packages.

Plus it seems to be way out of date, frommemories and judging from the jokes about how ancient Debian is, preferring stability at such a premium that it seems to take forever to get any current packages. Of course there are the unstable branches ..

So, can you Debian folks comment on those aspects? How much of a pain is it to use the unstable branch, and how much of a pain to install from scratch?

On another topic, two things I like about gentoo are being able to configure packages that I want, such as choosing KDE and no Gnome, etc, the USE flags. I am not talking about fussing with complier flags here, but package flags, so you get just the combination of features you want. If I want emacs without a GUI, it's easy enough, and so on.

The second feature I like is not having to ever reinstall from scratch when new releases came out. Even if the compiler changes, or the glibc major version, I may have to recompile everything, but I don't have to reinstall from scratch and merge my config changes back into the new install. How does Debian handle this?

Lastly, how does the Debian 64 bit release compare to the 32 bit release? I know a few packages are 32 bit only, like OpenOffice and firefox, but is everything done in parallel for the most part?

Let me ask about Debian

Posted Sep 20, 2006 6:14 UTC (Wed) by amacater (subscriber, #790) [Link]

Last point first: AMD64 wasn't (quite) released as Debian 3.1 but released
about a fortnight later: it therefore isn't in the main archives as Debian
3.1. 64 bit only, though with the option of 32 bit compatibility libraries.
Will be released as a full architecture with Debian 4.0 [Currently Debian
Etch/testing]. Rocks :) Has almost as many packages as the 32 bit Debian.
Missing: OpenOffice.org, 32 bit only video codecs and "stuff", some Firefox
plugins? Ncurses install, though now with the option of a GTK gui. Running
it here on 2 machines (one testing, one unstable). The name is a slight
misnomer - it will run happily on Intel EM64T with no modification.
Installing <random package from source> from scratch - eminently possible,
but probably unnecessary for the most part. [Someone asked me once about
scapy - a packet mungeing tool - and I watched the chaos of a Gentoo
install which needed large amounts compiled, libraries updated - took about
half a morning to get a half working package. On a Debian testing box, I
just did "apt-get install scapy" - and it worked.]

Let me ask about Debian

Posted Sep 20, 2006 8:40 UTC (Wed) by tyhik (subscriber, #14747) [Link]

I have used debian for many years and about last 4 years, I have used only unstable on my development boxes and at home. The unstable branch has been really stable for me. During these 4 years, there have been about 6-7 incidents, when I have noticed something broken. I have hit the package dependency problems a few times, a few times got crashing firefox and once got emacs which did not color file content correctly. Dependency problems needed tweaking, but in general the next day the problems were fixed. I usually upgrade once a month and avoid upgrading in the middle of busy times.

Now, I probably run just a narrow set of software on my boxes, needed for c/c++ development. Also, I have always compiled my kernels myself, so I cannot comment on debian kernels.

Let me ask about Debian

Posted Sep 20, 2006 9:53 UTC (Wed) by debacle (subscriber, #7114) [Link]

Hello felixfix,

as a Debian developer, I have to agree: A few years back, the installation process was really difficult to handle and the package selection mechanism was sometimes painful. Since version 3.1 (codename "sarge") there is a completely new installer ("d-i" = Debian installer), that does automatic hardware detection and features "tasksel", a task selection mechanism, where you just select zero or more package groups like "Web server", "Desktop system" etc.

Second thing: Out of date software. Again, I have to agree, that this was a problem with Debian. We got better, I believe: We try to do official ("stable") releases more frequently than before (next release 4.0 "etch" planned 2006-12-04, IIRC) and if stable is too old for you, you have two options: Either use the "testing" distribution (or even "unstable", if you are courageous), or use only selected new software from backports.org.

In your case, I strongly recommend to download the Debian installer CD from http://www.debian.org/devel/debian-installer/News/2006/20... and just give it a try.

Debian does not support an equivalent to Gentoo USE flags, sorry. If you like KDE, just install it and remove GNOME. I installed XFCE and removed both GNOME and KDE.

About reinstallation on major upgrades: IMHO, this never has been an issue with Debian. You always could do smooth upgrades, even on major library or compiler or kernel changes.

Debian amd64 is a pure 64 bit port. Currently, only 64 bit programs are supported, i.e. neither openoffice nor wine. Firefox runs fine on amd64. You can install openoffice, wine or proprietary software in a chroot environment and still run it from outside via symlinks.

Let me ask about Debian

Posted Sep 20, 2006 22:43 UTC (Wed) by drag (subscriber, #31333) [Link]

Debian stable only realy suffered from big lags in software.

This was fine for server, but sucked for Desktop.

You use Debian Unstable if you want stuff up to date. Debian Testing is a bit less churn then unstable and usually you'll not get the odd package that breaks things in Unstable.

You use Debian Stable for production systems. Stuff you want to set and forget or 'just work'.

With Debian Etch hopefully getting released on time this will be a huge breakthrough for Debian. It will not only benifit Debian, but the whole host of popular distros that base themselves off of Debian. (Ubuntu, Mepis, Linspire, Xandros, etc etc).

As a whole this will lift up Linux-based systems. Debian and the work they do is simply incredable when it comes to unifing and stabilising software for Linux systems.

Nowadays when using Debian Unstable your software is more up to date then what you can find in Ubuntu or Fedora unless either distro did a new release that month. It updates continiously vs 6 month release cycle.

If you want to compile optimized packages it's not that difficult. It's not super automated like with Gentoo, but the package management system does support downloading source packages and recompiling them. You'll quickly find that it's pretty pointless except for very specific programs and libraries.

If you haven't tried Debian for a long time then I suggest installing Debian Testing. It's very nice.

For deploying stuff like large numbers of desktops Debian Stable would be my first choice. When you get down into it Debian IS the most complete system that I know of. Seriously. It's got a lot of corner cases cornered. If you want to use a newer Desktop then Debian Stable offers, but you don't want to upgrade your system or half your system to Debian Testing there is backports that recompile testing packages for Debian Stable.

With pinning and recompiling packages it's possible to backport the odd package from Debian testing or unstable to Stable without having to upgrade a bunch of libraries and other stuff. I recompiled OpenAFS from testing to run on stable since the openafs project made big improvements since Debian Stable was released.

For server usage it's pretty good. Setup a Gentoo box and a CentOS box and a Debian Stable (or Debian Testing if you want newer stuff) box next to one another and setup a rather complex website using Drupal or something like that. Something that uses most of the 'LAMP' stack or whatnot. (for debian stable you'd just go "apt-get install drupal" ) Let them run for a for a few months keeping up with the latest security updates and such and you'll probably find that out of the boxes the Debian Stable system would be the box that required the least amount of effort in maintaining.

One of the troublesome things with Debian is how they change packages around to fit. Sometimes changing configuration files locations or moving stuff to /var which would be in /usr by default and stuff like that.

To combat this you'll find every package and command has a 'man' file. It's a bug if it's not there. Also debian changelogs, documentation provided by the upstream source tarball, and other things such as sometimes configuration samples end up in /usr/share/doc/<packagename>. I've found this very usefull. Especially for things were upstream doc is a bit vage on configuration files such as mplayer.

Google for 'Debian Desktop Survival Guide'. I've found that very usefull.

The stuff for Debian Testing is at:
http://www.debian.org/devel/debian-installer/

I suggest the Netinst image. If you have lots of machines or want to try different installs setup apt-proxy on a machine and you'll cache the packages so that you can do reinstalls or multiple unique installs faster. Skim through the installation guide also. There is a lot of good information there.

Personally I like to try out new stuff time to time. Gentoo is still interesting and especially Fedora Core is nice to look at. They have some fancy stuff with things like Stateless linux and those clustering features are very interesting. For some reason though Debian testing seems much faster then Fedora Core even though they are using about the same stuff... but maybe it's just me. It's tough sometimes.

Adventures are pretty personal

Posted Sep 20, 2006 0:48 UTC (Wed) by dberkholz (subscriber, #23346) [Link]

The /lib stuff you suggest isn't because people are unaware of the reasoning or the policy, it's because they don't mount /usr later, they don't notice and there's no QA tool to notice this specific issue for them.

Adventures are pretty personal

Posted Sep 20, 2006 11:14 UTC (Wed) by Klavs (subscriber, #10563) [Link]

I just had to note, that you can simply setup sandbox (or in my case, I use usersandbox), and overwrite protection in make.conf - then a new package CAN'T overwrite existing files.
in regards to the wrong linking of /bin/ls to a /usr/lib.. someone clearly messed up on that one.

And it's not from Patrick too? ;-)

Posted Sep 20, 2006 17:48 UTC (Wed) by gvy (guest, #11981) [Link]

> and it is not from Patrick
Slackwarists being *that* consumerish, they will kill off Patrick and panic if (or... when) he's ill again. Any clue on collaboration, no? Fork da rule? :(

> /bin/ls once got recompiled with a link against a /usr/lib library
Well in ALT Linux, many things like this are auto-checked (including duplicated ELF symbols to catch e.g. static zlib linkage -- you should guess why).

> (a) I really don't like the other 64 bit choices
I guess you might even not really need them; see recent LWN article on that.

> (b) because I do like updating by emerge rather than doing a complete install
You should have looked at e.g. Debian then; I guess it's hard for a slackwarist exactly because of all the words one might have heard from "them", but then, most of them might be just true.

I'm also not used to reinstalls, we have apt in ALT.

> and going back to Slackware
Years of experience don't neccessarily make an amateur a professional, if he comes to understand that / utilities must not depend on /usr but still fails to "get" strategic shifts in distro building, namely that there is more to other distros than Slackware simply because there are more *powerful* and seasoned people working on them, and even amateurs (like me, on Linux since 1998, working on ALT since 2001) doing some useful job under their guidance.

Sorry to write this, but I've been discussing this kind of things with two old-time slackwarist friends of mine (whom I respect) and a bunch of youngster phanatic types (whom I disrespect for total lack of logic, just crying "it's coool" isn't gonna make it that or otherwise help do anything)... you fit the "elder" pattern quite good.

And it's not from Patrick too? ;-)

Posted Sep 20, 2006 18:10 UTC (Wed) by felixfix (subscriber, #242) [Link]

Being from Patrick means it won't include nonsense like linking root partition commands against non-root libraries, that it will be very vanilla, and that it will simply work without fuss. He's got a rock solid reputation and gentoo never will as long as the amateurs can so easily screw it up, whether due to ego clashes or lack of QA doesn't matter.

As for Debian, I may give it another try. My last try was probably ten years ago, and was not encouraging.

My Gentoo odyssey (Linux.com)

Posted Sep 20, 2006 1:21 UTC (Wed) by fjf33 (subscriber, #5768) [Link]

I stick with Gentoo because I really never enjoyed maintaining any of the othe Linux Distros I tried. I made my decision last century so thing may be better. I came to Linux through IRIX and SunOS so that may have tainted things a bit.

I rememeber how long it took to set up Gentoo but boy I saved a LOT of time later during the maintenance. It is that whole ROI over the lifetime thing.

My Gentoo odyssey (Linux.com)

Posted Sep 20, 2006 5:20 UTC (Wed) by dambacher (subscriber, #1710) [Link]

Yes - You need time and patience to install gentoo.

But it is worht it.
My two servers run gentoo since 2004 - sometimes power breakdowns or fan exchanges, but uptimes >300days.
And I maintained software updates on the running system - without breakage.
The time before, there was one complete install per year with at least a weekend downtime to maintain them.

My Gentoo odyssey (Linux.com)

Posted Sep 20, 2006 8:49 UTC (Wed) by edomaur (subscriber, #14520) [Link]

I started with Gentoo in 2001 or 2002. It was the only distro I could find that was not a complete pain to run on the then "flambant neuf" computer (a brand new Shuttle box).

Except for one time I accidentally destroyed the Portage mechanism, I have never regretted the time past onto it.

Now, I can make the install config in less than 15 minutes, and then let the system emerge applications during the night : when the next day come, I have a server running exactly what I want it to run, and probably more up to date on the drivers side (had the case 3 or 4 times when nothing except Gentoo recognize the hardware...)

For me, Gentoo is ok. It has some faults if I need to do a complete binary install for an Oracle or something box, but on the long way, I've only good thing to say about the stability of the system.

And ther is the learning aspect of the distro : before Gentoo, I barelly understand how to compile my own kernel, and how a Linux (or unix) system was put on a disk. After a year using it, I was able to teach LPI classes, only had to learn the quirks of Debian and RH based distros :-)

Gentoo: Excellent if you want a source distro

Posted Sep 20, 2006 14:52 UTC (Wed) by emk (subscriber, #1128) [Link]

I still run one Gentoo machine, which I may sometime convert to Ubuntu.

I've been very impressed by Gentoo's documentation, clean design, and large package repository. And at least a few years ago, the cutting edge hardware support was much better than most distros.

But I've discovered that I don't like source distros very much. They're slow to upgrade (overnight or longer), and few of them offer a quick rollback of broken packages (with the admirable exception of MacOS X DarwinPorts, which can revert to earlier binaries in seconds).

Debian usually does a fairly good job of splitting up packages to minimize dependencies (e.g. emacs and emacs-nox), and I'm not particularly interested in heavy optimization. What I want, more than anything, is a large repository of packages that can be installed quickly and without headaches.

On the other hand, if you need to do lots of custom builds, or if you want to explore the inner guts of your operating system, then Gentoo is an excellent choice.

Gentoo: Excellent if you want a source distro

Posted Sep 20, 2006 15:16 UTC (Wed) by intgr (subscriber, #39733) [Link]

They're slow to upgrade (overnight or longer), and few of them offer a quick rollback of broken packages
If you manage to predict a breakage up front, you can always quickpkg your current package for quick rollback. As for slow upgrades, you can use GRP or a third-party binhost to skip the compile step. I can't say how well mixing binary and source packages works, though, as I've rarely used them myself.

Gentoo: Excellent if you want a source distro

Posted Sep 20, 2006 16:48 UTC (Wed) by jbeard (guest, #40626) [Link]

I read now and then, complaints about how much time it takes to update a gentoo install, but those complaints are somewhat misleading to those not familiar with gentoo.

Yes, updates CAN take considerable time to build. This is NOT, however, time taken away from the user, and his "real work".

Consider a worst-case scenario for build time: someone updates a base library for the KDE desktop apps, which in turn affects a large number of apps that you have installed on your box.

In this instance, you may have hundreds of packages change, and your machine may take all day to perform the builds. Does this mean you need to stop doing "real work" in the mean time? No. The total time I personally spend attending a build in this event is about 10 seconds. Just long enough to kick off the build process, and once in a while check back to see how things are progressing.

Even the availability of the apps you are updating is not typically affected by rebuild. As each app is successfully rebuilt, it is added to the system, after which, the older version is removed. All the while you can be using the old versions, until the new ones are installed.

I still wish for a better installer (just to set up new machines with less fuss than is necessary right now), but maintaining an existing gentoo box is not difficult or time consuming at all.

The usual scenario...

Posted Sep 20, 2006 17:11 UTC (Wed) by emk (subscriber, #1128) [Link]

The usual scenario is something like, "I need to troubleshoot this network problem ASAP." Of course, to do that, it turns out I'll need Ethereal, which in turn requires GTK, parts of X, and so on. If I'm lucky, some of the packages can be pulled from a binhost.

Like I said, it can be a very good system, depending on what you need. But if you need instant gratification, it has some real drawbacks.

My Gentoo odyssey (Linux.com)

Posted Sep 21, 2006 16:43 UTC (Thu) by ordonnateur (subscriber, #6652) [Link]

Gentoo is a fine distribution if you want to learn how things work, but at the same time want something that can be used for day to day work.
When i first installed Gentoo around 4-5 years ago I wanted a lean system to run on old ex-desktop hw provide basic web serving for a teaching lab. It did the job well, later I set up a few laptops and workstations with X to use as my everyday machine.
Over the next few years Gentoo seemed to move away from that more practical form of LinuxFromScratch; it seemed to me that too much development effort was going into 'features' I didn't need, the appeal seemed to be to people who wanted tinker and add 'go faster stripes'.

Keeping Gentoo up to date is not usually difficult, but it is necessary to keep moving not too far behind the bleeding edge. Leave a system because it is working fine for a few months, then update for a security fix; suddenly there is a mess of dependencies and conflicts; "if you were wanting to be going there, I wouldn't be starting from here".

Two summers ago I was caught out when a necessary fix to Apache required a wholesale change to server configuration. It took a week to get my mod-rewrite working again.

Since then I have moved most boxes to Ubuntu. The learning experience with Gentoo was worthwhile, it made moving a critical server to FreeBSD much easier, but for everyday use I need something that just works.

Copyright © 2006, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.