LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-18-2005, 11:13 PM   #1
spidy_123
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
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 ??
 
Old 10-19-2005, 12:25 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
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.
 
Old 10-19-2005, 05:45 AM   #3
spidy_123
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
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"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting X remotely Intacto Linux - Newbie 4 11-28-2005 10:36 PM
Starting an application on X by console tiagomadeira Linux - Software 4 01-09-2005 06:53 AM
Starting program remotely and have them continue to run after the session is ended OJAtkinson Linux - General 2 12-07-2004 12:06 PM
starting an xserver remotely by script ?? jdaniel Linux - General 3 09-22-2003 01:06 AM
Auto starting an application bbereg Linux - Newbie 7 11-21-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration