K.Mandla’s Sandbox 10.07 i486

Hi and welcome. K.Mandla’s Sandbox is an image of a console-only Debian 5.05 i486 system built in late July 2010. It has been customized to a small degree, and offers a portion of the software I like or recommend, provided Debian has it in its repositories for Lenny.

It’s not a precise mirror of my personal system, but it does have most of the same software and a few of the same configurations. If you like it you’re more than welcome to adopt it as your own, or you can rearrange or modify things as you like, and do what you will with it.

The torrent is available at Linuxtracker.org. I will upload the image to a file host if I can find one that will accept a 1Gb file, and won’t prove to be too much of a hassle.

The target machine for this was a Japan-market Sharp Mebius MN-340-001. This was a 150Mhz Pentium MMX machine with 32Mb of PC66, USB1.1 ports, a 2Mb Trident video card, a 20X CDROM, an ESS ES1869 sound card and network access through a PCMCIA port.

You can install this to a system by booting to a live environment and writing the image to a drive of at least 1Gb with dd. For more information, please review the readme.txt file included in the bundle.

In general I am not offering support for this; it is intended as an experimental system for anyone who would like to see a day-to-day console-only system firsthand. If you find it doesn’t work as described, or if there is a part of the system that disappoints you in some way, you may contact me about it. However, it is possible that my reply will be to suggest you look for a fuller, better supported software solution elsewhere.

On the other hand, if you like it and want to use it in a project of your own, please feel free to adjust it to your liking.

And in either case … enjoy!

–K.Mandla

Edit: readme.txt follows.

K.Mandla’s Sandbox

http://kmandla.wordpress.com

http://ubuntuforums.org/member.php?u=71172

https://launchpad.net/~k.mandla

This software and the text that accompanies it are licenced under the GPLv3 and the GNU Free Documentation License, version 1.3. For more details on the license and what it permits, please visit http://www.gnu.org/ .

INTRODUCTION

Hi, and welcome. Thanks for taking the time to download this, and thanks for taking the time to read about it too.

K.Mandla’s Sandbox is not a GNU/Linux distribution or even a variation on a distro, both of which you might have expected. Instead, this is a snapshot of a functional Linux system configured as I happen to like it, with a few additions and subtractions here and there. You can adjust it, embellish it, modify it, fold, spindle or mutilate it however you like, and no one will know or complain.

The ‘Sandbox is a 486-architecture Debian 5.05 system built at the end of July 2010. The target hardware was a Japan-market Sharp Mebius MN-340-001, with a puny 150Mhz Pentium processor and a massive 32Mb of memory. The entire system is intended to fit on hard drives of 1Gb or more; anything smaller than that is probably going to run into serious problems.

It’s not my ideal system. My ideal system is impossible to share, because it would require you to have identical hardware to mine. I am a maximalist, which means I believe in forcing the best possible performance out of older hardware. I do that by carving away at unnecessary portions of a system, all the way down to the kernel, which means the systems I run are sculpted to match the hardware.

So without a machine of the exact same proportions as mine, I am afraid you probably wouldn’t be able to use anything I offered.

But this is close enough. The ‘Sandbox gives you a general idea of how I run my day-to-day systems, within an acceptable frame of reference. It’s not the whole enchilada, but it is a bag of enchilada-flavor tortilla chips.

–K.Mandla

DISCLAIMERS

As always, the standard disclaimers apply.

  • This is offered without promise or guarantee.
  • There is the possibility of data loss or other failure.
  • This is not intended for beginners.

WHY DO THIS?

A number of people asked for a pre-cut system, just for comparison’s sake. Naturally I’m not about to post a clone of my personal system on the Internet (ye gods, the very thought is horrifying), so I built this one from scratch, and drafted similar configurations for the programs I use most.

WHY DEBIAN?

Two reasons: Precompiled and i486.

That should be enough explanation, but I’ll add a little if you like. If you’re actually going to use this on an old, old machine, then you will probably be working with an early i686, if not an i586. It might even be something you could try on a real, live i486. No guarantees though.

And anything in those brackets is going to be painful to build software on. Even with something like archlinux-i586 — which I hold up as a marvelous solution for old, old computers — the time taken to customize a system like this is going to be considerably higher than something with expansive repositories already available for the early architecture.

And there are plenty of other distros that would possibly work. Debian seemed like the best option for an old machine, with enough of the software I like, to make it worth doing at all. And really, you can’t go wrong with Debian. ;)

WHY LENNY?

Mostly because all my attempts to upgrade from Lenny to Squeeze on the target machine (see above) end up with an unbootable system. It may be that the testing version of Debian was a bit hefty at the end of July 2010.

On top of that, I see where testing wants to shift to UUIDs instead of drive labels, and my worry is that would make the system unbootable on other machines. I am sure there is a way to either avoid or retain the older /dev/hdXY labeling system, but it’s not something I personally need to investigate.

If you want to run testing or unstable, I would suggest installing this, then manually upgrading. As far as individual packages, you could try downloading from the Debian package search site and installing one-by-one; it will probably work so long as the dependencies are in your favor.

WHY NOT UBUNTU?

I don’t discount Ubuntu as a possibility for a system like this, but I think Ubuntu has its focus turned elsewhere, and isn’t as concerned with very old machines any longer. I’ve had trouble getting Ubuntu in the 9- and 10-series to boot on machines with less than 48Mb of memory, which is disappointing.

If you are somehow partial to Ubuntu over Debian for a system like this (I can’t see why, but it’s possible), feel free to try making a similar installation.

WHY NOT ARCH LINUX?

I was tempted to do this with Arch, but that would rule out very old systems, which might actually perform decently with this. Go back and re-read the whole i686-i586-i486 thing, above. ;)

WHY NOT (insert distro of choice)?

Well, if we have to wander so off-point as to start dragging in every distro out there. … I can only say that the configuration files (what few there are) are easy to transplant, so get off your rear end, install (insert distro of choice), mimic the software list and dd the entire business off the system. Congratulations, you just created your own sandbox.

HOW IT WAS MADE

For purposes of speed, this was built in QEMU on a image file the same size as the only 1Gb USB stick I have left. I used the Debian 5.05 netinst image, and selected the expert installation option, which allowed me to choose the i486 system. Otherwise, the standard install procedure picks the i686.

After it was made, it was written to the stick and then transferred to the target machine for troubleshooting.

INSTALLATION

To install this, you’ll need to somehow write the image file to the hard drive with dd. You can either boot your computer to a live environment and use a USB drive to add the image, or pull the drive entirely and use a surrogate machine to write out the drive contents.

In short, you’ll need this command.

dd if=kmandlas-sandbox-10.07-i486.img of=/dev/hdXY

For X and Y, substitute the drive label assignment that you see in fdisk -l. Depending on the speed of your hardware, this can take as little as two minutes — or as long as two or three hours. dd offers no progress monitor, so your best bet is simply to allow it to run to completion.

You can also use the image in a virtual machine like QEMU, or write it to a USB stick and boot directly to the image. If your hardware allows that, of course. ;)

You will have to manage your hardware by yourself; it’s always possible that Debian can’t recognize a network connection or your sound card isn’t very happy. If you need help or run into problems you can send me a note, but please be aware that I will probably refer you to the Debian Forums before anything else.

If you use a newer machine with a SATA drive system, Debian will assign sda-series numbers to the system, whereas the image naturally seeks out a root partition at hda3. In other words, boot failure.

If you find yourself in this predicament, the solution is simple.

1. Boot to a live environment.
2. Mount the installed system’s root directory and change the entries in /etc/fstab. Anything that says hda should be changed to sda.
3. Reboot and change hda3 to sda3 on the kernel boot line.

Once the system is up, you can change /boot/grub/menu.lst manually and update it permanently with update-grub. It’s not a particularly elegant solution, but it does work.

GETTING STARTED

Log in with the username “user” and the password “password”. Enter “screen” and press return. That’s all.

SYSTEM SETUP

This is probably the part you are most interested in.

The 1Gb space has a 64Mb boot partition, so it can be written to an oversized drive and used in a machine with a BIOS size limitation, and still boot.

Swap space is 128Mb.

The root partition is a meager 830Mb, plus or minus, with the noatime flag set (/boot has that too). If you want a separate home partition, which I strongly recommend, you can allot remaining space on your drive to /home, and adjust /etc/fstab to mount it.

There is a root account and an account called “user”; the password for both accounts is “password”.

The keyboard is set to a US layout, which no doubt you can adjust so your keys do the right thing when pressed.

Time was set with an Eastern US time zone and synced against the Debian servers, but will need adjustment when you install it.

The repositories are set to a US server, with main, contrib, security, volatile and non-free enabled. I also added the backports servers, and the public key for the backports is installed. All the source repositories are disabled, mostly because of the added time to manage them on low speed hardware. If you plan on customizing any software, you’ll want to re-enable these.

The local cache is empty. Or nearly empty.

The PC speaker module — pcspkr — is blacklisted, or it should be. Sometimes I hear that thing in my dreams.

The kernel boot line omits the “quiet” option, which you may want to enable. The grub menu timeout is set to 2 seconds.

You have only two ttys, tty1 and tty2. /etc/inittab is adjusted to avoid the “wait” instruction in favor of “once”.

The standard /etc/issue file has a clear sequence at the top, so logging out clears the tty and offers a clean prompt.

sudo is installed and will allow any root-level command with a password. The halt and reboot commands are available to anyone in the “user” group, without a password.

The /etc/sysctl.conf file has been adjusted to allow perkier network speeds, low swappiness and a few other adjustments. You may need to reconfigure this for your machine.

SYSTEM SOFTWARE

Aside from the default core packages installed in a Debian system with no tasksel options, here’s the software that is available.

alpine, email and newsreader
alsa-utils, audio framework and tools
antiword, .doc converter
aspell, spellchecker with the English dictionaries
axel, download manager and accelerator
bc, calculator
bsdgames, a collection of old console games and whatnot
cadubi, stamp-art application
centerim, multi-protocol chat application
cmatrix, console “screensaver”
debfoster, system cleaner
detox, file renaming utility
dict, online dictionary utility
dosfstools, for access to floppies, etc.
elinks, Web browser
fbgrab, framebuffer “screenshot” utility
fbi, framebuffer image viewer
figlet, text-art utility
hnb, hierarchical notebook
htop, system process viewer
iftop, network traffic monitor
iotop, I/O monitor
irssi, chat utility
mc, file manager
moc, music player
most, pager
ncdu, disk usage viewer
ntpdate, clock sync utility
odt2txt, .odt converter
pcmciautils, for people who use laptops
renameutils, file renaming utilities
rsync, file synchronization utility
rtorrent, torrent client
screen, terminal multiplexer
snownews, RSS and newsreader
surfraw, CLI search utility
telnet, text communication network protocol client
tidy, html cleaner
tpp, text presentation utility
unzip, decompression utility
vim, text editor
wyrd, calendar and scheduler

This doesn’t necessarily represent the software I necessarily like or endorse, since each distro has its own shortlist of included packages. I would have liked to have added:

charm, blog management tool
bs, battleship game
cdf, visual disk usage utility
clockywock, console clock
dehtml, html stripping tool
fbterm, framebuffer terminal emulator
myman, Pac-Man arcade clone
ncmatrix, network monitor and “screensaver”
teapot, spreadsheet
tty-clock, console clock
vitetris, Tetris clone

Charm and fbterm are available in later versions of Debian, and others would be a snap to build from scratch. If you feel the need to precisely mimic the system I run, consider adding those. As it stands now though, this is probably close enough to satisfy.

With very few exceptions, the software installed in the system is unconfigured and will require setup to use. Additionally, your hardware may not play nicely with the system as it is configured, and may require some attention to use. Be prepared to investigate unconfigured or missing system components.

screen is set up to spawn five or six applications, show a screensaver after 5 minutes of idle time, and show a basic status line.

elinks has a home page set, and a few bookmarks as well as a default download directory, an instruction to avoid IPv6, and a few other small points.

I would suggest installing the Terminus font, just for readability’s sake.

SCRIPTS

mc erases its history after closing. elinks erases its history as well, and rewrites a clean cookie list after closing. centerim erases its history and any downloaded avatars. I dislike software that keeps histories between sessions. :(

All of these are done by assigning aliases for those programs to their respective scripts; the script calls the program, then erases its footprints. If you decide to remove the scripts make sure you adjust the bash configuration and profile files so the aliases aren’t used. Then log out and log in again. ;)

There are two volume control scripts — volume.sh and mute.sh. These are useful when the phone rings, or when you end the call. And of course, you have alsamixer at your disposal. ;)

There are three or four plain-jane screensavers, called by the screensaver.sh script. If you add a “screensaver,” add it to this script by following the examples there, and it will be picked in time. Many of the applications I wanted to install (see above) added a few more screensavers to the list. No huge loss in that sense.

GUINEA PIGS

I mentioned that the target machine was a 150Mhz Pentium, but the second test subject was an IBM Thinkpad X60s. Results were similar on both machines, with allowances given to hardware differences.

After a clean start, the system takes up about 20Mb of memory, depending on the host. ncdu reports only 422Mb of drive space in use across the entire root tree structure, but that should probably be adjusted upward.

Boot times are likewise dependent on the hardware. A core duo L2300 machine with a 5400rpm SATA hard drive and 512Mb of memory boots in well under 30 seconds, but a 150Mhz Pentium MMX with 32Mb of memory and a lowly 5400rpm IDE drive takes closer to a minute. That’s not bad, really.

There are ways to optimize Debian-based systems; much of the early days of the Motho ke motho ka botho blog are dedicated to tuning Ubuntu for older hardware. With the exception of a few minor changes to /etc/inittab and /etc/sysctl.conf, the system has not been modified.

Install it and tweak it yourself, within your own comfort zone. There is a good potential for building a speedy system.

SUPPORT AND GUARANTEES

In general, I am not supporting this. It is offered as-is, with no guarantees or promises. You are putting yourself at risk of data loss or catastrophic hardware failure if you try any or all of the things I described above. Be afraid. Be very afraid.

On the other hand, if you find an error or a problem with the configuration, let me know. Just be aware that I will probably recommend you do what you can to fix it. If that’s somehow impossible for you, I recommend you jettison the entire business and begin looking for better software arrangements elsewhere.

I have no plans to update, rerelease, respin or build this into an installable system. If you like it, then feel free to remaster, translate or transform it into another shape or on to another medium. I can offer advice on that front, but you’ll be getting what you pay for.

Enjoy! :)

About these ads

18 Responses to “K.Mandla’s Sandbox 10.07 i486”


  1. 1 Hund 2010/08/02 at 10:43 AM

    Awesome! I’ll help you seed it. :)

  2. 2 Zoev 2010/08/02 at 11:00 AM

    Thanks so much for supporting my idea and uploading this.

  3. 3 Eric 2010/08/02 at 2:18 PM

    The Torrent doesn’t seem to be working. There does not seem to be anyone actually seeding the file.

  4. 7 M. Klay 2010/08/02 at 3:33 PM

    “dd offers no progress monitor”

    Well, ‘man dd’ tells me:

    “Sending a USR1 signal to a running `dd’ process makes it print I/O statistics to standard error and then resume copying.”

    Have a look there for an example.

  5. 8 Benj1 2010/08/03 at 12:10 AM

    needs a catchier name

    mandelix
    manux

    My personal favorite, if a bit KDE
    KaMeL (K MandEla’s Linux)

    • 9 K.Mandla 2010/08/03 at 10:50 AM

      :D Ah, but a cooler name would make people think it was a real distribution. It’s just an experiment really. It needs a hobbled name. ;)

  6. 10 anticapitalista 2010/08/03 at 3:31 AM

    How about maxiX as K.Mandla is a maximalist?

    I’m downloading via torrent (realy slowwww) and will play with this.
    In the meantime I set Virtualbox to use 48MB RAM and then installed antiX-core-486 with its MEPIS 2.6.32-486 kernel.
    (live antiX-core needs c40MB RAM minimum to install).

    Once installed to hard drive, I reduced VB RAM to 32MB and installed the apps you mentioned. Apart from snownews, I installed newsbeuter instead (antiX uses Debian Testing BTW)

    Booting takes about 15 secs and RAM use with nothing running is about 9MB according to htop. Running irssi, newsbeuter, htop, mc, rtorrent, elinks, moc and alpine
    htop shows 18MB RAM usage (note the apps in screen are not really doing anything, they are just opened).

    I’ll carry out the same experiment on an old box if I can find one. (the one I had conked out – 64MB RAM, PII 333 Mhz)

    Great fun trying this.

    Thanks for the tips.

    anticapitalista

    • 11 Zoev 2010/08/03 at 5:50 AM

      You’re the lead developer of antiX thanks so much for a great distro. I use antiX base on both of my computers

  7. 12 Adrian 2010/08/03 at 7:34 PM

    Why isn’t this a distribution? Ubuntu started out as a nothing but Debian with specific software added to it.

    Don’t underestimate yourself K.Mandla :)

  8. 14 mrreality 2010/08/03 at 9:39 PM

    grabbin it now ill seed all day while im at work only have dsl but it should help a lil bit

  9. 15 Ibidem 2011/03/18 at 8:23 AM

    A few comments: Officially, Ubuntu has not supported less than 64 MB since Hardy Heron (8.04).
    Since Maverick (10.10), Ubuntu has been built for i686.

    Anyhow, is there a reason not to compress it (lzma/bzip2/p7zip/gz)? It might be more work to install (uncompress first), but it would download faster.

  10. 16 Linuxbakkie 2011/03/22 at 1:44 PM

    I was trying to download this, but Linuxtracker gives me an error (bad id). :S


  1. 1 Well said « Motho ke motho ka botho Trackback on 2010/08/03 at 9:10 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,486 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: