[SOLVED] using two slackware computers how to ssh across, run xclock remotely and display locally
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
using two slackware computers how to ssh across, run xclock remotely and display locally
Hi,
I have two slackware 14.2 computers.
S1 is headless, ie no keyboard, mouse, display.
S2 is running KDE with a keyboard, mouse and display.
(I will use S1 and S2 to represent the host names of each computer)
I would like to ssh from S2 to S1,
then run a program, eg xclock, on S1 and have it display on S2.
Sounds simple and was easy and not a problem a few versions ago but now I can not get past the message:
Error: Can't open display: S2:0
I have tried:
S1# startkde
S2# KDE/XDM/X etc not running
Hi,
I have two slackware 14.2 computers.
S1 is headless, ie no keyboard, mouse, display.
S2 is running KDE with a keyboard, mouse and display.
(I will use S1 and S2 to represent the host names of each computer)
I would like to ssh from S2 to S1,
then run a program, eg xclock, on S1 and have it display on S2.
Sounds simple and was easy and not a problem a few versions ago but now I can not get past the message:
Error: Can't open display: S2:0
I have tried:
S1# startkde
S2# KDE/XDM/X etc not running
-X generates:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
S2> setenv DISPLAY S1:0
S2> echo $DISPLAY
S1:0
S2> xclock
or
S2> xclock -display S1:0
Error: Can't open display: S1:0
--------------------------------
You say you want to ssh from S2 to headless S1 but if I'm not mistaken what you've tried above shows you doing it in reverse, from headless S1 to S2.
All you need to do is allow X11Forwarding on S1, and then ssh with X forwarding from S2 to S1:
ssh -Y user@S1
There is no need to export a DISPLAY variable; ssh will look after that for you. Once you ssh in to S1 just run xterm or xclock and the client will be displayed on S2. X does not need to be running on S1. Needless to say it does need to be running on S2.
Thanks guys,
I had noticed that X did not seem to listening on port 6000 using this command:
S1> netstat -an | grep -F 6000
but I didn't know how to change that, so thanks "gda"
The magic command I was missing was:
startx -- -listen tcp
After restarting KDE with the above startx command, which I have now made an alias for startx
and following my normal procedure it all works nicely.
Excellent!
I wish I had asked earlier coz I have been googling on and off for weeks with no success :=)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.