Sie sind auf Seite 1von 4

TESTBED: MINI LINUXES

As Linux takes the embedded world by storm, Martin Howse evaluates the cost-benefit of OS
downsizing with a range of powerful, task-oriented, stripped-down Linuxes
embedding
DIY
proliferated at an amazing rate over the last makes for supreme ease of installation,
solutions may seem to few years – and there are some fairly strange especially when compared to large
be beyond the scope of little beasts out there. For example, a distributions. There’s no tricky hard-drive
most ordinary people, calling for unusual pharmacy student has created Linux In A partitioning, and custom configuration
equipment and knowledge, not to speak of a Pillbox, a set of floppies which aim to utilities are concentrated on the task at
fine pair of tweezers and some serious address all areas and ailments in the hand. Setting up a Linux on a floppy router,
soldering skills. network environment. for example, is quite rightly just like setting
Yet there is one quick and easy way into A trawl through the Net should easily up a router. Stability is also close to solid-
embedding which is within the grasp of bring up floppy images to suit almost any state router technology, with no drive to fail
most of us: the floppy disk. Legacy it may be, situation. Mini Linux is an adaptive species – and everything running from memory.
but it’s the fastest way to turn that veteran which explains its popularity, exponential
486 or classic Pentium into a finely tuned growth and usability. The best bits of Linux So how’s it done – and why?
router and firewall. Simply stick a stripped adapted to a specific purpose have been put The holy mantra within the mini Linux
down purpose-built Linux system on a together by experts, ready for download and world goes as follows: dd if=therouterimage
floppy, throw it into the drive and power up. often accompanied by good documentation of=/dev/fd0. This may sound highly
These micro Linux organisms have certainly and excellent community support. This esoteric, but on a Linux box this transfers

the image block for block to floppy. Of router/firewalls as they probably account original OS or hardware, so they’re
course things can be made easier, and you for the most common use, particularly excellent within educational setups. You
certainly don’t need to be running Linux when it comes to sharing an ISDN or other can use a floppy to learn all about Linux
already; the commercial Coyote Linux line across a LAN in a small office. The cost safe in the knowledge that, whatever
version offers a Windows wizard to write of a router is certainly unnecessary here, changes you make to the configuration,
the appropriate image and rawrite or when an old 486 can do the job equally well when you reboot you won’t have messed
install scripts can also be used from a and save on landfill. We’ll look at three up the system. And say you want to
Windows machine to construct the floppy. firewall/router solutions which are readily implement a network of diskless
It’s all about getting the right image – an available. workstations. Of course, the neatest
exact compressed copy of the working solution is a bootrom (see Reviews, page
system with the bootable bits in the right It’s one small step... 58), but if you want to test this approach,
place. These images can be downloaded The portability of the humble floppy is also why not write the Etherboot image to
from the Web, configured online or from an issue within another area, what we’ll call floppy and see if it’s really what you’re after.
your own machine. Once it’s been written the nomadic and rescue category. Think of Although the size restriction is a key
to floppy, pop it into the new would-be your floppy as an ultra-thin expendable factor here, what matters most is getting
router, watch it boot and unpack itself into laptop or PDA. With the right image you the right Linux for the job. This size factor
ramdisk. Now it’s ready to roll as a fully can work on any PC in the world using a does mean however that the whole area
functional system. range of tools. If a Linux PC or network is in makes for an excellent introduction and
As for why it’s done, the advantages and trouble, select the right disk and you’ve got development tool within the embedded
portability make mini Linux suitable in a plenty of troubleshooting utilities. world. Maybe it’s not too difficult to set up
wide range of areas. We’ve mentioned Most mini Linuxes won’t mess with the that matchbox-sized web server today.

4 0 LinuxUser/October 2000
Router/firewall option disabled. In the case of the Linux-based
configuration it was trivial to change this in the setup
script. The range of options presented was minimal but this

packages only reflects the one-purpose nature of Coyote.


Configuration through to booting the new router took less
than ten minutes, so the stripped-down angle obviously
pays off here.
Linux Router Project Given that all these router/firewall projects run a release
With the motto “Embedding the bird for the sake of of the Linux kernel there are few worries about
humanity”, the LRP is probably one of the oldest and most functionality or stability. Firewalling capabilities are built
widespread Linux on a floppy. Favoured more by the into the kernel, but there are some mini-distributions
technically savvy and professional administrator, the out there which do stress the firewalling side of things.
amount of material available online regarding the LRP is These include floppyfw and the Fireplug EDGE Router,
enormous. This means that it’s very easy to find a disk part of the Thinlinux project. Another interesting
image closely configured to your situation, or to make one mini-Linux within the net arena is LSD – Linux and Squid
online. This is the easiest way to go, but the beauty of the on a Diskette – though of course you’ll need a hard drive
LRP is the large amount of add-ons and modules available for the caching.
for use by the more experienced. These include extras for

Nomadic
SSH, VPN, dhcpd, bindc, diald and httpd. A huge range of
network cards and other hardware is also supported on a
modular basis.
To create a demand-dial ppp disk to share a modem
across a LAN, we’ve used both the modular and straight-to-
disk approach. For such a simple router task, writing a disk
and rescue
image is by far the easier option. Booting the would-be
router presents the usual kernel messages swiftly followed
by a decent array of configuration areas. Selecting the
micro-Linuxes
relevant option brings up a text file for editing. Once you’re
happy with the setup and have tested the configuration, Tomsrtbt
you can re-write config files back to floppy and leave the The Saint Bernard of the mini-Linux world, tomsrtbt is
router to it. This is pretty much how all floppy-Linuxes billed as “the most Linux on one floppy disk”. There’s
work, but LRP presents the ultimate in flexibility. Stability is certainly a lot here, with popular tools, scripts, modules,
simply not an issue – our LRP box has been working happily add-ons and even man pages crammed onto a specially
as a router for nearly six months. formatted standard floppy. There are no secrets to getting
this much onto a disk and the documentation included is
Freesco excellent.
Tomsrtbt is available for download as both a tarball and
Short for free Cisco and aimed at being a budget DOS zip file. These unpack a raw disk image and floppy
replacement for low-end routers, Freesco offers a simpler creation scripts which take the pain out of extended floppy
approach than the LRP, emphasising ease of setup as a key formatting and data transfer. So given that we’re getting a
feature. Certainly, fewer options are presented, but it’s still lot on our disk here, it’s very simple to set up. Just make
packed with features, including support for three Ethernet sure that your diskette is top notch. And you’ll certainly
cards and up to two modems – providing a useful way of want to hang on to it, with great features right from the
building a bridge, router or router/server. Here it’s simply a word go. There’s a choice of video modes for the four
question of downloading the latest zip file, expanding and consoles, good hardware detection and all your favourite
writing it to floppy. For simple situations this can certainly tools and utilities such as grep, awk, sed, gzip and hexedit.
prove easier than working through the sheer volume of Editors include elvis, vi and emacs with network connectivity
LRP material. tools such as telnet, route, and snarf for remote file
After booting and logging in to our new router we can transfer. In fact, it’s hard to work out what isn’t here, with
decide whether to go straight into configuration. The setup even PCMCIA support for laptops included. Tomsrtbt is a
utility encountered is certainly both comprehensive and true general purpose portable system, with its addictive
easy to use. There’s a wealth of options and the stripped- simplicity a breath of fresh air.
down interface is very intuitive. You can even enable a
web-based interface to the router from other machines,
and with such features it’s obvious that a lot of work has
Trinux
gone into this system to make it easy to use. Breaking the single floppy rule but still pretty tiny on two or
three disks, this is one of the more adapted micro-Linuxes,
Coyote Linux with the emphasis very much on security and problem-
solving.
Designed primarily to provide internet connection sharing This little distro boots up with a host of network security
for a network of computers, Coyote is available in a number tools such as port scanners, sniffers and other packages
of versions, again emphasising ease of use. There’s both a primarily for monitoring and mapping networks. There are
commercial Windows version featuring a wizard to aid some pretty serious tools here, the idea being that
creation of the router floppy and a free Linux version problems, say, with an NT box can be troubleshooted
making use of a shell script for setup. However, both efficiently without affecting the underlying OS. You can
versions we downloaded strangely seemed to have the ppp also easily use Trinux to create a simple packet-filtering

LinuxUser/October 2000 4 1
TESTBED: MINI LINUXES

with a DIY slant is the reviewing it in a future issue. pushes Linux onto some pretty
Going for the burn matchbox-sized web server, Although there are floppy- basic hardware.
Going thinner and leaner than part of the wearable computing based diskless workstation Other useful embedded
the floppy in an x86 box is project at Stanford University. A solutions out there, such as projects include uClinux, LEM
necessary within certain stripped-down Red Hat distro floppyX, it’s always going to be and Emblin, and if you’ve a few
working environments, but the runs from a 16Mb flash ROM on neater in hardware. We look at ideas for that wearable MP3
principles remain the same. We a single-board 486. an Etherboot-based bootROM player they’re certainly all
still need to run a stripped-down The Pizza Box file server network card from the Linux worth a look.
Linux purpose-built for the job from Kyzo (www.kyzo.com) Terminal Server Project in this
at hand, and the micro-Linuxes takes a similar approach to issue (see Reviews, page 58)
surveyed here certainly fit the embedding, again with Linux and it certainly works well.
bill. One of the more unusual running from flash ROM. Here There’s plenty of documenta-
embedding projects out there the emphasis is on Windows tion out there to show you how
connectivity, with Samba to do it yourself.
included and a good-looking The floppy-based micro-
custom web interface – all this Linuxes make an excellent
running from a thin-crust pizza introduction to embedding, and
box. The software is if you want to go further it may
available for download as a be worth looking at such
trial version and we’ll be packages as ELKS which
Stanford’s matchbox-sized server

firewall with NAT and, yes, installing network security tools or other useful
there are even firewall testing tools included. packages on the system.
Kyzo’s Pizza Box
file server: hold
Creation of the two floppies was a touch more Once we’re up and running, the network
the anchovies demanding than tomsrtbt, with resort to our old configuration is entered. Our 3com card was not
friend dd. The FAQ covers this step by step and, recognised so it was necessary to go back and
with rawrite instructions included, Windows load the relevant module onto the boot disk. This
users are not left out in the cold. Trinux makes isn’t difficult but may be too much for some. With
use of the standard Syslinux bootloader on the its powerful tools, Trinux is aimed more at the
first disk, with the second as a data disk advanced user, who will have no problems here.

Mini Linuxes round-up


Name Best For Medium Special Features Website

CClinux general 1 floppy recent kernel www.cosmicchaos.com/cclinux


Coyote router 1 floppy ease of set-up www.coyotelinux.com
DosLinux/LoopLinux Windows machines 1 floppy – www.tux.org/pub/people/
kentrobotti/looplinux/index.html
Dragon Linux Windows machines HD ease of use www.dragonlinux.org
ELKS old machines 1 floppy port of Linux to minimal hardware www.elks.ecs.soton.ac.uk
Emblin general embedded – www.master.cit.be/c27
Floppix education 2 floppies leaves HD well alone floppix.ccai.com
floppyfw router 1 floppy firewalling www.zelow.no/floppyfw
FloppyX workstation 2 floppies XFree xdenu.tcm.hut.fi
Freesco router 1 floppy ease of use www.freesco.org
Giotto development x floppies very modular www.quietsche-entchen.de
hal91 general 1 floppy one of the first home.sol.no/~okolaas/hal91.html
LEM embedded embedded XFree linux-embedded.com/lem.php3
LIAP general x floppies set of specialised ‘pills’ www.liap.eu.org
LOAF general 1 floppy – www.ecks.org/loaf
LRP router 1 floppy the most versatile firewalling www.linuxrouter.org
LSD caching server 1 floppy Squid caching software wwwcache.ja.net/dev/lsd/
mulinux general 1 floppy – sunsite.auc.dk/mulinux
PhatLinux Windows machines HD see Reviews, page 54 www.phatlinux.com
PizzaBox file and print server embedded Samba www.kyzo.com
Pocket Linux workstation 1 floppy ease of configuration pocket-linux.coven.vmh.net/index.html.en
tomsrtbt rescue 1 floppy packs it in www.toms.net
ThinLinux general embedded – www.fireplug.net/thinlinux.htm
Trinux troubleshooting 2/3 floppies security and special tools trinux.sourceforge.net
uClinux general embedded port to non-MMU processors www.uclinux.com
Zipslack Windows machines zipdisk slackware www.slackware.com/zipslack

