2008/05/16

The Labs.Com System Lab Internet Appliance I-Opener Jailbait
Last update 2000/08/15
The Labs - Design & Functionality For The Net

16MB Linux Distribution for I-Opener

Jailbait (link to official homepage) is a 16MB Linux distribution for the I-Opener. Here some additional infos collected from various forums.
  1. Download
  2. Updating Jailbait Image
  3. WWW
  4. SSH
  5. More Hints
Jailbait
1. Download
Jailbait
Linux mini-dist fitting on 16MB

Jailbait
2. Updating Jailbait Image

Jailbait comes as 16MB image-file which can be dumped directly unto the sandisk of I-Opener. In order to change the image-file proceed like this (Sean Kasun wrote):
Here's how to do it: You NEED the loopback device compiled into your kernel. If it's not, you can compile it as a module and not have to recompile the entire thing...
Then fdisk the image to get the cylinder offset.
You'll see a line in fdisk that says
Units = cylinders of X * Y bytes.

Calculate the byte offset using this algorithm:
(Start Unit-1)*X*Y = bytes.
Example:
Units = cylinders of 1 * 512 bytes
partition1 33 123 ...

partition1's byte offset would be:
(33-1)*1*512 = 16384

Then to mount that partition onto /mnt you would use the following:
/sbin/losetup -o 16384 /dev/loop1 imagefile
mount /dev/loop1 /mnt

that's it.. then to unmount it:
umount /mnt
/sbin/losetup -d /dev/loop1

(/dev/loop1 can be any of /dev/loop*)

Jailbait
3. WWW

In V6 of Jailbait the entire /var tree is extracted from the /etc/var_directory.tar.gz and therefore all changes you did in /var are lost when you reboot, unless you recreate that tar-file again.

Since by default httpd document-root is in /var/www, you may like to change it to /etc/www (mkdir /etc/www; cp /var/www/* /etc/www) and edit file /etc/init.d/httpd so it says cd /etc/www instead of cd /var/www.

Jailbait
4. SSH

V6 has broken permission of /var/share/etc/ssh_host_key* and so /usr/sbin/sshd won't start up. Solution: chmod og-rwx /var/share/etc/ssh_host_key* and then start /usr/sbin/sshd. And recreate /etc/var_directory.tar.gz so at the next boot those permissions are considered.

Jailbait
5. More Hints

More detailed infos you find
Jailbait Forums
...

                                                                                                                                   

I-Opener

Last update 2000/08/15

All Rights Reserved - (C) 1997 - 2008 by The Labs.Com

Top of Page

The Labs.Com