Advanced

A Gentoo User Gives Debian a Go Around

Posted by hkwint on · 24 comments
LXer Linux News; By Hans Kwint - The Netherlands
Mail this story
Print this story

LXer Feature: 10-Dec-2008

A few weeks ago, I installed Debian for the first time on the desktop. Once, a friend and I installed a console-only version on another desktop and we connected remotely to his hosted game server which also ran Debian, so I hoped I should be a bit familiar with it. I have to note however, I have run Gentoo for the past four years, and most of the times it's hard to 'learn' something else. However, I still liked to try and find out for myself if Debian was an easy distribution to use. So, how did I fare?

New experience: legally download a BitTorrent file

First of all, I had to retrieve an image to install Debian. This was not hard, and I was glad Debian has really fast torrent uploading peers. "I don't want this to last an hour, so let's choose the mini-image of less than 50Mb called netinst" I thought; because that was the fastest way to start installing the real thing. I found the image by going to Debian.org, choosing "Getting Debian" in the tabs on the top of the site, and then choosing "BitTorrent" in the second paragraph.

Then I went for the 'Stable release' and chose i386; because most of the time I'm a bit afraid of the AMD64 versions. I didn't bother too much about versions; the version was pre-selected for me and I understood you can update your stable installation to a newer, more unstable version. In a few minutes my image was ready to burn; which went very fast because it was really small and Debian is the only distribution I know providing torrent-downloads which are faster than their FTP-servers. I tested the md5sum I easily found using a search engine and insisted K3B should check my CD after I burnt it to make sure every bit was correct; doing so could save you headaches later on.

The necessary configuration

Then, I experienced some minor frustrations. First of all I chose "English" as my language, after which Debian assumed I lived in an English speaking country. "Bad assumption" I thought. After I found out I could choose 'Another country' I was greeted with a non-alphabetical list ordered by continent. Not very convenient in my opinion; but views may differ. After I chose The Netherlands, the next problem emerged. Now I do have a QWERTY keyboard just like almost everyone, but because the Dvorak layout is more ergonomic that's what I use; normally Linux translates my QWERTY-input to Dvorak keys. I wasn't able to find the Dvorak keyboard layout in Debian's list however, meaning I had to do the rest of the installation using the clumsy QWERTY-layout. A missed opportunity, Gentoo supports Dvorak nowadays so I'm really used to it.

I thought of a way to trick Debian, so I pressed Ctrl+F2. I was glad this worked and I ended up in an old fashioned terminal. Nonetheless, once I found out it was 'sh' this terminal was running, probably busybox, and not Bash, I was slightly frustrated again; no bash means no history and tab completion. But after all, this was a mini-image, so I couldn't really complain; apart from thinking "Gentoo mini-images do provide bash". For some reason I didn't remember the 'loadkeys' command, and of course 'setxkbmap' didn't work; after which I decided to stay with QWERTY.

Blew it

Then, I ended up at the partitioning phase. First, I tested the auto-partitioning feature including LVM, but the choices made were not satisfactory to me. Probably that's because of me and not because of the choices made; because I reserve the first 10G of the disk for Windows most of the time. I tried changing this configuration using fdisk from the console because cfdisk wasn't available - another missed chance. I thought I succeeded, until the Debian installer gave errors and told me I had to reboot to apply these changes. "What the heck, this isn't Windows, is it?" I remember I thought. So I went to the terminal again and tried to find the 'blockdev' command, only to find out it was not there. A 'blockdev -rereadpt' command would probably have solved the issue without the need to reboot.

Again, Gentoo has it, Debian doesn't meaning I had to reboot. Rather sad in my opinion. Yet, after rebooting, my new partition configuration was OK, but Debian only wanted me to use swap. I had some RAM lying around here and there, so I foolishly didn't want to assign nor use swap. Apart from some warnings, I was glad Debian was OK with this. Only later on I would find out software suspend wouldn't work if I didn't use swap, but I was glad Debian told me I could include swap and swsusp later on after installation by means of using dpkg-reconfigure.

Some interesting thing I noted was the Debian installer menu is a 'sequential' menu, and not a nested one like I remember the FreeBSD installer to be. Normally, you don't see this sequential menu because you just go through the steps unless you use the 'back' choice in one of the menus. Looking at this sequential menu, you can figure out how much more steps the installer has to take before all is ready. The 'minor-improvement' part of my brains thouht "Quite nice, and it would be even more nice if there was some sort of counter how much steps were done and how much more were coming. But probably that's kind of hard using ncurses". On the other hand, Debian does deserve bonus-points for offering the option of encrypted LVM, though I didn't use this option.

Hush, what do I hear? Progress bars!

At some point Debian even showed some progress bars; something the Gentoo user is not used to. "Rather great, now at least I know how long I have to drink my tea" I contemplated while watching the bar. I'd say the core utilities and configuration files were installed at this moment; basic stuff every GNU/Linux operating system needs to function. Interesting to note is the system chose an URL to download from itself. As far as I could tell there was no option to select a mirror or find out which mirror was the fastest. Gentoo has this as an extra option while installing, by means of running the mirrorselect script. Again, another missed opportunity.

After that, Debian asked me if they were allowed to receive some anonimized statistics which packages I installed. Normally I'm not to keen to take part in this kind of surveys, but then I noted this was an opt-in system; turned off by default. "Ah, they respect not to bug people" I cheered, and I was so glad it was opt-in that I decided to join this survey. After that, even one more progress bar, this time with an ETA-counter!

I soon would found out that timer came in quite handy because whatever was happening now took a looong time. After that the installer told it was cleaning up. "Hmm, you would only do that if you made a mess' I sarcastically noted. Anyway, it is not a problem if someone makes a mess provided it is cleaned up. Finally the installer asked me if it had to install GRUB to the Master Boot Record, and I answered "Yes". Without any warning, Debian decided to eject my CD. That was quite a wrong decision, because there's some kind of door in front of my CDROM. I was quite glad it was open at that moment so no damage occurred; a warning would have been nice.

Afterboot(8)

Now the good news. Everything worked! Soon, I found out I installed Gnome. "WTF, did I do that?" I asked myself. Normally, I'm not a fan of Gnome, and I completely forgot Debian comes with Gnome, if I ever knew that in fact. "So, where's the start menu?" I asked myself, soon after which the answer came, "Above, fool!". I browsed around a bit, not being used to a start menu in Linux, and noted "at least there's Freecell, so I will never be bored". That's when I wanted to start Firefox - or more correct: IceWeasel, but I couldn't find it. I used Epiphany for some time but I became a bit annoyed; so I decided to install IceWeasel.

I opened a terminal and tried to sudo but I was not in the sudoers file. Something that one has immediately to correct, but sadly I couldn't copy my Gentoo sudoers file, so I added to the sudoers file hoping to enter the right line, which later would prove to be the wrong line. After that, I found out I had to use apt-cache. Now, I'm rather confused by the whole apt-thing. You have apt-get, but by default it does nothing unless given an option, and there's apt-cache. "Why can't this just be one function like 'emerge' which defaults to installing something if invoked without options?" I blamed the apt-makers.

Then, a fine solution came to my mind: Go to HowToForge! Without much delays, I found the "Perfect Debian Desktop" article and started to follow the instructions, leaving away what I didn't want. This all went quite well, and soon I was using Synaptic to do package management; and I even found out IceWeasel was installed by default and was even in my start-menu! Nevertheless, soon I was surprised because Synaptic wanted me to install slapd. Now, I didn't even have any idea what the heck slapd was, so I figured out I made a mistake during package selection. It turned out I did nothing wrong and this was quite usual, and after trying to get rid of slapd as fast as possible I had to set up postfix and SSL certificates. Thinking really hard "Leave me alone, I didn't ask for this!" didn't resolve the issue, so I tried to hit 'Cancel' as much as possible.

Then came a new surprise, Synaptic wanted me to insert the CD again! "Why on earth would that be" I wondered, "I'm connected to Internet; downloading would be much faster. Stupid Windows ways of doing things!". At least it worked, and even GPM worked though I didn't configure it, so I was quite glad. However, soon after that, every time I started a root terminal I received a warning I was granted permissions without asking for authentication. The message box inured my anxious mind this was no error, but I thought it was because I made a fault in my sudoers-file. I took out the line I added, bringing the sudoers file back to its original state, but that didn't resolve the issue: I still could start root terminals without authentication. In normal language: Without giving a password. I couldn't figure out why.

Ignoring some stupid advise

Almost at the end, HowToForge advised me to install Automatix. I'm glad this failed, because I remembered some bad reviews about Automatix in the past. I read some more about it, saw some of its code, and the more I read and saw, the more happy I was I didn't use Automatix. Shortly thereafter, I was adding new installation sources to my /etc/apt/sources.list file to be able to add non-free packages. Now, I was quite happy that part worked, so I became a bit reckless and tried to update to the testing branch.

How far am I?

I found some resources on the Debian site how to update, and it didn't take long before I was copy-pasting commands to update to testing. However, these commands executed really quick, and I wondered if something happened at all. I couldn't find out. I tried to read the apt-output - which was quite new to me - but didn't know how far I was. After that, I became confused. "Which version of Debian am I running right now?" I asked myself. An uname -a revealed the kernel version, and by looking at some tables at Distrowatch I found out I was still running Etch*. After a while it seemed I couldn't reach Lenny, and resorting to trying to update to "unstable" didn't help either. Most of all, I was annoyed at myself not knowing how to find out why the update process failed.

One indication was, the Debian documentation does provide copy and paste console commands, without explaining what does what and most important why you need this certain commands. After all, Gentoo help is better because it does tell you these things. After this failure, I had enough of it and decided to switch my monitor to my Gentoo PC. It provided me with the 'Everything in its right place" feeling again; an indication how 'locked-in' my knowledge was to a single distribution. And worst: I gave up on Debian for a while.

*Please note this is a faulty approach, my kernel could have been updated without 'uname -a' reflecting this because a kernel update would only take effect after rebooting. However, if the kernel would have been updated apt-get would have probably asked me to reboot or if it should update GRUB, and it didn't.

Conclusion

So, what did I reach? I successfully installed Debian, I learned it features Gnome and after all I am able to work with Gnome and Synaptic more than I thought, I learned its quite easy to find documentation and help for Debian and I learned I heave problems understanding Debian versions in combination with the sources-list file and apt-output. I also learned Debian misses some small features which could be added with minor efforts, like Dvorak support, a blockdev-command, maybe bash and that kind of things. Also, I appreciate the ubiquitous Gentoo USE-flags again. Sometimes they are a real annoyance, most of all because their number grows faster than the population of developing countries, but at least they prevent 'stupid things I don't use nor want' like slapd and postfix from being installed. And, most important, I learned I don't need wine to play FreeCell. I'm not sure what's next: I may install Fedora 10 or I may continue using Debian.

Sadly not on this particular computer: It goes to my sister and I promised I would find a legal second-hand XP license and install Windows XP on it. XP has it quirks, but my sister knows them and how to circumvent or live with them. The same goes for Gentoo; and that's why my sister keeps using XP and I keep using Gentoo. The same goes for Debian: you have to know its quirks to work with it on a day to day basis. If you do, I'm sure it provides an equal or better working environment than Gentoo and XP do. But just like with XP and Gentoo, you need some time to become familiar with it. And that's the thing I lack right now, meaning I'm back to Gentoo again until 'adventure' calls again.

  Nav
» Read more about: Story Type: LXer Features, Reviews; Groups: Debian, Gentoo, GNU, Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (24)

4 earlier comments in the full thread.

Sander, thanks for the hints you gave. I knew you were going to reply with help even before I wrote this article; so I could have asked before writing the article, but I wanted to write it from the perspective of a Debian-noob. Probably next time I won't be as noob as the first time, knowing about the expert mode and where to receive some help, and I might think better before partitioning to make the right configuration the first time.

Quoting:this time using the latest Lenny Release Candidate 1 installer. It has got several improvements over the Etch installer you tried.


OK, thanks, I will contemplate that suggestion.

Quoting:The second howto explains how to set up and maintain a mixed Debian testing/unstable system


I read about that, probably a HowTo also, but I wasn't able to update to 'testing'. I might consider installing 'testing' from the CD

Quoting:If you're already at the command line, use dselect or one of the other tools


OK, thanks for the hint Bob. I will remember it next time.

Quoting:I know which one makes more sense just at a glance ... and after a hard look too.


Probably depends on your view of what a single command is, and what you're used too. According to Sander both programs are for a different job, while some of us may think as 'package management' as one job. Certainly we Gentoo / Sabayon users do. However, this is where I came from:

"pkg_add, pkg_create(1), pkg_delete(1), pkg_info(1), pkg_update(1), pkg_version(1)"

so after all Debian doesn't have that many commands it seems. Normally I alias 'emerge' to 'apt-get install' and I'm rid of the most annoying part.
aptitude does combine functionality of apt-get and apt-cache, so you can use aptitude install/search/remove/purge etc. However, apt-cache search is equivalent to aptitude search ~d (without "~d" aptitude does not search in package descriptions like apt-cache).

Regarding automatix, it is much better to use debian-multimedia.org instead.
If you want to stick with Debian, Sidux is a good choice. It has a few modifications, but it's 100% Debian, not a Debian derivative.
I agree with bigg, I think Sidux is great, I have used it off and on and its a lot easier to to set up, for me anyways.

Like any distribution, it helps to get familiar with the install process before veering off the reservation. For desktops, start with the "Standard" desktop, which is GNOME, and then add whatever other window managers/desktop environments you wish after that.

Unlike in Ubuntu, the default Xfce and KDE installs (which can be selected in the boot parameters in the installer) don't contain the same utilities as the "standard" GNOME install. You don't tend to get Synaptic, for instance, in anything but the standard GNOME installation. However, you do get apt and Aptitude in every install. It wouldn't be Debian without them.

Using the Debian Live CDs (http://debian-live.alioth.debian.org/) is a good way to see what the various desktops look like, but I generally bring Xfce and Fluxbox into my Debian installs in addition to GNOME.

Aptitude, apt and dpkg are all deeply interrelated. I don't know nearly enough about them (the book "The Debian System," though from the Sarge era, does a great job explaining them). But they really work.

For me, Debian is extremely reliable, both during the install and afterward. I know if I need to get a box running, Debian is one of the quickest ways to do it. Quick is a relative term, however. The network install does take a long time, depending on your Internet connection's speed, so that part isn't quick, but getting everything partitioned and set up is very consistent, and hardware autoconfiguration has for the most part been great.

In many cases I tried to boot into Ubuntu or install it from the alternate CD on my older PCs, and it often doesn't work out. That's where Debian excels. For newer PCs, I imagine people run into fewer problems with Ubuntu.

I'm always saying that different hardware responds differently depending on what you're loading into it and what you want it to do afterward. Trying to run the same Linux distro across 10 different boxes is asking for trouble.

That said, I'm never happy when I can't get Debian to install on a given piece of hardware.

The Gateway laptop I've been using intensively for the past year and some -- and which is going to my daughter very soon -- just doesn't like Debian.

Both Etch and Lenny require compromises in my use of the machine that I couldn't overcome with much Googling and digging into the configuration files. Now it's dual-booting Ubuntu 8.04 (currently with the less-troublesome Xfce) and CentOS 5.2 (GNOME), and since that's what works, that's what I'm running on it.
> For me, Debian is extremely reliable, both during the install and afterward. I know if I need to get a box running, Debian is one of the quickest ways to do it.

Same for me. I know people have trouble with Debian, I keep reading about it.

I'm no fool to think that "everyone" must, should, or wants-to, use Debian. That's why there are different distributions.

But I do get frustrated when people say it's particularly hard. The only particular, for any distribution is familiarity.

Without that familiarity, NO distribution is "easy".
Quoting:I know which one makes more sense just at a glance ... and after a hard look too.


Apt-cache and apt-get can do a few things that emerge doesn't do (according to their respecive man pages). For example, apt-cache can show you many statistics of the repository, both about installed packages and all available packages. It can also generate dependency graphs and search through (reverse) dependencies.

Quoting:Aptitude, apt and dpkg are all deeply interrelated.


It's not so hard. The core of the system is dpkg. Dpkg works very well, but is complicated and doesn't do things like dependency resolution. It's just very good at installing and uninstalling packages.

dselect, apt and aptitude are all front-ends for dpkg. dselect is the oldest one and has indeed been there pretty much from the beginning. You can use it as a cli command and with a curses interface. Dselect has problems though. From it's man page:

Quoting:The dselect package selection interface is confusing to some new users. Reportedly, it even makes seasoned kernel developers cry.


Dselect also has quality problems. Apt was invented to solve all this. It is a newer front end to dpkg that works much better. For compatibility with older systems that were administered with dselect, it can also work together with dselect.

Apt also has some downsides, notably the lack of a curses-based interface like dselect has. So, again a new front-end for dpkg was built: Aptitude. It does everything apt does (in a very similar way to apt) but also offers a curses interface.

If you are installing a new Debian system, use aptitude. Dselect and apt are only interesting on older systems.
> Dselect and apt are only interesting on older systems.

I'm not old!
hkwint Story submitter ·
Quoting:It can also generate dependency graphs and search through (reverse) dependencies.


Well, the dependencies in fact that is a job emerge does (emerge --depclean); but you are right there are other jobs emerge doesn't. In fact, just as most BSD/Linux distro's Gentoo has a host of other package-management tools; like revdep-rebuild for reverse dependencies, the lower level ebuild command that emerge uses, the q-applets which almost nobody is aware of and uses, genlop - the most important thing about whole Gentoo because genlop -c can estimate how long your compile will take, and eclean and others. It's the same ground but with different borders; and that might confuse people.

Maybe it has something to do with the naming also; in apt-get it is clear it will get something for you, but what apt-cache does is not entirely clear from its name, just as aptitude, dpkg and dselect. Same goes for the Gentoo-tools. One has to admire the naming simplicity of BSD where you have pkg_del, pkg_info, pkg_add etc.

Quoting:Apt also has some downsides, notably the lack of a curses-based interface


Huh? That's no downside, that's another reason to use it; because I'm always lost in those curses-based menus in which it is hard to find your way; at least most of the time. EVMS-GUI and the FreeBSD (and I believe Ubuntu Installer, or is it the same as Debian?) installer are the examples I'm aware of and find really hard to use, the Debian curses installer is much better by the way. No, I detest ncurses-menus; the only good reason to have ncurses is for lynx etc.

Quoting:Like any distribution, it helps to get familiar with the install process before veering off the reservation.


That helps to do it right the first time (on purpose not my intention!), not to spot approachability issues made by carelessness which could easily be resolved. It takes an uninformed noob to spot those. The very same reason someone like me who has been using WinXP for multiple years cannot spot a lot of the logical behaviour-flaws and approachability issues of WinXP because I'm used to it; but my mother or grandmother can spot them with ease.
> One has to admire the naming simplicity of BSD where you have pkg_del, pkg_info, pkg_add etc.

Or Slackware, where you have pkgtool, installpkg, removepkg, upgradepkg, and makepkg.
Wow, Debian is such a malleable distro, I really was frustrated reading this. I equate it to watching a video of my girlfriend driving a manual transmission car by her self.

I've never ran into any of these install issues. I thought Gentoo users where the linux nuts and bolts guys, perhaps this is a bad thing. I've installed Gentoo, but it took me a bit of reading. Perhaps this applies here.

Install Lenny not etch, allow the installer to do it's job. Just follow the prompts and Debian installs in a straight forward manner. Even the disk partitioner!

Use the provided tools and don't choose to install a desktop during the install. Just install the system. Once you've booted into BASH log in or su as root. # aptitude install xorg kde your done or just install kde-core or xfce4 for the minimal experience. add vga=791 to the kernel line in grub menu.lst and enjoy the command line. keymap will aid in dvorak layout.

i don't use synaptic, i use aptitude and search for packages with it or the debian packages web page.

but i do sympathize with the user, i don't think i could switch easily to another distro. I like Debian to much to leave it.
Quoting:Huh? That's no downside, that's another reason to use it; because I'm always lost in those curses-based menus in which it is hard to find your way; at least most of the time.


It may not be a downside to you, but it is for many other people. Aptitude offers the best of both worlds. You can use it as a cli command and as a curses based interface. Aptitude is nearly 100% compatible with apt, options and all. Just type "aptitude" where you would type "apt-get" or "apt-cache" and it works. The only change is that the "dist-upgrade" option is now called "full-upgrade".

Aptitude has a few other advantages over apt as well. For example, removing unnecessary dependencies (now backported to apt as well in Lenny) and being able to manage multiple dependency resolution solutions at once.
I wonder too why this thing "eject disc after install" is adopted in variuous distros ? Would'nt be more comfortable to have the same behaviour as in MS install route ? Me too tries debian on eeepc (after 4 years of gentoo and still counting) and I must admit debian is very polished polished but it has it's "strange moments" also.
At the end of the install you are prompted to reboot into to the new system and it says to remove the disc, but you must click continue to allow it, then it ejects.

Now sure why this happening here.
If you leave the disk in after installation and reboot, it will start from the disk again and not from the hard drive. The same is true for Microsoft Windows, or any OS for that matter. It's a BIOS setting and the installation routine cannot change it.
> Now sure why this happening here.

Because it's not assuming that a software "eject" is absolutely, certainly, going to work automatically.
exactly it's a bios setting, so eject the disc when prompted, if the bios setting is set.
uuhh, i feel retarded.

i don't have a bios setting to eject or not eject a cd-rom when it's called by a software command.

when you click continue on the last step of a debian install there is a confirmation screen. it states that the cd will eject and to remove it. more than likely this will happen.

again, not sure why this is happening here.
hkwint Story submitter ·
Quoting:I've installed Gentoo, but it took me a bit of reading. Perhaps this applies here.


Off course it does, but as said before, doing things right the first time was not the purpose.

Quoting:Use the provided tools and don't choose to install a desktop during the install


I've read that more; I guess that's the way to go.

Quoting:Aptitude offers the best of both worlds. You can use it as a cli


What I was looking for I assume.
Gratz on trying debian!

I am a Debian user trying out Gentoo right now. I was looking for some hints on using emerge when I came across this page. I think its great to get out and try distros, esp. when they are as different as these two are. I have been using Gentoo only now for about a week and I can say I like it a lot more than I thought I would. I think in the end I will go back to using debian for most tasks, but I can see why people use gentoo. It is hard to strip debian down to a flying gas-can the way you can with gentoo. The people who said you should use aptitude are right, it is a better pkg-man. The ncurses interface can even be nice from time to time. One things has been bugging me about portage/emerge for sure.... descriptions. They are a little to short and sweet in gentoo if you ask me. When your looking for something new it's a pain. I like the fact that the emerge search features are RE but trying to search through all the desc is a pain, esp. when it doesn't bring up things it should. Good luck on the rest or your journey.

-Evan

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post