LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   starting X application remotely (https://www.linuxquestions.org/questions/linux-networking-3/starting-x-application-remotely-374525/)

spidy_123 10-18-2005 11:13 PM

starting X application remotely
 
I need to start an X application on a remote pc and display also on the remote pc

i tried logging via ssh as

ssh -l user -x 192.168.1.180

-x used to prevent X11 forwarding

then i export the display variable to
export DISPLAY=192.168.1.180:0.0

then i try running

xclock

i get this

Xlib: connection to "192.168.1.180:0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: 192.168.1.180:0.0


Now how can i display xclock / any x app on 192.168.1.180 logging from a networked linux pc ??

Any other ways exist too ??

jschiwal 10-19-2005 12:25 AM

Since the ssh shell is running on the remote machine, change the DISPLAY variable to simply ":0.0". I think that will work. I'm not at home now and can't test this out, but I was able to verify that DISPLAY=<my ip address>:0.0 wouldn't work. Bear in mind that I am assuming that the remote machine is already running X.

If using DISPLAY=":0.0" doesn't work, then you may need to use the "xauth" program.

spidy_123 10-19-2005 05:45 AM

It works on one redhat pc but not on the one i got the error i specified earlier
when i did the same operation i told above

is it due to some permissions ???

i get this error

even while using export DISPLAY=":0.0"

[root@mac root]# xclock
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Error: Can't open display: :0.0
[root@mac root]# xhost +
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"


All times are GMT -5. The time now is 10:02 PM.