I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / MSN Companion
JailBait Web Kiosk HOWTO

New MessageJailBait Web Kiosk HOWTO (modified 0 times) Root
Profile
Here are some simple mods you can make to rasmus's image (linux-3), to turn it into a simple web kiosk.
Try at your own risk, bla bla..

i am assuming you have allready installed the image, and created a user, say "kiosk".

1) remount for read write

mount -o remount,rw /

2) get rid of the user account king:
deluser king3) modify lilo to ask for a passwd when trying to pass parameters to kernel:

add this to lilo.conf right before image information:
passswd=mypassword
restricted

and do:
chmod 640 lilo.conf (so noone can view the passwd)
lilo (update mbr)

4) in inittab, change

id:2:initdefault:
to
id:5:initdefault:
5) create /etc/init.d/kiosk , with the following contents:

echo "starting kiosk ... "
mixer vol 75
mixer pcm 75
pump
su kiosk
# uncomment the reboot if you dont want the jailbait prompt to pop when someone hits ctrl-alt-backspace
# to exit X .

# reboot

6) chmod +x kiosk

7) now link to this script from runlevel 5

ln -s /etc/init.d/kiosk /etc/rc5.d/S99kiosk

8) now we need to add some files to the home directory of kiosk.. these files are in a tar
that gets extracted into a ram drive on boot, so we must make the changes in that tar ball.

first, lets open this tar:

mkdir /tmp/try
cd /tmp/try
cp /etc/var_directory.tar.gz .
gunzip var_directory.tar.gz
tar -xvf var_directory.tar
rm var_directory.tar

9) change into the subdir where the user files are /tmp/try/share/home/user
10) now lets make some changes. first, lets create a files .bash_login , with this content:

xinit
exit

10) lets create an .xinitrc file with this content:

while true ; do
rm ~/.netscape/lock
netscape -geometry 800x600+0+0 www.google.com
done

11) ok.. now lets pack everything back into the tar ball:

cd /tmp/try
tar -cvf var_directory.tar *
gzip var_directory.tar
rm /etc/var_directory.tar.gz
cp ./var_directory.tar.gz /etc

12) viola, you should be done, reboot, and enjoy.

*************************************
TODO:

would apreciate any help on this section:

1) get a better browser, maybe with java or some basic plugins?
2) fix a screen saver!
3) maybe allow a simple windows manager?

Root.

12-27-2001 23:19:24

New MessageRE:JailBait Web Kiosk HOWTO (modified 0 times) fdrewett
Profile | Email
this rocks!
is there a way to make it use a cf card for the user dir to save bookmarks and settings?
is there a way to disable popup windows in netscape? they are hard to get rid of with out a window manager :)
12-28-2001 18:58:13

New MessageRE:JailBait Web Kiosk HOWTO (modified 0 times) erroneus
Profile
Yes, there would be if the /home directory were part of a network mounted share... which would be better since the CF media has a limit on the number of writes.

HINT To Lord Rasmus:

You know that setup routine that you go through at "first time bootup"? How about adding mention for network mounted volumes there? :) Then people can specify for themselves what volumes they want mounted at boot time?

12-28-2001 21:19:49

New MessageRE:JailBait Web Kiosk HOWTO (modified 0 times) Root
Profile
fdrewett:

here are instructions to have the user's home directory on a removable cf, so boomarks etc are saved..
please note however that this is not the best thing for a cf card, since it has a limited ammount of writes
in its lifespan (70,000 ?)

1) backup your image before starting this!
2) move the files under /share/home/user onto a CF card.
3) delete those files from the var_directory.tar.gz tarball.
4) mount the cf card under user dir:
mount /dev/hdc1 /tmp/var/share/home/user

if anyone needs more detailed instructions, let me know.

Root.

12-30-2001 09:09:36

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3