4 2 LinuxUser/October 2000
TESTBED: MINI LINUXES

Other key websites The modular approach pays off in terms of wrong. LOAF also shows the way when it comes
functionality, with additional packages easily to low-budget diskless clients with lynx, ftp,
Diskless HOWTO installed on the data disk. Common commands telnet and ssh packed in.
sunsite.unc.edu/LDP/HOWTO/Diskless-HOWTO.html are all there and the included network security In practice, LOAF was certainly one of the
Etherboot tools are a real eye-opener. This is a great micro fastest to get up and running, although choosing
etherboot.sourceforge.net Linux with big ambitions. an image to suit the network card does hamper
Matchbox web server the complete portability somewhat. As a work-
wearables.stanford.edu/hardware.html
Embedded resources LOAF station or education package LOAF feels good,
though. The lynx web browser defaults to a
www.linux-embedded.com (Linux On A Floppy) useful help page and the filesystem is well laid
With its simple name, LOAF has to be one of the out and certainly simple. It is very functional but
easiest portable Linuxes to get into. Simply the lack of some common tools means that even
choose the disk image which suits your network the beginner would outgrow this little Linux
card, write to floppy using rawrite on a Windows pretty quickly.
box or dd under Linux, and that’s it. There’s still a
lot there, though, with four virtual consoles There are plenty more where these came from,
available. It’s pretty much aimed at the beginner and others worth checking out include mulinux
and could be an easy way into Linux for the and hal91, the grand-daddy of them all and an
student, with little or nothing to go horribly inspiration to shrink Linux.

course, all the floppy-based packages will run on a Slackware install – including a preconfigured X Window
Zip it up and start again Windows box and some, like Doslinux, are designed System setup and GNOME.
The fact must be faced that there are still plenty of specifically for this area. But what we’re looking at Another important zip-Linux is ZipSpeak, a talking
people running some form of Windows on a desktop here could be termed the zip-Linuxes – distributions mini-distribution of Linux for blind and visually
machine. Many of them would be glad of the chance to available as a single .zip file which install like any impaired people, based on the latest ZipSlack. Ease of
try out Linux, but when they read about Windows application. Or, like ZipSlack, a Linux which installation is important here and this again will run
re-partitioning and backing up the whole system it’s can be installed or booted from a zip disk. right from the zip file on a Windows or MS-DOS
another story. Naturally enough, given the adaptive ZipSlack, which is a special edition of Slackware, is machine.
nature of micro Linux, there are several little distros both portable and adapted for use on Windows ZipSpeak uses the Speakup screen reader, written
for that niche. machines. It packs a lot in and is very functional, by Kirk Reiser and Andy Berdan, to provide speech
We’ve already looked at Dragon Linux (see although it does use the UMSDOS filesystem, but for feedback under Linux. Speakup is built into the Linux
Reviews, LinuxUser, May/June 2000), and we check the more demanding its larger brother BigSlack may kernel itself. It has to be the ultimate adaptive micro-
out PhatLinux this month (see Reviews, page 56). Of be the one to go for. This includes the majority of a full Linux with a real-world use.

4 4 LinuxUser/October 2000

Das könnte Ihnen auch gefallen