[Pkg-ltsp-devel] startx

Vagrant Cascadian vagrant at freegeek.org
Wed Sep 20 14:35:39 UTC 2006


On Wed, Sep 20, 2006 at 11:45:51AM +0530, Jyothi rao wrote:
> hi all,
> I am using ltsp for about 25 clients and it works fine till now.
> I am actually calling startx in screen_07 and querying to a different server.
> i am able to do it and that is also ok.
> but normally, when a user presses, ctrl+alt+backspace in a gui session
> it will disconnect and give the login screen.
> but in my case, it is not so.  when a user presses ctrl+alt+backspace,
> it results in a command line prompt of ltsp-login which i dont want.
> i want the startx to get respawned everytime i press ctrl+alt+backspace.
> 
> can anyone tell me the way to to it ??

edit the screen script /usr/lib/ltsp/screen.d/startx:

put a while loop around both calls to XBINARY:

while true ; do
    ${XBINARY} ${ACC_CTRL}              \
                              ${XF_ARGS}               \
                              -xf86config ${XFCFG}     \
                              vt${TTY} ${DISP} >/dev/null 2>&1
    sleep 10
done

instead of using a while loop, you could install the package "daemon"
into the chroot, and there should be an example of that in
/usr/lib/ltsp/screen.d/sdm.

this reminds me that we should include user-defined screen scripts in
/etc/ltsp/screen.d or something.

live well,
  vagrant



More information about the Pkg-ltsp-devel mailing list