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 |
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. |
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 |
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. |