LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remote X apps (https://www.linuxquestions.org/questions/linux-newbie-8/remote-x-apps-287763/)

cliff76 02-08-2005 01:29 PM

Remote X apps
 
I am brand new to Linux but I was reading the Redhat 7 Bible and noticed a section on remote X displays. Apparently you can remote login to another machine and have the display show on your screen using the DISPLAY variable in the remote session. Well I tried and it didn't work. Basically I tried the following:
[ccc@ccc ~]xhost +otherpc
otherpc being added to access control list
[ccc@ccc ~]ssh me@otherpc

[me@otherpc]export DISPLAY=ccc:0
[me@otherpc]export DISPLAY=ccc:0
Error: Can't open display:ccc:0

What gives? Am I doing something wrong or is remote X nolonger supported? Do the Window managers need to be the same accross machines? Please Advise.

Cliff

Tinkster 02-08-2005 01:34 PM

Can otherpc ping ccc by name? If not,
add it to its /etc/hosts ... if it can, try
export DISPLAY=ccc:0.0

That said you could just as well set-up
ssh to do X forwarding :}


Cheers,
Tink

cliff76 02-08-2005 02:14 PM

No the remote machine cannot resolve my machine name. That's not the issue though. Should have mentioned that I was using ip addresses instead of names.

Tinkster 02-08-2005 02:23 PM

What about the modified DISPLAY variable, tried that?
If that's not it, either ... is ccc behind a firewall that
only allows established connections?


Cheers,
Tink

cliff76 02-08-2005 03:05 PM

modified variable doesn't work
 
Tink,

I used

[newaredev@optimus newaredev]$ export DISPLAY=192.168.99.15:0.0
[newaredev@optimus newaredev]$ xclock
Error: Can't open display: 192.168.99.15:0.0

this was all after xhost +192.168.99.125. I'm not behind a firewall of any sort (unless Fedora enables a firewall by default but I'm not sure how to check that off hand). Do I have to run xhost on the remote mahcine or on my machine? I've been running it on my machine to allow the remote machine to connect as that seems natural (also it's how the book said to do it). Let me know if I'm doing anything backwards.

cliff76 02-09-2005 08:33 AM

I looked into ssh X fowarding and I 'm not sure how to do that either. I'm not even sure if that's what I want to do.

Lleb_KCir 02-09-2005 03:29 PM

ssh -X is rather simple:

ssh -X user@IP program_path_to_run
password:(enter p/w when prompted)
poof there it is.

for this IIRC you have to have x11 forwarding configured, and i have no clue how to set it up, it is enabled by default in debian with KDE3.x or better.

cliff76 03-24-2005 12:31 PM

Sorry it took so long for me to get back to this post. I tried ssh -X and it works like a charm! Thanx!


All times are GMT -5. The time now is 04:34 AM.