Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Using Putty and SSH to try to initiate startx remotely
View previous topic :: View next topic  
Author Message
tcare
Junior Member


Joined: 18 Jun 2008
Posts: 4

PostPosted: Fri Jun 20, 2008 3:25 am    Post subject: Using Putty and SSH to try to initiate startx remotely Reply with quote

Hi -

I am currently evaluating SMS - very nice so far. However, I am trying to SSH into my remote SMS server with Putty. No problem. Logging in, no problem. The problem starts if i try to startx. I have found that when I type in:

echo $DISPLAY

nothing displays. (This is the default installation of 1.3.7). Then I type in:

DISPLAY="AcerLaptop:0";export DISPLAY (where AcerLaptop is the XP computer

I am running XP as the remote client OS. I installed XMing to handle the remote X desktop.

Here is my terminal history:

root@sms:~# $DISPLAY
root@sms:~#
root@sms:~# echo $DISPLAY

root@sms:~# DISPLAY="AcerLaptop:0";export DISPLAY
root@sms:~# echo $DISPLAY
AcerLaptop:0
root@sms:~# startx
xauth: creating new authority file /root/.serverauth.6496

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Slackware 12.0 Slackware Linux Project
Current Operating System: Linux sms 2.6.21.5 #1 SMP Thu Aug 2 10:59:10 CEST 2007 i686
Build Date: 09 May 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun 19 20:46:38 2008
(==) Using config file: "/etc/X11/xorg.conf"

(II) Module already built-in
(EE) AIGLX: DRI module not loaded
sh: /usr/bin/cpp: No such file or directory
xset: bad font path element (#62), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
kbuildsycoca running...
sh: /usr/bin/cpp: No such file or directory
artsd: error while loading shared libraries: libesd.so.0: cannot open shared object file: No such file or directory
Could not open library '/usr/lib/kde3/knotify.la'.
libesd.so.0: cannot open shared object file: No such file or directory
kded: Fatal IO error: client killed
kded: Fatal IO error: client killed
kwin: Fatal IO error: client killed
ksmserver: Fatal IO error: client killed
ksmserver: Fatal IO error: client killed

waiting for X server to shut down Hangup
GOT SIGHUP
kdeinit: Fatal IO error: client killed
ICE default IO error handler doing an exit(), pid = 6572, errno = 11
ICE default IO error handler doing an exit(), pid = 6577, errno = 11
ICE default IO error handler doing an exit(), pid = 6569, errno = 11
kdeinit: sending SIGHUP to children.
klauncher: Exiting on signal 1
klauncher: Fatal IO error: client killed
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
kicker: sighandler called
kicker: sighandler called
DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
ERROR: Couldn't attach to DCOP server!
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
artsshell: error while loading shared libraries: libesd.so.0: cannot open shared object file: No such file or directory
startkde: Running shutdown scripts...
xprop: unable to open display ':0'
usage: xprop [-options ...] [[format [dformat]] atom] ...

where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever

startkde: Done.


xinit: unexpected signal 2.

Is there any default configuration of SMS that would prevent X from loading?
Please help!

tcare
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Fri Jun 20, 2008 6:03 am    Post subject: Reply with quote

putty is an SSH client, not a remote desktop connection software.
You can use tightVNC, VNC or your Xmind for rdc.
I visit XMIND website but there is no documentation hot to connect.
Doesn't have server and client apps to install?

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
tcare
Junior Member


Joined: 18 Jun 2008
Posts: 4

PostPosted: Fri Jun 20, 2008 4:32 pm    Post subject: Using Putty, SSH, and redirecting the DISPLAY through the se Reply with quote

Thank you for your response - but not quite the answer I hoped for. SSH creates a secure tunnel, which DISPLAY output can be redirected to the remote client. I know that the problem is rooted in the way that SMS is configured for X. It sounds like your experience is limited using these tools to achieve a remote desktop. I will keep plugging away, and if I come up with a solution, I'll let the board know. If you do a search on Google, you will see many people are apparently doing this (using Putty, SSH, and redirecting the DISPLAY through the secure tunnel), so I think that a solution would be good. I think that the whole KDE thing makes things a little more complicated.


Thanks,

tcare
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Fri Jun 20, 2008 6:41 pm    Post subject: Reply with quote

trace wrote:
It sounds like your experience is limited using these tools to achieve a remote desktop


Indeed, I use ssh login only, that's the good with unix systems. I don't have much time to do testing for rdc for now, but if you find something, I'll put it as default to kde for not confusing other users.
Thanks

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
fredvej
Junior Member


Joined: 18 Aug 2007
Posts: 5

PostPosted: Sat Jun 21, 2008 3:57 pm    Post subject: Reply with quote

When you want to tunnel X, you want output from X-clients running on the remote host to be displayed on your local X display. You do not want to start an X-server on the remote host and have it use your local display. An X-server can only reach display that is local on the host running it, so you don't need an X-server running on the remote host at all.

To tunnel X you must

1) configure sshd on the remote host to tunnel X , set X11Forwarding yes in sshd_config.

2) have an X-server running on your local machine to display output from the X-clients on the remote host. On Windows I can recommend the Cygwin X-server.

3) ssh to the remote host using the parameter to tunnel X via SSH :
start putty -ssh -P 22 -X -C username@remote_host_address
The remote host sshd must set the DISPLAY environment variable, typically to localhost:10.0 . If it is not set when you login via ssh, the sshd configuration on the remote host is not correct. Setting it manually will not work, that wont activate the tunnelling of X on the remote host.

4) start an X-client on the remote host from the SSH terminal command line, e.g. xclock if it is present - I haven't got an SMS running, so I don't know what is available.

Which program on the SMS server has X output that you want to see ?
Back to top
View user's profile Send private message
tcare
Junior Member


Joined: 18 Jun 2008
Posts: 4

PostPosted: Fri Jul 04, 2008 7:13 pm    Post subject: Reply with quote

fredvej -

Great response. That is a big help so far. But what I ultimately wanted to achieve was something like a remote desktop without using VNC, etc..., not simply to just run xclock or a GUI app. I wanted to redirect the entire desktop. Any ideas?

Thanks,

David B.
Back to top
View user's profile Send private message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Sat Jul 05, 2008 12:12 am    Post subject: Reply with quote

tcare: you can do that with freenx. I use it all the time - very fast and you can access from windows or linux client.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional