Linux.com

Feature: Linux

My desktop OS: GRML

By Mark Gjerde on March 07, 2006 (8:00:00 AM)

Share    Print    Comments   

The best discoveries emerge from obscurity. My favorite discovery of last year was GRML Linux. You won't find this gem in the top 100 at Distrowatch, but if you ask me, it works better than all the usual names.

GRML says it's for "users of texttools and system administrators," but GRML actually offers more. It's Linux that "just works." My users are not geeks, but GRML makes all our lives easy.

Think of GRML as desktop-agnostic Debian with Knoppix-style hardware detection. GRML uses the latest Linux kernel. GRML doesn't violate Debian standards the way Knoppix and Ubuntu do, and compared to Knoppix, it has a less extreme focus on the CD format. Knoppix is hard-wired for CD and tricky to configure on much else. GRML supports many Knoppix cheatcodes, but boots from any device that your BIOS supports (and soon all the rest via chainboot). A nice script called grml2hd does hard drive installation. It creates a standard Debian Linux system with hardware autodetection.

Many distributions fork over desktop environments: Ubuntu/Kubuntu, Knoppix/Gnoppix. GRML doesn't ship GNOME or KDE, but contrary to popular belief, desktop agnosticism is a blessing. It's still easy to put a desktop on GRML. Debian package management is your friend. GNOME, for instance, installs with one command: apt-get install gnome-desktop-environment (include -t experimental for the very latest GNOME release).

Agnosticism means something else. GRML development stays focused on kernel and driver issues. There's no wasted effort on desktop design; GRML leaves that job to desktop developers. However, the basic infrastructure is there; GRML ships lightweight window managers like Fluxbox, and offers X11 configuration.

Still, why select "Linux for sysadmins" for desktop use? Well, think about personal data mobility. Some users don't like to have their personal data tied to one PC. They want data on the road, at conventions, between work, home, and school, at a friend's house, and at client work sites. They want their personal desktop wherever possible. Many productivity factors roll into desktop configuration -- hotkeys, menus, icons, applications, Internet settings, folder trees -- and these are lost when you borrow a machine.

One obvious solution is a laptop computer. Laptops are expensive, fragile, heavy, power-hungry, and more awkward than stock PCs. Laptop screens and keyboards are smaller. They lack ports and expansion options. Sometimes they suffer driver problems. They take extra desk space. They need to be synchronized with stationary desktop PCs.

Another solution is to put data on the Web. Web-based email is simple enough. Still, it's hard to create a Web-based "personal desktop" with your application programs, application files, OS settings, and icons -- and forget about privacy if your data lives online.

The live CD approach can work. GRML is a live CD. All live CDs have one basic problem, though -- they're read-only, so you can't customize them. In theory, you could burn a customized version with personal desktop and applications. That task is unpleasant, tedious, and would have to be repeated if you made the smallest change.

A live CD with a "persistent home" is closer to ideal. A persistent home is a read/write directory on a hard drive that works in tandem with a live CD. GRML supports this technique. However, it presents problems to the mobile user. Where exactly do you keep your persistent home? You must somehow carry it on your person, along with the live CD. You could use a USB device, but if you're going to carry a USB device, why not boot from that?

A bootable USB device is the ultimate mobility solution. These devices are cheap, small, and lightweight. GRML offers a small version specifically for flash memory sticks. Flash sticks are cute, and have valid uses. However, at today's price/performance levels, they don't support mobile users very well. They are too cramped. They can barely boot a desktop Linux, leaving little room for applications or data, and forget about MP3 files.

A compact, rugged, USB hard drive suits mobile users far better. It can hold an entire Linux system. USB hard drives overwhelmingly beat flash memory sticks whether you compare price per megabyte, read/write speeds, media lifespan, data capacity, or almost any other metric. At present, the only metric favoring flash is physical ruggedness, but you can obtain ruggedness in a cheap USB hard drive. It won't endure extreme abuse like a fob, but it will outperform flash in every other way. So the tradeoff is reasonable unless you drive trucks over your boot device. A hard drive gives plenty of room and speed in a portable format that can be reasonably rugged. USB drives are much less cumbersome than laptops and fit in the palm of your hand.

So much for hardware. What about software? The drive must boot on any available PC, so it cannot know the PC hardware in advance. Here GRML's automatic hardware configuration shines. Linux advocates do not promote this aspect of Linux nearly enough. Windows just can't do it. Driver setup is the most common support issue. GRML does it automatically. You run grml2hd and reboot. Voilà, the USB drive can boot practically any PC in 90 seconds. Configure and tweak your mobile Linux any way you please. It's just Debian, after all. You will see your changes the next time you boot, no matter whose PC you use.

Automatic hardware detection helps even on one PC. Sysadmins constantly swap expansion cards in and out of test units. GRML can auto-configure no matter what changes you make.

GRML is clean and fast. On my fastest machine, booting an Ubuntu live CD took seven times longer than GRML CD. And Ubuntu removes hardware detection from disk installations; GRML leaves it in place.

Finally, the GRML development team is sized just right for its mission. It's not a one-man show like some other distributions, nor a giant committee meeting.

My interest is in satisfying users with nice, cheap, portable desktops running standard, open source, Debian Linux. GRML has been a big hit for us.

What's your desktop OS of choice? Write an article of less than 1,000 words telling us what you use and why. If we publish it, we'll pay you $100. (Send us a query first to be sure we haven't already published a story on your favorite OS or have one in hand.) In recent weeks, we've covered SimplyMEPIS, Xandros, Mac OS X, Fedora Core 3, Ubuntu, White Box Enterprise Linux, Mandriva PowerPack 2006, Slackware, and SUSE.

Share    Print    Comments   

Comments

on My desktop OS: GRML

Note: Comments are owned by the poster. We are not responsible for their content.

Incredible!!!

Posted by: Anonymous Coward on March 08, 2006 06:54 AM
for the first time I found a distro with all the software I need: emacs, subversion, luks (dm-crypt), gnupg and python (from <a href="http://grml.org/files/release-0.6/dpkg_list" title="grml.org">http://grml.org/files/release-0.6/dpkg_list</a grml.org>).

I can't ask for more...

---
Stefano Spinucci

#

Re:Incredible!!!

Posted by: Anonymous Coward on March 09, 2006 10:36 PM
um...many distros have all of these...

#

Hardware detection? Not so rare...

Posted by: gonzeaux on March 08, 2006 06:57 AM
With Ubuntu, every piece of hardware I have is automatically detected and the correct module loaded at boot time. The only difference was getting X to configure my nvidia hardware with the proprietary drivers. I can't see exactly how this is in any way inferior.

HAL and insertable kernel modules take care of it all.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 08, 2006 07:41 AM
RTFA-

Automatic hardware detection helps even on one PC. Sysadmins constantly swap expansion cards in and out of test units. GRML can auto-configure no matter what changes you make.

GRML is clean and fast. On my fastest machine, booting an Ubuntu live CD took seven times longer than GRML CD. And Ubuntu removes hardware detection from disk installations; GRML leaves it in place.


If you want to change the hardware around even after installing (ie, the USB hard drive situation TFA talks about), then you have to keep the autodetection installed. There is one (admittedly, small) way in which ubuntu hardware detection is inferior, even aside from the hardware detection speed difference.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 09, 2006 01:55 AM
Sysadmins constantly swap expansion cards in and out of test units.

Yeah, back in 1993. Most machines come with everything built into the motherboard these days (I'm talking in a corporate environment, not your home PC, kids). I can't remember the last time I installed anything beyond a modem into a PC.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 08, 2006 08:56 AM
As one reply has already pointed out the advantage of having the configuration occur at every boot up, that points out the advantage that grml offers over Ubuntu. I also don't think that the author made any claims of Ubuntu being inferior, so you don't need to defend your distro of choice.

The author has done a great job of telling why grml fits his situation and his needs which is what the My desktop OS articles are about. They are not meant to start debates.

I'm glad Ubuntu works for you, keep using it, it is a great distro with lots of great things going on in its development. I will say that Ubuntu has done a terrible job configuring the graphics on two of my three machines, but that's okay, not every distro can cover every piece of hardware. Manually configuring the xorg.conf file fixed the issues. I will say that Knoppix, Kanotix have never failed me in the hardware department. Also using Ubuntu as a LiveCD is not practical when there are faster ones out there. Great to use to check compatability before hard disc install though.

I really enjoyed this article. I also have used grml and find it useful. I also appreciated the author's explaination of how he puts the distro to work in his world, has given me some new ideas to try on my machines and during my travels.

Thanks for your work.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 08, 2006 09:11 AM
I'm the author. Ubuntu fans, take no offense. I like Ubuntu. It might even be possible to put Ubuntu on GRML; I have not tried. I simply evaluated stock distros for my users.

In that context, Ubuntu's basic limitation is removing autodetection from hard drive installations. Most distros do exactly the same thing. They use autodetection for (a) the live CD, and (b) hard drive installation script, but (c) strip it out of the OS that is placed on the hard drive. The assumption involved is that a hard drive remains fixed to particular hardware. A mobile USB hard drive violates that assumption.

Even aside from that fundamental issue, Ubuntu's autodetection has quality problems. Now Ubuntu is a very, very high-quality distribution, just like Debian. I am not putting it down. It simply so happens that autodetection is a peculiar weak spot. Ubuntu developers state openly that their autodetection needs serious overhaul, not only for speed, but cleanness, capability, and maintainability. You can find their online remarks for yourself. Certainly with time, things will improve, but GRML is already there.

I hope Ubuntu eventually adopts a scheme like GRML's, one that not only boots fast, but also allows users to preserve auto-detection on hard drives.

Incidentally, street prices on rugged USB drives are much lower now (US$100 or so). With the right software, they offer a superb, cost-effective mobility solution that has not yet received the attention it deserves in Linux circles.

Mark

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 08, 2006 11:26 AM
Nice follow up Mark. What I loved about your article were the uses you highlighted for a USB drive. I find however that most of the hardware that I have or run across doesn't allow booting from a USB device, so what do you do in that case? How do you use grml when booting from USB is not an option on the PC where you are visiting.

I will admit that most of my travels bring me to older lower powered PCs which is okay with grml which boots to commandline, and has tons of commandline tools.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 09, 2006 03:17 AM
Correct, lack of BIOS support for booting USB is a problem. That's why I asked GRML to add "chainboot" capability. (The article links to GRML's consent.) Chainboot will appear in a future version. When is impossible to say, but I hope with GRML 0.7.

Chainboot works like this: it begins booting from CD-ROM, under normal BIOS control, but then loads USB drivers and "pivots" to the USB device, finishing bootup from there. Once booted, there's no more need for the CD, and you can eject it. The end result is the same as booting directly from USB.

Of course, the user must carry a CD along with the USB drive. Presumably it would be the GRML live CD.

However the chainboot problem is general. Such a CD could help any OS boot from USB on these "legacy" PCs. So maybe the idea will attract wider interest. The CD can be a small, business-card CD, since it does very little. Perhaps someone will launch a Sourceforge project.

Such tricks are not unknown. Many older projects exist for chainboot from floppy to CD-ROM. Old BIOS firmware once booted exclusively floppy or IDE hard drives, not CD-ROM. The situation then was similar. Today, 90% of PCs can boot CD-ROM. The problem is no longer chainboot from floppy to CD-ROM, but chainboot from CD-ROM to USB.

Mark

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 09, 2006 05:30 AM
Thanks Mark for the reply. I knew about Chainbooting, though I didn't realize that was what it was called. I have some of that old hardware that I use with LiveCDs and use the "Smart Boot Manger" floppy for that purpose. I didn't realize that the same could be done for USB. I would love to find a small CD that did just that. Perhaps grml-small could include that, along with the full LiveCD.

I'm going to start experimenting with Persistant Home Directory on a USB 512MB flash key with the grml liveCD. I think that might provide a great solution for me, and even lighter than a USB hard drive. I have everything I need for that, then when chainbooting comes along, I will look into laying down the cash for an USB hard drive.

Thanks again, this was a great article, and your responses have been excellent.

#

Re:Hardware detection? Not so rare...

Posted by: Anonymous Coward on March 10, 2006 08:20 AM
Chainboot is my own term (others may have used it too, I don't know). Knoppix calls it "pivot root," I think. "Chainboot" is more OS-agnostic. The technique could boot any OS.

PCs lacking BIOS USB support are getting more and more rare. This is a legacy support issue, if an important one.

If someone always works on the same three PCs (work-home-school), and all support USB, then no need for chainboot.

If someone travels a lot, esp. in poor countries, or does consulting all over town, then chainboot is desirable.

Mark

#

what are Debian standards?

Posted by: Anonymous Coward on March 09, 2006 02:41 AM
"GRML doesn't violate Debian standards the way Knoppix and Ubuntu do"

Hi, for someone who is new to the debian world (never used Deb ever) can someone explain to me what that means? I though Ubuntu was debian. Are they not compatible? Or is it some legal or technical issue?

#

Re:what are Debian standards?

Posted by: Anonymous Coward on March 09, 2006 03:37 AM
Well, I am probably the wrong person to ask. The main point is that GRML is full Debian by design. Other distros diverge from Debian by design, to different degrees.

Ubuntu does not offer 100% compatibility, though it's still pretty good. It derives from Debian, but may or may not work with any given Debian package. You can try things and see. Ubuntu has its own huge repositories, though. GRML even lists them in apt.sources.

Knoppix is a CD-ROM design, so it does not play well with hard drives. I spent much time walking through Knoppix hard drive installer scripts only to learn that it was not right for us.

Please understand that I have tremendous respect for all these projects. GRML got a lot from Knoppix, and I personally like both Ubuntu and Debian. All I am trying to do is place GRML in context for readers. Each distro has its own goals.

If you need more details then please consult the experts in the relevant support forums.

Mark

#

Making grml Even Better

Posted by: Anonymous Coward on March 09, 2006 08:50 PM
Thanks for the very nice review. Now if they developed / integrated some revision based system for the configuration files so that upon boot, you could be given a menu of "saved profiles" and select which profile to load or let it auto-detect everything by itself. This would be really useful because you might sit on a machine and configure something like the nvidia drivers and modify x.org, etc. When you come to sit on the machine again, you'd rather have it reload your profile with the nvidia drivers and modified x.org rather than having it re-detect everything and re-installing the drivers / making the necessary changes to x.org. Adding something like that would make grml one sweet distro. Adding the chainloading support for legacy PCs would also be a nice touch.<nobr> <wbr></nobr>:D

#

Re:Making grml Even Better

Posted by: Anonymous Coward on March 10, 2006 03:25 AM
GRML has that. Do your homework<nobr> <wbr></nobr>;-).


          <a href="http://grml.org/config/grml-config.html" title="grml.org">http://grml.org/config/grml-config.html</a grml.org>

I use nVidia + X.org + Fluxbox regularly on GRML. Autodetection causes no problems. Remember, GRML is a text-tools distro. It doesn't care what you do with X.

GRML does not autodetect nVidia and install the drivers. But default video ("autodetected") still works on those boards. Personally I wish GRML would autodetect nVidia.

Autodetection is the better way to go. The less thinking I must do in terms of config files, drivers, and whatnot, the easier computers are to use. Let them think for me. That's what autodetection is all about.

For that reason, I hope makers of old and new Linux desktop distros will consider using GRML as a foundation. You could not ask for a better one.

Mark

#

Re:Making grml Even Better

Posted by: Anonymous Coward on March 10, 2006 05:31 AM
Thanks. I could have sworn i posted this. It seems that I clicked on the Preview button and didn't click on the Submit button after it. Yes. The link above should give me what I was looking for in my previous post. I found this out by chatting with one of the developers over at irc://irc.freenode.net/grml You'll find the developers hang out there as well as other users. They welcome any constructive ideas.<nobr> <wbr></nobr>:D

#

Installing nVidia or ATI video drivers in GRML

Posted by: Anonymous Coward on March 10, 2006 03:39 AM
<a href="http://wiki.grml.org/doku.php?id=nvidia" title="grml.org">http://wiki.grml.org/doku.php?id=nvidia</a grml.org>
<a href="http://wiki.grml.org/doku.php?id=ati" title="grml.org">http://wiki.grml.org/doku.php?id=ati</a grml.org>

#

better me than google

Posted by: Anonymous Coward on March 10, 2006 12:38 PM
*wipes sweat from brow*
i love this idea, saves me from gdesk temptation
<a href="http://www.theregister.co.uk/2006/03/08/google_spooks_gdrive/" title="theregister.co.uk">http://www.theregister.co.uk/2006/03/08/google_sp<nobr>o<wbr></nobr> oks_gdrive/</a theregister.co.uk>
thanks grml for letting me create my own gdesk

#

Re:better me than google

Posted by: Anonymous Coward on March 12, 2006 05:34 AM
Hm, you're right. The advantages over Google Desk would be many, come to think of it.

1. The portable USB drive works with or without a functional network. Google Desk can only work if the network is up.

2. Usage bandwidth ceiling is full USB2, not network (so: no lags). You are the only user on the machine, so there's no bandwidth sharing slowdown, either.

3. Superior privacy because there's no network at all between you and the drive. You have physical possession and can disconnect the cable at any time.

4. It's here today, not someday.

5. If you *want* a clone of Google Desk, roll your own!

All you need is VNC server. Leave the drive running someplace with VNC server (or TightVNC, or whatever, secured if you want, etc.). Now from any remote PC you just log into VNC as a client.

You now have a fully functional PC at your disposal, not mere Google scripts. So, set up any office-email-graphics software you want. It's a *real* desktop, not an AJAX mockup.

Thanks!
Mark

#

Laptop users take note

Posted by: Anonymous Coward on March 15, 2006 04:12 AM
This idea can help laptop users in unusual ways. GRML offers choice on the road.

Install GRML to the laptop's internal drive. Configure GNOME, KDE, Fluxbox, home folders, etc.

When you need mobility, there are two choices. If you want the whole laptop, take it along. If you would rather leave it home, but expect other PCs (or other laptops) at your destination, clone your laptop drive to the pocket USB drive. Take the pocket drive on the road and leave the laptop home. At the destination your pocket drive can boot any machine. Reverse cloning when you get back.

Cloning is a good practice for backup anyway. GRML ships some of the software you might want to use.

But if you don't like cloning, many vendors sell cheap, external USB cases for laptop hard drives. They come in IDE, SATA, and SCSI flavors. Physically remove your laptop's internal drive and install it into the case. Now plug it into the laptop USB port, power up, and install GRML from CD-ROM using grml2hd.

In this scenario you have the same mobility choice. You can either take your whole laptop or just the pocket drive. The difference here is that electing the laptop means taking the pocket drive, too, since it's needed for boot. But you never have to clone or sync, because there's only one drive, no matter what you do.

If someone steals your laptop, at least they don't get your data and you don't lose it. You can strategize by keeping the laptop and USB drive separate. The pocket drive is only book-sized, so if the contents are critical, carry it on your person and check as luggage the "empty" laptop.

Mark

#

Easy Dual Boot

Posted by: Anonymous Coward on March 23, 2006 04:10 AM
Dual booting is simple. No changes are made to Windows IDE drives or Master Boot Record (MBR). You will have another MBR on the external drive.

After running grml2hd, boot from the USB drive. Add these lines to<nobr> <wbr></nobr>/etc/lilo.conf :

other=/dev/hda1 # your Win partition: hda4, hdc1, hdd2, whatever

        label=win_2k # appropriate OS name for menu, no spaces

        table=/dev/hda # your Win drive: omit partition number

        master-boot

Run "lilo -v" to record the change.
In BIOS, put USB before IDE hard drives in boot priority list.

You can now boot Windows with or without a USB drive attached. If a USB drive is present, LILO boots according to menu selection. If a USB drive is not present, Windows boots as before.

#

Neat

Posted by: Administrator on March 13, 2006 04:29 PM
I agree it is top 10 material thanks for the cool link i would have never found if you had not reccommended it!

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya