[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian running kiosk-mode problems



debian 3.0r2
kernel 2.2.20

Box placed in a public library for public to browse librarys media database
Demands are no log-in, just power on and starting X and browser
Browser used is Galeon.

I have put up several boxes like this using redhat8, and it worked very well. I will now test debian running this, as I was told it might run faster than rh.


The problem is that X starts, but will not display galeon.
Shortly told the system is put up like this:
added user kiosk, system configuration by /etc/inittab, /home/kiosk/kiosk.sh /home/kiosk/kiosk-session /home/kiosk/.xsession and in additional I have tried to solve the problem by adding /home/kiosk/.xserverrc for being sure that the correct X server is used.

/etc/inittab provides automatically logging by the line "k:4:respawn:/home/kiosk/kiosk.sh" /home/kiosk.sh calling "exec xinit /home/kiosk/kiosk-session --$xargs >/tmp/.xsession-errors2>&1" /home/kiosk/kiosk-session making no prompt for password: "exec su - --command /home/kiosk/.xsession kiosk"


I paste in the file /home/kiosk/.xsession, as I am very unsure if this one is corrrect
/home/kiosk/.xsession:
"#!/bin/sh
# This is the $HOME/.xsession file for the kiosk "kiosk" user.

# put up our "loading, please wait" background image
#/usr/bin/X11/xsetbg /home/kiosk/wallpaper.gif


# turn off caps-lock, and make sure both BS and DEL exist (dunno why this
# seems not to be the default...)
#
/usr/X11R6/bin/xmodmap -e 'clear Lock' \
#       -e 'keycode 0x42 = Control_L' \
#       -e 'add Control  = Control_L' \
#       -e 'keycode 0x16 = BackSpace' \
#       -e 'keycode 0x6B = Delete'

export PATH=$PATH:/bin:/usr/bin
#xscreensaver -no-splash&
while true ; do
 /usr/bin/galeon -df
#  /usr/bin/mozilla
done

# this should never be reached

Now, what happens is that I get grey screen with the mouse-pointer active, but no galeon displayed. If I log on remote by ssh and run top, I can see that /usr/bin/galeon is active and running.

Top output:

25 processes: 23 sleeping, 2 running, 0 zombie, 0 stopped
CPU states:  80.7% user,  11.3% system,   0.0% nice,   8.0% idle
Mem:     95504K total,    28448K used,    67056K free,     1952K buffers
Swap:   211672K total,        0K used,   211672K free,    16744K cached
0m
ESC[7m PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND [0m
1304 kiosk     10   0   720  720   456 R     5.7  0.7   0:00 galeon-bin
1298 root       2   0   928  928   748 R     2.8  0.9   0:00 top
   1 root       0   0   484  484   424 S     0.0  0.5   0:05 init
   2 root       0   0     0    0     0 SW    0.0  0.0   0:00 kflushd
   3 root       0   0     0    0     0 SW    0.0  0.0   0:00 kupdate
   4 root       0   0     0    0     0 SW    0.0  0.0   0:00 kswapd
   5 root       0   0     0    0     0 SW    0.0  0.0   0:00 keventd
  95 daemon     0   0   428  428   352 S     0.0  0.4   0:00 portmap
 153 root       0   0   780  780   664 S     0.0  0.8   0:00 syslogd
 156 root       0   0   824  824   408 S     0.0  0.8   0:00 klogd
 161 root       0   0   692  692   596 S     0.0  0.7   0:00 rpc.statd
 170 root       0   0   760  760   676 S     0.0  0.7   0:00 inetd
 174 root       0   0   744  744   652 S     0.0  0.7   0:00 lpd
 183 root       0   0  1208 1208  1076 S     0.0  1.2   0:00 sshd
 187 root       0   0  3104 3104   632 S     0.0  3.2   0:00 xfs
 190 daemon     0   0   584  584   504 S     0.0  0.6   0:00 atd
 193 root       0   0   684  684   564 S     0.0  0.7   0:00 cron
 196 root       0   0   468  468   408 S     0.0  0.4   0:00 getty
 197 root       0   0   468  468   408 S     0.0  0.4   0:00 getty
 198 root       0   0   620  620   536 S     0.0  0.6   0:00 xinit
 199 root     -11 -11  3868 2716  1616 S <   0.0  2.8   0:00 XF86_S3
 201 kiosk      5   0   908  908   764 S     0.0  0.9   0:00 .xsession
1045 root       0   0  1920 1920  1656 S     0.0  2.0   0:00 sshd
1071 root       0   0  1220 1220   996 S     0.0  1.2   0:00 bash
1299 root 0 0 344 344 284 S 0.0 0.3 0:00 cat[1m 14:39:39 up 4 min, 1 user, load average: 0.99, 0.59, 0.24ESC[K
25 processes: 23 sleeping, 2 running, 0 zombie, 0 stopped
:

If I start as linux single from Lilo for override /etc/inittab settings and login as common user, and type "xinit /usr/bin/galeon, it starts perfect. The system I have used here worked very well in redhat, and I am a little stuck here now why it is not working in debian.
Anyone that is X Xperts, I will be very thankful for advice




Reply to: