Slashdot Mirror


The Swiss Army Knife of Linux?

e8johan asks: "I recently found the BusyBox project that combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. As I look through the list of products and projects using BusyBox I find that most installers use it (RH, Slackware, Mandrake, Gentoo, etc.) As the footprint of this is very small, I came to wonder, are there any other smaller versions of common linux software. I found TinyX and the small linux project but I lack a proper desktop. Does anyone has a small desktop solution (like KDE or Gnome) to recommend. What I'm looking for is a proper desktop solution with common configurations tools, standardized IPC and common look-and-feel, not just another window manager."

39 comments

  1. Swiss army knife?! by dacarr · · Score: 5, Insightful

    There is already a swiss-army chainsaw. It's called Perl. Why get a knife? Isn't bigger better?

    --
    This sig no verb.
    1. Re:Swiss army knife?! by flikx · · Score: 5, Informative

      You don't even understand the question.

      When you need to fit a full featured unix system on an install disk / rescue disk / embedded system / light hardware / etc., you need something like busybox. Sure, /usr/bin/perl is about 10K, but what about the rest of it?? And who the hell would write a full set of system tools in perl??

      And furthermore, the submitter is asking about a light desktop system. My answer: IceWM, "just another window manager".

      --
      One future, two choices. Oppose them or let them destroy us.
    2. Re:Swiss army knife?! by Anonymous Coward · · Score: 2, Informative
      You may be interested in this thread, in which Jim Thompson (a real smart guy you've probably never heard of) explains his difficulties in fitting a tiny perl onto linux device with a small amount of flash space, for the purposes of running NoCatAuth. Jim lists all the files on his setup, and you can see how much bloated crap came along with perl.

      http://musenki.com/pipermail/musenki-dev/2002-Apri l/000003.html

    3. Re:Swiss army knife?! by saintlupus · · Score: 1

      Jim Thompson (a real smart guy you've probably never heard of)

      Sure I have. He wrote _The Grifters_, right? And _The Killer Inside Me_?

      Jim Thompson rocks. And I'm really glad to finally use something from that English degree here on Slashdot.

      --saint

    4. Re:Swiss army knife?! by Anonymous Coward · · Score: 1, Informative

      2diskxwin:
      http://freshmeat.net/projects/natld

      seems to have lots of minimalist X utils and apps

      wm,fm,web browser, ssh/ssl, games (about different 6), terminal, taskbar, popup menus, dialogs, gfx stuff, all based around Xaw widgets, and the vesa X window system all compressed down to around 1.7Mb

      theyre site seems b/w capped so problems occur if more than a couple of ppl want to download per day.

      happy slashdotting ;-)

    5. Re:Swiss army knife?! by dougmc · · Score: 2
      Last time I used Slackware (and yes, it was a long time ago -- it was a nice step up from SLS) it's installer used perl4, and it fit on a floppy. I don't think it was the full perl4 install, but it was enough and it worked well. Very well, actually.

      perl5 won't fit on a floppy anymore. Yes, the main executable will --

      -rwxr-xr-x 2 root root 797972 Feb 20 2002 /usr/bin/perl
      but all the modules won't, and perl isn't *nearly* as much fun without the modules. Yes, I guess you could still use perl4, but it's hard trying to write anything for perl4 now.

      But if you do want your basic *nix utilities written in perl, search for `ppt perl power tools' and you'll find lots of them, already written for you. I wouldn't really call it a good way to save disk space, but I have found them useful in the past (mostly as examples, because I do most of my programming in perl.)

      Putting an installer on a single floppy is hard. In fact, putting anything useful on a single floppy is hard (and kudos to those that have done so!) but I hope the floppy dies out soon. I hate floppies. Hate hate hate. Don't hold squat, and are so unreliable -- my daughter (age 1.5) takes a while to destroy a CD, but a floppy she ruins in 15 seconds flat :)

    6. Re:Swiss army knife?! by Anonymous Coward · · Score: 0
      um, right
      sam@krypton:~$ ls -lh /usr/bin/perl
      -rwxr-xr-x 2 root root 948K Sep 14 12:06 /usr/bin/perl*
    7. Re:Swiss army knife?! by flikx · · Score: 1

      <(flikx[0]@screamapillar ~)>
      {2:1009 ->}$ uname -a
      Linux screamapillar.localdomain 2.4.19 #1 Sun Sep 29 18:01:23 MDT 2002 i686 unknown unknown GNU/Linux
      <(flikx[0]@screamapillar ~)>
      {2:1010 ->}$ ll -h /usr/bin/perl5.8.0
      -rwxr-xr-x 1 root root 10K Sep 6 15:41 /usr/bin/perl5.8.0*

      ---

      [flikx2:~] flikx% uname -a
      Darwin flikx2.tacc.utah.edu 6.2 Darwin Kernel Version 6.2: Tue Nov 5 22:00:03 PST 2002; root:xnu/xnu-344.12.2.obj~1/RELEASE_PPC Power Macintosh powerpc
      [flikx2:~] flikx% ls -l /usr/bin/perl
      -rwxr-xr-x 1 root wheel 20344 Nov 12 09:48 /usr/bin/perl

      ---

      {flikx(0)@sub2 flikx}$ uname -a
      FreeBSD sub2.eng.utah.edu 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compil e/GENERIC i386
      {flikx(0)@sub2 flikx}$ ls -l /usr/bin/perl
      -r-xr-xr-x 3 root wheel 10224 Jan 28 2002 /usr/bin/perl

      --
      One future, two choices. Oppose them or let them destroy us.
  2. I highly recommend by DeadMeat+(TM) · · Score: 4, Funny
    this versatile entry into the 1988 IOCCC.

    Some user configuration is required, of course.

  3. Midnight Commander by Anonymous Coward · · Score: 5, Interesting
    I'm not sure exactly what your expectations of a "common desktop environment" are. But there is a floppy bootable linux that contains midnight commander, and midnight commander contains a lot. A syntax highlighting editor, the ability to use ftp servers as a virutal filesystem, compare directory trees, etc.

    http://paud.sourceforge.net/

    I was going to look at your homepage to see what type of background you came from, if you might mean only graphical stuff as a desktop environment. However, I was immediately confronted with a warning that "The contents of this page may not be copied without my written permission." As looking at your page in a web browser makes a copy of it, I hastily hit the back button and cleared my cache. Please don't sue me, and I'm posting AC just to be sure.

  4. Oxymoron by Linux_ho · · Score: 5, Funny

    Does anyone has a small desktop solution (like KDE or Gnome) to recommend.

    Heheheh. That's a good one.

    --
    include $sig;
    1;
    1. Re:Oxymoron by Bastian · · Score: 5, Informative

      Not entirely. There is xfce (www.xfce.org), a CDE-like desktop environment. I used to use it on my old P133 w/ 16mb of RAM, and it worked much more nicely than Gnome or KDE, which kept my computer in a pretty constant state of swapping.

    2. Re:Oxymoron by McCarrum · · Score: 1

      I have to pipe up here, and second this recomendation. Whilst I use KDE on the desktop machines here at my work, we've moved to using xfce on our servers (where we use a WM anyway). This WM has really grown on us; it's fast, stable, and works well enough to expand its funcionality WITHOUT adding too many bells and whistles for their own sake. Do yourself a favour and take a lookskie.

    3. Re:Oxymoron by ameoba · · Score: 2

      A while back, I had a system running on an old 486DX2-50 and 24MB of RAM. To squeeze everything needed onto it, I ended up going with an old (pre-GNOME/KDE) Slackware distro. One of the more interesting bits of software I ran into was a suite called TkDesk. It provides a desktop, app launching bar, file mangler & a number of small utilities (like the emacs-clone text editor), all written in TCL/Tk, and it ran like a dream on that anemic old beastie.

      --
      my sig's at the bottom of the page.
  5. Re: Perl Power Tools by sICE · · Score: 4, Informative

    PPT :-)

    SiCE

  6. Swiss Army Chainsaw... by diablo-d3 · · Score: 0, Redundant

    Why not just use Perl? Its the answer to everything! Even operating systems are written in it!

    --
    Patrick "Diablo-D3" McFarland || http://AdTerrasPerAspera.com
  7. well by fault0 · · Score: 1, Redundant

    the story author really should have put in a url to busybox.. here it is.

  8. There are limits by TheSHAD0W · · Score: 4, Interesting

    Trying to fit a memory-intensive desktop system into a small space is going to be difficult because they're opposite goals. System 6 and prior MacOS did it, but only by using black-and-white graphics and not providing most of the tools you'd expect nowadays from a graphical desktop. I think even GEOS needed several disks worth of data to load its desktop. And if the goal is to allow novice users to operate small distros, they'd take one look at that desktop and go "ew! Linux sucks!" and switch back to Windows.

    1. Re:There are limits by nickos · · Score: 1

      Hmm. Off the top of my head, the Amiga 1000s operating system (including GUI) fitted onto a 880k floppy. Also note that the number of colours used really has very little to do with anything apart from video memory usage. Or do you really think that it's much slower for instance to draw a grey rectangle than a white one?

    2. Re:There are limits by TheSHAD0W · · Score: 2

      If you're writing 8 pixels for each byte of data you transfer to the video adapter, then yes. But speed isn't the question; it's all the nice, antialiased fonts and window effects and code libraries that users are now familiar with and used to. If you don't believe me, do some work on an old Mac SE. Or even that Amiga, running the old OS. You'll find the windowing system laughable and grating.

    3. Re:There are limits by LoonXTall · · Score: 1

      The Amiga GUI--in OS1.3--is still better than Windows 9x. Death to auto-raising! However, the superior configurability of FVWM2 makes it better than the Amiga, because now I can determine size, position, and depth from any point along the window border.

      Windows always makes me feel like I'm trying to use a brick designed as an answering machine for a calculator. It's just inconceivably stupid.

      Then again, all that's purely subjective, so both of these posts are a complete waste of time.

      --

      ~~~LXT~~~
      Life is like a computer program: anything that can't happen, will.

    4. Re:There are limits by LUN!X · · Score: 1

      I believe this might be of some help, since the request was phrased Does anyone has [sic] a small desktop solution (like KDE or Gnome) to recommend. ? Of course you'll trade blinding speed for a lack of programs. It's totally different from Linux and it's not for everybody (yet!!) but it all fits on one floppy with a meg or so to spare so check it out.

  9. Embedded/Small Systems by MonMotha · · Score: 5, Interesting

    There are many efforts to putting Linux (and other UNIXes) in places with limited amounts of space.

    handhelds.org is all about running Linux on ipaqs. Space is a concern, of course, so various things are done. The conversion to Busybox has recently been made, saving almost 2MB of space as I recall.

    There's also uClibc. The smallest I've ever seen glibc is about 1.5-2MB. uClibc clocks in at about 200-700kB. That's small. This is used when you just don't have space available, such as on the TuxScreen with only 4MB of bootable flash and on many rescue disks and floppy based Linux systems.

    Remember you don't want to cut corners all the time. On your desktop, it's probably best to run the full-blown GNU utilities. They have extra options that, while not commonly used, have obviously proven useful enough times to be included.

    However, if you only have 16-64MB to work in, and you want to have lots of other stuff, busybox is a very viable option that I would reccomend if you have trouble fitting stuff in. Don't use it when you've got gigs of hard drive space to play with though.

    1. Re:Embedded/Small Systems by MonMotha · · Score: 2

      Hum, Looks like I forgot my conclusion :)

      The idea was to look at what these guys who put Linux in sub-64MB spaces and see what they use. These people spend a lot of their time making the system to making it fit in a reasonable amount of space. If size is a concern, chances are a project has addressed it before.

    2. Re:Embedded/Small Systems by Anonymous Coward · · Score: 1, Informative

      I believe the project at paud.sf.net has a glibc that is 400k on it. Download and boot and ls -l /lib/

    3. Re:Embedded/Small Systems by grammar+nazi · · Score: 4, Informative
      My Iopener has a 16MB flash chip. All of the following fits with 1MB to spare (check out the JAILBAIT linux distribution at sourceforge)...


      blackbox

      busybox

      esd

      email client (i forgot which one)

      Netscape 4.72 (that's right!)

      USB ethernet drivers

      mpg123

      I forgot what else, but their were a few other cool things.

      --

      Keeping /. free of grammatical errors for ~5 years.
  10. Build your own? by Raleel · · Score: 5, Informative

    Well, i don't knwo if this helps you, but I recently put together a desktop set up for some lower end pentiums. It consists of

    1) IceWM
    2) RoX
    3) gnumeric
    4) abiword
    5) opera
    6) gnucash
    7) gaim
    8) gimp
    9) sylpheed

    I also used redhat 8's backgrounds, although the actual software was mostly from mandrake 9.

    Honestly, i'm not sure this is what your looking for anyways.

    --
    -- Who is the bigger fool? The fool or the fool who follows him? --
    1. Re:Build your own? by nesthigh · · Score: 1

      I use IceWM with Rox.. quite nice.. and very light.. but you lost me after that.. gnucash for example has some crazy requirements.. like libKitchenSink.so.. and if you are going to have all the gnome cruft for gnumeric why not just run Galeon. Opera is either static (yeah, that's light), or you need to have qt and openmotif (for plugins). Links2, with it's new gui mode, is really nice and light. It's only 2.7MB here, and that's with svga/X, ssl, and cookies. =)

      next

  11. Check out UPX, a binary packer. by kcurrie · · Score: 5, Informative

    UPX, the Ultimate Packer for Executables is great when you don't have alot of diskspace available. It uncompresses binaries on the fly VERY quickly, so fast in fact that after compressing large programs you'll find that they are up and running FASTER than if they are not packed, simply because it can uncompress faster than it takes to load unpacked code from disk. It apparently can do something like 10MB/s decompression on a P133. ..anybody remember PowerPacker and the ilk on the Amiga? Those programs were worth their weight in gold when working on a floppy based system.

    --
    -- I speak only for myself.
    1. Re:Check out UPX, a binary packer. by O · · Score: 1

      Yeah, it decompresses it to /tmp and exec's it. If you don't have enough temp space to hold the decompressed binary, it won't work. I'm not sure how it works on windows.

      I've run into this problem before, and couldn't figure out what the problem was. Then I ran strace on it, and saw it was execing a file in /tmp.

      --

      1, 1, 2, 3, 5, 8, 13, 21 -- Mathematics is the Language of Nature.
    2. Re:Check out UPX, a binary packer. by Per+Wigren · · Score: 2

      The development version decompresses direct to memory! It can also compress linux-kernels and make them bootable with any bootloader, as if it was uncompressed.

      --
      My other account has a 3-digit UID.
  12. In my day by Anonymous Coward · · Score: 0

    we'd
    COPY /B CON PROGRAM.EXE
    and wes liked it!!!

    1. Re:In my day by Mdog · · Score: 2

      in *my* day we used PR #'s damnit!

  13. smallest X window distribution? by Anonymous Coward · · Score: 2, Informative

    http://freshmeat.net/projects/natld/

    has lots of stuff

  14. "Desktop Environment" and "Small and Efficient"... by Heretik · · Score: 1

    ... Are mutually exclusive.

    If you want a small graphical system, just run a window manager. All of the extra (unneeded) crap that comes with a "desktop" is always going to be larger. Always. There's more there, therefore larger. So don't argue. :)

  15. I have a vested interest in efficient software by JessLeah · · Score: 2

    And would love to create a central list of "smaller alternatives to common software". (Also a central list of "freer alternatives to common software").

    Anyone up for creating a Yahoo! Group to discuss? Or does anyone have a better solution like some free mailing-list server?

    We could chat as a community, and build a list...

  16. I thought.. by domninus.DDR · · Score: 1

    This is exactly what Linux from scratch was for.

    1. Re:I thought.. by Anonymous Coward · · Score: 0

      You thought wrong.