Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ssh - X connection to localhost:10.0 broken, launching a X application through ssh< Next Oldest | Next Newest >
kluber Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 15 2004,08:54 QUOTE

Hello,

I access a DSL 0.8.3 through a SSH session, but whenever I try to use MC or to launch a X application the response is
"X connection to localhost:10.0 broken (explicit kill or server shutdown)."

I tried this with users : root, dsl, and a new user
and have the same problem with all of them.

Looking for this message on other boards I found so many differents answers and tests to do that I feel it will take a too long time to do all this tests.

Does somebody have a short answer to this ?

Thanks,

Michel.
Back to top
Profile PM 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Nov. 15 2004,16:44 QUOTE

this means you are trying to launch an X application, this would require an Xserver,  and tunnelling enabled. what are you using to connect to the dsl machine (ssh client and OS)

--------------
ico2
Back to top
Profile PM MSN 
kluber Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 15 2004,17:27 QUOTE

Yes, using a SSH connection to the DSL "server" I hope to display a slideshow on the DSL "server".

On DSL, it's ok to start the slideshow at boot time, but I try to restart the slideshow remotely after each (remote) update, so I need to launch a X application remotely.

The client is Putty running on Windows 2000 (yes !)

Thanks,

Michel.
Back to top
Profile PM 
kluber Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 19 2004,10:06 QUOTE

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.
Back to top
Profile PM 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Nov. 19 2004,11:26 QUOTE

have you tried Xwin32? it is an xserver that runs on windows. it will allow you to do what you need.

--------------
ico2
Back to top
Profile PM MSN 
7 replies since Nov. 15 2004,08:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: ssh - X connection to localhost:10.0 broken

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code