You are not logged in.

#1 2017-07-01 12:39:10

alexlavigne2010
Member
Registered: 2017-06-25
Posts: 2

How to show xclock in remoting computer?

Hey,guys!
I encounted a problem today.

Having computerA(pc-a) and computerB(pc-b),and the ip of A is 192.168.1.111,the ip of B is 192.168.1.105,
I login B and startx.

I opened a console ,then do somethin like this:
[userInB@pc-b]#sudo xhost +
[userInB@pc-b]#ssh  userInA:192.168.1.111
[userInA@pc-a]#export DISPLAY=192.168.1.105:0.0
[userInA@pc-a]#xclock

Then I get the error: cannot open the display  192.168.1.105:0.0

Why? And how to make the xclock of pc-a run in pc-b ?

I am not sure if I have made it clear.If you have any question of it or want more information,please ask me.

Looking forward to your answer.
Thanks!

Offline

#2 2017-07-01 12:44:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,526
Website

Re: How to show xclock in remoting computer?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-07-01 14:57:04

alexlavigne2010
Member
Registered: 2017-06-25
Posts: 2

Re: How to show xclock in remoting computer?

to allows graphical interfaces of X11 programs running on a remote system to be displayed on a local client machine,
I thought X11_forwarding of ssh is one method but not the only one.

I search in internet then I think it is one feature of xorg,and it is not rely on ssh.

Is my idea wrong?

Offline

#4 2017-07-01 16:28:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,272

Re: How to show xclock in remoting computer?

then do somethin like this

First: "something like this" is no useful information because it implies "but could actually be totally different"
Second: what you *seem* to do there somewhat contrasts with what you apparently want to do.

=> Do you want to run the xclock *process* on A or on B? Shall it use the X11 server on A or on B?

Assuming it's actual forwarding: you can either use "ssh -Y" or allow the X11 server to open a tcp port (and then won't need any other mechanisms, you eg. set DISPLAY=server:0.0 if the remote port is 6000)
The latter is discouraged and deadly in hostile environments.

Offline

#5 2017-07-01 17:00:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,526
Website

Re: How to show xclock in remoting computer?

alexlavigne2010 wrote:

I thought X11_forwarding of ssh is one method but not the only one.

It is one way, yes.  I don't know if it's the only way.  But it is what you seem to be attempting to do - you are just doing it wrong.  The page in the wiki I linked to gives a step by step example of running xclock in the way you want.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB