Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
02-08-2005, 01:29 PM
|
#1
|
Member
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48
Rep:
|
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
|
|
|
02-08-2005, 01:34 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-08-2005, 02:14 PM
|
#3
|
Member
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48
Original Poster
Rep:
|
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.
|
|
|
02-08-2005, 02:23 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
02-08-2005, 03:05 PM
|
#5
|
Member
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48
Original Poster
Rep:
|
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.
|
|
|
02-09-2005, 08:33 AM
|
#6
|
Member
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48
Original Poster
Rep:
|
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.
|
|
|
02-09-2005, 03:29 PM
|
#7
|
Senior Member
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765
Rep:
|
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.
|
|
|
03-24-2005, 12:31 PM
|
#8
|
Member
Registered: Feb 2005
Location: PA
Distribution: Fedora Core 3
Posts: 48
Original Poster
Rep:
|
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 02:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|