Tiny Core Base > CorePlus
Boot sequence for browser kiosk based on TinyCore-current
kzpm:
Dear tc_people,
I'm fairly stuck trying to remaster a kiosk browser based on TinyCore-current.iso. I used the remastering guide and silvolli's remaster script in TinyCore wiki
to accomplish this task.
My goal is to deploy a (kiosk)browser only image, for primary education in The Netherlands.
Maybe you know that Dutch education heavily depends on Microsoft solutions..
I'm trying to build the remaster script on a Crunchbang system (Debian). This is the system we currently use in our pc-room at school.
While building I made some assumptions, that maybe incorrect. I really need a guiding hand to understand what is going on..
According to the boot_process wiki, all X programs should be executed at runtime in home-tc-.xsession ( -> Xvesa, wbar and a window manager).
Other programs should be executed from bootlocal.sh (like opera and wicd).
When testing the resulting iso in qemu or virtual box I receive messages about invalid arguments while mounting programs to loop(x).
Finally the Xsystem fails to start. When typing 'startx' it results in "-sh startx not found".
The Tinycore forum pointed out that this error could be caused by a dependency issue.
So I checked all *tcz.dep files in distro ibiblio org and downloaded all dependencies in a seperate repository on my hard disk.
Every time I run the script, all *.tcz(l) files and *tcz.md5.txt are now loaded into -etc-sysconfig-tcedir-optional.
In .xsession I use the following startup-sequence for X programs:
- sudo -u tc tce-run Xvesa
- sudo -u tc tce-run Xprogs
- sudo -u tc tce-run evilwm
In bootlocal.sh the start up sequence is as following:
- sudo -tc tce-run wicd (wireless set) #results in "cannot mount libglade: invalid argument"
while true; do
#rsync -qr --delete --exclude='.Xauthority' -home-tc #executing rsync returns syntax error
sudo -u tc tce-run opera --kioskmode "somewebsite" #Results in mount error on loopx and invalid argument
done
The contents of the onboot.lst, copy2fs.lst and xbase.lst in cde directory, are al the same, the sequence in all these files is:
Xvesa.tcz
Xprogs.tcz
openssl-1.0.0.tcz
evilwm.tcz
opera.tcz
wicd.tcz
As bootoptions I've included showapps dhcp desktop=evilwm xsetup.
While booting the xsetup flag is not executed.
Has anyone suggestions how to proceed?
Thanks very much in advance!
Kind regards,
Kees Epema
Misalf:
Maybe instead of
sudo -u tc "..."
try
su "$USER" -c "..."
as in tc-config
Lee:
I'm not sure if any of this will help, but some observations that won't hurt:
If startx is not found, it implies that Xlibs.tcz is not loaded. Check to see that the extensions listed in onboot.lst (and all of their dependencies) are really loaded - not just that they are present in /etc/sysconfig/tcedir/optional, but are they listed in /tmp/tcloop (mounts) and /usr/local/tce.installed ?
I don't think there is a "dhcp" boot code - if "nodhcp" is not specified, the default is to use dhcp. Extraneous unknown boot codes don't hurt anything but probably won't have the effect you expect unless you explicitly code for them.
You can start X programs from .xsession but I think the accepted method is to have a start script in ~/.X.d. Scripts there are sourced (no need for a shebang) after X starts.
The desktop=evilwm boot code should not be necessary if evilwm is the only window manager loaded.
Also, I've never tried it but I believe that to run a browser-only kiosk you can simply run the browser -instead of- the window manager.
kzpm:
Dear misalf and Lee,
Thanks very much for your suggestions in the first place!
To Lee:
I checked /tmp/tcloop
Within this directory the following directories exists:
tmp/tcloop/Xprogs (contains subdir usr)
tmp/tcloop/Xlibs (contains subdirs /etc /usr and /var)
tmp/tcloop/Xvesa (contains nothing, no subdirs)
tmp/tcloop/opera (contains nothing, no subdirs)
tmp/tcloop/fltk-1.1.10 (contains subdir usr)
It seems interesting to me that both Xvesa and opera directories are empty. Especially these programs are causing the mount errors ("could not mount ....: Invalid argument") during boot.
As a matter of fact /usr/local/tce.installed only contains Xprogs, fltk-1.1.10 and Xlibs. So, no Xvesa and no opera.
Do you still think this could be caused by missing dependencies?
It is also very interesting to leave out the window manager and to run the browser without a window manager! I'll try to find more info about that issue.
Regards, Kees
Rich:
Hi kzpm
I suspect you might have run out of RAM. Try deleting the copy2fs.lst file and see if it works any better.
Navigation
[0] Message Index
[#] Next page
Go to full version