Thanks for the reply , I selected firefox due the R-Kiosk plugin do what I was looking for and it's enough quick for may taste, but I take note on chromium
but something still doesn't work
I have desisntalled gdm ,
I have renamed /etc/rcS.d/S70x11-common to /etc/rcS.d/s70x11-common
and I try your aproach modifiying the script that way:
/root/kiosk.sh
Code:
#!/bin/bash
ARG=$1
if [ "$ARG" = "start" ]
then
echo " starting kiosk..."
echo $$ > /var/run/kiosk.pid
#run xinit in a loop to respawn the desktop if killed
while [ -f "/var/run/kiosk.pid" ]; do
xinit /root/kiosk.sh &> /dev/null
sleep 1
done
rm -f /var/run/kiosk.pid
else if [ "$ARG" = "stop" ]
then
rm -f /var/run/kiosk.pid
killall Xorg
else
shift
echo -e $$ > /var/run/kiosk.pid
#run gnome as window manager
/usr/bin/gnome-wm &
sleep 1
DISPLAY=:0.0 /usr/bin/firefox &
fi
fi
and add
/root/kiosk.sh start &
at the end of /etc/rc.local (just before exit 0)
But the result is an endless loop of trying to start X,
I have even simplified the whole thing creating a script
like this
/root/kiosk2.sh
Code:
/usr/bin/gnome-wm &
DISPLAY=:0.0 /usr/bin/firefox
and add to rc.local
Code:
xinit /root/kiosk2.sh &
with same result but of course in this case it just try once,
But the most curious of all this is that
running "xinit /root/kiosk2.sh &" from a terminal works! but it doesn't work form rc.local
What the &%&/( I'm missing?
here is the full copy of my rc.local
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
machine=$(grep "^Hardware" /proc/cpuinfo | sed 's/Hardware\s*:\s*//')
case "$machine" in
"Genesi Efika MX (Smartbook)")
board=efikasb
;;
"Genesi Efika MX (Smarttop)")
board=efikamx
;;
esac
if [ "${board}" = "efikamx" ]; then
if [ -f /sys/class/graphics/fb0/audio ]; then
modprobe snd-spdif
modprobe snd-soc-imx-3stack-sgtl5000
else
modprobe snd-soc-imx-3stack-sgtl5000
modprobe snd-spdif
fi
else
modprobe snd-soc-imx-3stack-sgtl5000
fi
su -
xinit /root/kiosk.sh &
exit 0