Slashdot Mirror


Running a Linux Live KDE Desktop In 210MB

An anonymous reader writes "Slax 7.0 is a Slackware-based Linux distribution that can provide a Live USB/CD environment complete with the KDE4 Plasma desktop in just 210MB of space. Slax can also be customized with other software modules to provide lightweight Linux installations for varying tasks. For those curious how this lightweight Linux distribution has pulled off the feat of being small and fast, Slax creator Tomá Matejícek wrote a technical article explaining the Slax internals with booting a modern Linux desktop in just ~200MB."

71 of 106 comments (clear)

  1. Impressive by kthreadd · · Score: 3, Insightful

    But it's also a bit sad that 210 MB is considered tiny.

    1. Re:Impressive by blahplusplus · · Score: 1

      Well considering computing power and the fact that 8GB of ram is $40 and 32GB of ram is around $130ish, 210MB seems awful small. Since 210MB is roughly around 2.6% of 8 Gigabytes.

    2. Re:Impressive by datapharmer · · Score: 5, Interesting

      not all of us consider that tiny. There are still a few programmers out there who recognize that doing everything high-level using huge libraries isn't necessarily the only option for a modern os. My favorite are there guys: http://www.menuetos.net/ Not linux, but definitely cool.

      --
      Get a web developer
    3. Re:Impressive by Kjella · · Score: 1

      It's still far more just to reach the desktop than most of us used to have as total system RAM. Of course comparing it to the DOS era isn't exactly fair but we sure had a full GUI in far less too.

      --
      Live today, because you never know what tomorrow brings
    4. Re:Impressive by Anonymous Coward · · Score: 1

      210 MB disk space, not RAM.

    5. Re:Impressive by dreamchaser · · Score: 1

      You do have a point. The first PC I coded on had 1k and I had fun with it. It also didn't have a graphical desktop or other modern software, so your point, while valid, is also somewhat limited.

      That being said I ran Linux and OS/2 on a system with 24 megabytes of RAM and 110 meg hard drive. I browsed the web, did email, etc. Software bloat is here to stay though.

    6. Re:Impressive by nurb432 · · Score: 1

      Yup. I remember having an OS, GUI, and all apps i needed that came in under 5mb. And while it may not have been as 'pretty' as we have now, it ran just fine on the hardware of the day and got the job done.

      --
      ---- Booth was a patriot ----
    7. Re:Impressive by nurb432 · · Score: 1

      There were other options than DOS back then too.

      TOS+GEM for one.

      But, we did have DesqView for DOS in that timeframe.. ( Or DesqviewX if you wanted something a bit prettier, and network friendly )

      --
      ---- Booth was a patriot ----
    8. Re:Impressive by thetoadwarrior · · Score: 1

      We are at a point where that's reasonable to download on 3G. It definitely isn't big.

    9. Re:Impressive by craigminah · · Score: 3, Funny

      You probably had trouble coding back in the day due to all the pterodactyl attacks.

    10. Re:Impressive by future+assassin · · Score: 1

      I just did a recovery usb drive for WIndows 8. Required min 20GB now that is SAD. Threw on Linux Mint 14/KDE on it and son is happy with his new laptop present. I did the recovery just for warranty purposes.

      --
      by TheSpoom (715771) Uncaring Linux user here. I have nothing to add to this but please continue. *munches popcorn*
    11. Re:Impressive by hairyfeet · · Score: 1

      Hell it isn't even that tiny, both TinyXP and Tiny7 use less RAM running the full desktop. Sad that the pirate editions run better than the retail, but that has been true of software for quite a few years now.

      Of course all this ignores the bigger picture which is that any machine so old that its maxed out with less than 512MB of RAM will end up sucking down more power than it worth therefor won't be worth keeping. Lets face it a good 90% of the old junkers you find are P4s, they cranked out so many millions of the P4s that you practically trip over the things and the P4 was such a power hog its simply not worth keeping. You can buy an ARM stick with Linux on it for less than $40 or if you absolutely HAVE to have X86 support you can get an Atom or Bobcat board for around $100 that gives you several times the speed and uses less power under load than a P4 will use doing nothing.

      I was one of the biggest advocates for saving systems from the dump but in very few cases such as old laptops, the AMD single cores and Via CPUs does it make sense and in every other case the power sucked by the system makes it not worth having. Lets face it nobody gave a shit about power usage for a good chunk of the decade.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    12. Re:Impressive by sound+vision · · Score: 1

      You'd think, but it seems like 80% of the posts on this article are talking about RAM.

    13. Re:Impressive by UltraZelda64 · · Score: 1

      To be fair, the article’s title, "Running a Linux Live KDE Desktop in 210MB" does almost sound as if it's hinting at RAM use ("Running ... in 210MB"). Maybe something like "Fitting a Linux Live KDE Desktop on a 210MB disc" would have been more clear.

      I have to admit, even though I know about Slax and have tried the latest version, even I got confused after reading all these comments about RAM and then re-reading the article's title.

    14. Re:Impressive by robthebloke · · Score: 2

      My speccy 48k does that in 16kb rom space. Not saying the two are directly comparible, but it sure does make 210Mb sound somewhat less impressive....

    15. Re:Impressive by dreamchaser · · Score: 1

      You probably had trouble coding back in the day due to all the pterodactyl attacks.

      Get off my lawn! ;)

    16. Re:Impressive by bejiitas_wrath · · Score: 1

      And GEOS for DOS as well. That was pretty good. http://en.wikipedia.org/wiki/GEOS_(16-bit_operating_system)

      --
      liberare massarum ex ignorantia, clausa descendit molestie.
    17. Re:Impressive by hairyfeet · · Score: 1

      Yes I have, in fact I keep an AMD Sempron from 04 as a nettop in the shop. it doesn't change the fact that Netburst was a piss poor design, it was made to go through power like shit through a goose and long as the clocks kept climbing. This had 2 major consequences, 1.- it used more and more power, until it finally got too much for even Intel around the Prescott era and they started to scale back, and 2.- Having those crazy long pipes that allowed you to get such high clocks made its IPC really terrible, in fact the first compiler rigging by Intel was NOT targeted at AMD but their own Pentium 3 because the benches were showing a 1GHz P3 stomping a 1.5GHz netburst.

      Now I only mentioned ARM because it was a Linux article and if all you are doing is web surfing a basic dual core ARM will handle that alright, but if it were me? Throw out the guts and get an AMD Bobcat board which will get you more IPC processed and dual cores with full HD acceleration while using just 18w on max load and less than 10w when it comes to most tasks. When you look at how much power a P4 goes through compared to a bobcat it really is a no brainer, depending on where you live you could make up the cost of the board and RAM in less than 8 months of lowered cooling and power suckage and after that it'd be gravy.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    18. Re:Impressive by smash · · Score: 3, Insightful

      a GUI without networking support, a javascript engine, composting window manager, an easy to develop for windowing toolkit, etc, etc.

      Time moves on. More levels of abstraction require more resources but make more powerful apps possible without the programming being too hard to bother.

      RAM is cheap. Programmer time is expensive...

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    19. Re:Impressive by smash · · Score: 1

      Cool yes. Successful enough to make it mainstream? No. Development time is not cheap. High level languages and libraries exist to cheapen the cost in development time.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    20. Re:Impressive by smash · · Score: 1

      No, but Atom IS as powerful. More in fact.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    21. Re:Impressive by BrokenHalo · · Score: 1

      Not too many pterodactyls where I worked, but the first computer I used (a Burroughs B3700) back in the '70s got the job done with less than 128K of usable (core) memory. I'm just glad I wasn't paying for the power bill. The computer was bad enough, but it needed a serious air-conditioning system to keep the room temperature from rocketing to 50+ deg. C in just a few minutes...

    22. Re:Impressive by ByteSlicer · · Score: 1

      You probably had trouble coding back in the day due to all the pterodactyl attacks.

      Nah, they couldn't get into the basement of my parents' cave. Bugs on the other hand were pretty fatal in those days.

      Once I had a giant centipede crawling through my rock memory. Nasty critter, always trying to add random bytes. I attached my debugger stick and, after poking for its exact location, purged it with a rock-fill algorithm. I had to clean out my system for weeks after that. Since then I always lit up my fire wall to keep out the worms.

    23. Re:Impressive by Sedated2000 · · Score: 2

      I've been following MenuetOS for years now. I love the fact that it can run uncompressed on a single floppy. It has a fairly modern UI and can do a lot of the same tasks that most major operating systems do, but in a far smaller footprint. It's also very fast. It makes me feel like any other operating system is just being wasteful.

    24. Re:Impressive by TheGoodNamesWereGone · · Score: 1

      I ran OS/2 Warp in 4MB! Now get off my lawn.

    25. Re:Impressive by Blaskowicz · · Score: 1

      And a new motherboard costs more than those 8GB. Why that fallacy that everyone owns a very recent computer? Mine is only three year old and stuck at 2GB.

    26. Re:Impressive by Blaskowicz · · Score: 1

      a dual core Atom will probably win an encoding benchmark but I'd safely bet a Pentium 4 3GHz still is faster for a single-threaded task such as browsing a web page.

    27. Re:Impressive by smash · · Score: 1

      Where are the apps? Why isn't it mainstream?

      I'll tell you why: because 4gb of RAM is worth about $30, and other toolkits are easier to develop for due to pre-existing library use and additional layers of abstraction.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    28. Re:Impressive by corrosive_nf · · Score: 1

      that is your own fault for not doing research in regards to upgrades. You shouldn't have bought a computer 2 years ago that only supported 2GB. The board in my wifes pc is from 2006 and supports 8GB.

  2. I agree by tlambert · · Score: 2

    And most of it ends up getting spent in memory for unnecessary eye candy.

  3. Correct name by sheeryjay · · Score: 1

    Perhaps someone could fix author's name in summary to "Tomá Matjíek" which is much more correct? That being said, I think Slax really is good live distro enabling user to customize it greatly, build and download customized versions (want localization to language XY? want wine? Do not want wine? Slax got it all - or will get once the modules are finished for 7.0 version).

    1. Re:Correct name by sheeryjay · · Score: 1

      I did not check my preview correctly. So it seems that slashdot eats some unicode characters like S with V accent, E with V accent etc. Pretty sad. Anyway in that case closest we can get correct is to throw away all accents and just use "Tomas Matejicek"

  4. Porteus by Anonymous Coward · · Score: 1

    Because of the lack of activity with this distro, I feel, most people would have moved to Porteus who had the same goals as Slax for being small and functional. Also, Porteus offers LXDE as a DE as well.

    1. Re:Porteus by aliquis · · Score: 1

      Sadly for the people forced to use 32bit Porteus use the trinity desktop instead.

  5. "Running"? by aliquis · · Score: 2

    Running to me would mean "load into RAM" rather than "stored on a plastic disc."

    I wanted to see what this was about if it was running in 210 MB of RAM because that would be a bitch to use from my experience but it wasn't running it all.

    A live image with KDE4. Whoop-di-fucking-do.

  6. Poor editing yet again by macraig · · Score: 4, Insightful

    Reading both the title and summary, it was completely unclear whether "space" refers to random access memory or mass storage. They're not yet one and the same, though you wouldn't know it from reading this summary.

    1. Re:Poor editing yet again by Anonymous Coward · · Score: 1

      The summary refers to the amount of disc space (on the Slax CD). Most distributions can run KDE with just a little over 200MB of RAM, it's packing the desktop (and all of the distribution's tools) into 210MB of disk space that is impressive.

    2. Re:Poor editing yet again by AC-x · · Score: 1

      For me "space" is always disk space ("I don't have enough space to save that file"), I've never heard RAM referred to as space.

    3. Re:Poor editing yet again by macraig · · Score: 1

      Look at some of the other comments; others presumed it referred to RAM and responded to that presumption.

      The word "space" alone, in terms of bit storage tech, is simply not an unambiguous reference to mass storage. Personally I have never used the word unqualified as this summary does; it's fucking lazy, careless, and presumptuous, none of which are desirable traits in an editor. At most I might say "disk space", but that *is* sufficiently unambiguous.

    4. Re:Poor editing yet again by BrokenHalo · · Score: 1

      it's packing the desktop (and all of the distribution's tools) into 210MB of disk space that is impressive.

      Not really, though, if you have to burn a CD. You're left with a whole bunch of space left unused that could be filled with useful stuff.

    5. Re:Poor editing yet again by mcgrew · · Score: 1

      Not really, though, if you have to burn a CD. You're left with a whole bunch of space left unused that could be filled with useful stuff.

      Well, you could make a multimedia CD that you could play music in your car or install Linux on your Pi. Or you could use one of those CDs that fit in a pocket.

    6. Re:Poor editing yet again by Blaskowicz · · Score: 1

      CDs are crap anyway, the smaller the size, the less likely you'll get reading errors.

  7. If you don't need X Window, it could even smaller by the_humeister · · Score: 2

    Besides, what self respecting geek uses a GUI???

  8. Re:If you don't need X Window, it could even small by smittyoneeach · · Score: 1

    Or anything other than emacs, for that matter.

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  9. Re:If you don't need X Window, it could even small by evandrofisico · · Score: 1

    I don't know much about the latest version (7.0), but on previous versions Slax could be reduced to use only the "core" module, which used to be around 50Mb containing only command line tools. It is very handy as a base to build a personalized live cd using slackware packages or a remote boot image.

  10. Why? by csumpi · · Score: 1

    1gb memory costs less than $5 on the consumer market.

    My desktop has 16gb memory. My laptop has 12gb. My phone has 2gb. Hell, even the mk802 has 1gb.

    So what's the point?

    1. Re:Why? by Osgeld · · Score: 2

      here is the situation I run into often. User / mom / me has a computer that windows or the hard disk itself has just taken a nasty smelly splatter shit on and wont boot, you need to get in there gather files and settings cause its just good practice before screwing someones machine up. You reach for a linux distro, and you have a modern mint which takes ~20 min to boot from a dvd, or this (I often use DSL) which can get you into a file manager within seconds.

      Now if the last thing you want to be doing all night is dicking with a computer, you sure as heck dont want to be sitting there doing nothing while some overbloated OS bogs its way off of CD or USB just so you can drag n drop from A to B.

    2. Re:Why? by gl4ss · · Score: 1

      boots fast off an usb drive?

      210mbytes has little to do with how much memory it consumes when running(well it has a bit to do with it but anyways.. the 210mbyte is just how much the system takes up space on disc/k).

      --
      world was created 5 seconds before this post as it is.
    3. Re:Why? by balise · · Score: 1

      Yes, exactement. You too many times end up "dicking with" a broken computer.

      --
      John Eadie [JE46] http://www.c-art.com `one of these days the dogs aren't going to eat the dog food' - Bill Joy
    4. Re:Why? by evandrofisico · · Score: 1

      Also, slax has a "run from memory" mode where the whole distro is loaded to ram, and as such after booting it runs hellish fast. So a computer with 1Gb of ram can still run the whole OS from ram very fast. I already used this mode to boot slax on a whole computer lab/classroom from a single usb drive.

    5. Re:Why? by Caedite+Eos · · Score: 1

      _MY_ laptop is maxed out at 512. Slax, or Slax type distros, are godsends for it. Not everyone can have, or needs, a new laptop with more memory than useful for most tasks.

    6. Re:Why? by epyT-R · · Score: 1

      Because, most software today seems to expand outward, consuming more and more resources without getting anything more done or making things any better for the user. It just allows 3rd rate programmers the opportunity to make money. Without all those gobs of ram and disk space, they wouldn't be competitive.

      Projects like slax are done, if nothing else, to see if it's (still) possible for software to scale well. An environment that can operate acceptably on 1993 era hardware and still scale to use today's is a damn good design. I wish the kernel and glibc guys still attempted to use their stuff on 486s sometimes, just to get some perspective on what their old code could do with puny hardware. It should be a requirement for new college undergrads to get their code running well on anemic hardware. It would save us the bloated mess that passes for software today.

    7. Re:Why? by rHBa · · Score: 1

      If the host computer is too slow to run a full on distro why not spend 5mins removing the drive and plugging it into a faster computer? There are many, cheap USB -> IDE/SATA adapters on the market.

    8. Re:Why? by Osgeld · · Score: 1

      its not a question of if the computer is too slow, its waiting on it to boot, I dont care if you have a brand new cray, CD drives have not gotten any faster, and usb sticks are not that much better.

        removing the drive and putting it in another machine takes almost as long as waiting on a full distro to boot, I carry a 128meg stick around on my keychain and it takes seconds to boot (again DSL) and lets me inspect the machines file structure ... I dont always have another pc to play host on me, nor do I want to disassemble a computer when all I want to do is see what is wrong with it before making an repair estimation.

    9. Re:Why? by smallfries · · Score: 1

      Making the install size of the system smaller enables new applications and ways of using the system. At the moment an operating system is a giant monolithic install tied to a signle machine. I would prefer a single install shared across all of my devices. To make this work the OS would need to be synchronised / reconciled across a network connection on demand. Like a cloud OS but not running on public hardware - just migrating between devices that I own. As size as a direct impact on performance (time to start up, to reconcile) the install size could never be small enough.

      There are smaller devices than you acknowledge. Memory and storage are the dominant costs in those devices and reducing the need for both enables cheaper classes of device. The Pi is an interesting machine for $25, but what happens when a desktop-capable machine costs $5, or $1?

      Lastly, flash is nice but it still is not as fast as DRAM. Having an entire OS install cached in memory has advantages for performance.

      --
      Slashdot: where don knuth is an idiot because he cant grasp the awesome power of php
    10. Re:Why? by smash · · Score: 1

      In 2012 you can buy a machine with a couple of gigs of ram for under a hundred bucks. Hell, my 2007 built machine has 4gb of RAM in it. Rather than fucking around with hardware from 5-10 years ago, you could buy someone's cast off machine with a couple of gigs and have a much nicer experience.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    11. Re:Why? by rHBa · · Score: 1

      Sorry, I thought you just wanted to recover the data. Personally I just whip out the old HDD (takes 5mins in most cases, probably a lot longer for a Mac though) and plug it into my laptop (which boots in like 1min) via a USB adapter. From where I can run all sorts of recovery tools as fast as the HDD can work and without dealing with a sluggish interface on the host machine.

  11. Re:If you don't need X Window, it could even small by sconeu · · Score: 1

    Those of us who think that running ONE OS at a time is more than enough. We don't need to run two.

    --
    General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
  12. Flashback by AC-x · · Score: 3, Interesting

    Speaking about minimal bootable OSs, I just had a flashback to this 1.44mb bootable QNX tech demo, which includes a GUI, network stack and javascript capable browser (also check out the vintage slashdot screenshot at the bottom)

    1. Re:Flashback by smash · · Score: 1

      I remember a friend and I got Windows 3.1 to run from 1.44 floppy before. Slowly.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  13. But will it run on a 80386? by jfdavis668 · · Score: 1

    Or did it drop that support like the latest Kernel?

    1. Re:But will it run on a 80386? by Osgeld · · Score: 1

      noting since like year 2000 would support a 386 anyway (even if you scurried up 48 megs worth of simms), I know I checked them all. And to be honest a 1998 distro (both debain and slackware) ran so god awful slow, they were functionless on a pentium.

  14. who cares by Vince6791 · · Score: 2

    with multicore cpu's, gigabytes of ram, usb flash stick greater than 16gb, nobody needs to run 200mb linux live distro we can run 4gb+ and we wouldn't see any major hits to performance. I have run small distros to large distros on netbooks and laptops just don't see the benefit of using something as small as this one with no libreoffic or other apps included. This is no longer the 90's or 2000's, we can fit a big ass distro on a usb flash disk with all the software we need.

  15. Re:do they mean disk or mem? by marcosdumay · · Score: 1

    They mean disk. And download size.

  16. small AND customizable by sdnoob · · Score: 2

    slax is a nifty little slackware-based distribution that is easily customized -- just copy the extra modules you want automatically added to your flash drive. previous versions have been a go-to for me whenever i need to boot up quick to copy stuff off an ailing system before it takes a dump.

    used to be a suse studio-like web-based customizer, dunno if they'll do that again for version 7. but i hope they at least do a new popcorn edition (with xfce instead of kde).

  17. Re:I wanna know something by Anonymous Coward · · Score: 1

    I don't know what kind of feud you have going with erroneous, but that does NOT make it okay for you to spew your puke comments all over Slashdot!

    Nobody else wants to read that shit; it's irrelevant. You're irrelevant. Please go away now.

  18. Re:This isn't news by unixisc · · Score: 1

    Pretty true. I mean, most distros would either have KDE as their default DE or at least offer it as an option. So if one wants KDE, one can scour all Linux (and BSD) distros, and pick what else they need from the distro collection.

    Hopefully, Razor-qt would be as common as LXDE and XCFE going forward.

  19. Re:If you don't need X Window, it could even small by smash · · Score: 1

    Those who... you know... what to do stuff other than work. Like watch star trek.

    --
    I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  20. Re:This isn't news by realityimpaired · · Score: 1

    And Enlightenment e17 can boot in under 40MB. Can't have anything open at that memory usage level, but you can have a fully working desktop environment with compositing effects (assuming hardware video acceleration is enabled).

    Booting with over 200MB of memory usage is not something I would be bragging about....

  21. Smaller, cleaner by billstewart · · Score: 1

    You could run SunOS on a Sun-3 with 4MB of RAM, though it was a lot happier with 8-16, networking worked fine, choice of NeWS or several X11 window systems. Javascript has always been dangerous (not that NeWS's Postscript was exactly safe), and while I've used several window managers that deserved to be composted, I don't see why that would be a positive feature...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  22. Re: pterodactyl attacks by billstewart · · Score: 1

    Those were only a problem on the 3-D Virtual Reality game thing in the mall. The headsets were large and clunky and didn't fit me very well, so the 3D looked even worse to me than to most users.

    And yes, it was uphill both ways through the snow to get to the computer center where the keypunches were, but most of us wore hiking boots rather than going barefoot - why do you ask?

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks