| kluber  
 
 
 
 
 Group: Members
 Posts: 12
 Joined: Nov. 2004
 | 
|  | Posted: Nov. 19 2004,10:06 |  |  As this question don't inspire anyone ... I search an found a solution (tested with DSL 0.8.3)
 
 1°) Configure the SSH connection,
 We have to do the SSH connection with same user as the one used to launch X11 on the DSL 'server'
 -> user dsl
 
 On DSL server, running a root shell, I have to change the dsl password.
 $sudo su
 $passwd dsl
 -> new password for 'dsl'
 
 add
 /etc/init.d/ssh start to /opt/bootlocal.sh
 (if you launch ssh start from shell, you will not be able to keep a X11 application on the screen after disconnecting)
 
 add
 /etc/passwd
 /etc/shadow
 to /home/dsl/filetool.lst
 
 And backup this config using DSLxxx
 
 2°) make a SSH connection to DSL with user 'dsl'
 
 3°) Have the env variable DISPLAY designing the X11 launched on ssh server.
 -> export DISPLAY=":0.0"
 Then I can launch a X11 application from SSH session, and the X11 application is displayed on server.
 
 But ... when I disconnect from ssh, the application is stopped
 
 4°) Launch the X11 application with the '&' parameter to have that one running in background and stay on screen when leaving session
 
 So ... to launch dillo on DSL 'server' from a SSH client logged in with 'dsl' user
 $export DISPLAY=":0.0"
 $dillo &
 
 Then if you disconnect from session, Dillo stay on screen.
 
 
 5°) to kill dillo when reconnecting, type in a bash script :
 --------------
 #!/bin/bash
 pspid=`ps|grep dillo|cut -d" " -f3|sed -e 's/ //'`
 echo "ID:$pspid"
 if [ "$pspid" != "" ]; then
 kill $pspid
 echo "dillo killed"
 else
 echo "dillo is not on screen"
 fi
 --------------
 
 I can now display what I want on a remote PC with just DSL on a USB memory key.
 I will used that config to display information for workers on some large screens inside our factory.
 |