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.