Dear tc users,
I'm still working on een tiny core -webkiosk remaster script, that is supposed to be executed on a debian based system (at this moment Crunchbang).
After reading the
http://wiki.tinycorelinux.net/wiki:the_boot_process wiki boot manual, it is still not clear to me how to overcome startup problems:
In my script I first unpacked the core
zcat -q core.gz | cpio -i -H newc -d[/core]. I'm using Xvesa, not Xorg..
After that I created .xsession. Why? Well the .xsession file was not created at runtime, so I decided to force the creation of .xsession file. This is how I did it:
[code]#Create .xsession (Startup X)
cd $HOME/initrd/home/tc/
sudo touch .xsession && sudo chmod 0777 .xsession
cat >> .xsession <<EOF
#!/bin/sh
echo "Start X.."
startx
sudo -u tc sh /home/tc/.X.d/startkiosk
EOF
sudo chmod a+x .xsession
After this piece of scripting I created a startup script for the opera kiosk in /home/tc/.X.d ( The wiki and forum tought me that is the place to execute programs that have to be started on boot.
cd $HOME/initrd/home/tc/.X.d/
sudo touch startkiosk && sudo chmod 0777 startkiosk
sudo cat >> startkiosk <<EOF
#!/bin/sh
echo "startkiosk.."
tce-load -i $TCZS
while true; do
#rsync -qr --delete --exclude='.Xauthority' /opt/ $HOME/
tce-run opera-next -fullscreen "website"
done
EOF
sudo chmod a+x startkiosk
Unfortunally my script ends up at the boot prompt. At that point I have to load all tcz's manually by entering
tce-load -i Xprogs (Xlibs and fltk-XX are installed with Xprogs) Xvesa openssl fontconfig expat2 opera-next
After that I have to enter "startx" manually. Then the desktop loads without wbar (that's okay for a webkiosk I think) but opera-next is not fired. I have to push CTRL+ALT+ENTER to invoke a terminal and type the opera-next startup comment.
It seems to me my script does not parse onboot.lst, .xsession and my custom "startkiosk" script.
What measures can I take, to ensure opera-next is being executed without manually entering commands at the boot prompt?
Thanks very much for your effort in advance!
Kind regards,
Kees Epema