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.
|
 |
10-03-2007, 03:16 AM
|
#1
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Rep:
|
export display problem
hi all,
I have a network of RHEL 4.0 an RH 9.0 machines.
I Wish to achieve exporting the display of any machine to another.
Example :- Host A is 192.200.75.81
Host B is 192.200.75.84
Now I do the following :-
Host B :-
# xhost + // I know it is insecure stuff. but just to try !
Host A :-
# export DISPLAY=192.200.75.84:0.0
# xclock ( from the same terminal window)
OR
# xclock -display 192.200.75.84:0.0
It gives me error ..... Can't open display 192.200.75.84:0
Can someone help me fixing it.
Thanks in advance
nishith
|
|
|
10-03-2007, 09:38 AM
|
#2
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
You probably need to get X started without the -nolisten tcp argument. You may be able to do that by editing /etc/X11/gdm/gdm.conf, and setting DisallowTCP=false. Then restart X.
Is there a reason you can't simply use ssh -X (and don't change $DISPLAY on the remote host)? This is simpler and more secure.
--- rod.
|
|
|
10-03-2007, 08:12 PM
|
#3
|
Member
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318
Original Poster
Rep:
|
Thanks for the quick response.
Yeah it worked fine after I made DisallowTCP=False.
Tell me shouldn't startx --listen_tcp work ? It always throws up an error and the usage details !
One more thing could you help me with the steps to make it work using a ssh -X. I have generated the key pair and now I can est connection using ssh. What to do next ?
thanks again
nishith
|
|
|
10-04-2007, 01:35 PM
|
#4
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
|
The key pairs are only required if you want to perform passwordless connections. If you use an ssh connection with the -X switch, you should be able to simply run your X applications (on the remote host) without having to modify the $DISPLAY variable. The ssh will have created $DISPLAY, setting it to something like "localhost:10.0". The X clients then use this to know where to send X traffic, and the ssh server tunnels it back to your local X server.
I'm not sure what arguments are known to startx. I think startx is nomally a shell script, so the answer is in the code. As such, you could probably customize it fairly easily to do what you want.
--- rod.
Last edited by theNbomr; 10-04-2007 at 01:36 PM.
|
|
|
All times are GMT -5. The time now is 09:14 PM.
|
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
|
|