LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   export display problem (https://www.linuxquestions.org/questions/linux-newbie-8/export-display-problem-589050/)

nkd 10-03-2007 02:16 AM

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

theNbomr 10-03-2007 08:38 AM

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.

nkd 10-03-2007 07:12 PM

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

theNbomr 10-04-2007 12:35 PM

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.


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