LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-03-2007, 03:16 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
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
 
Old 10-03-2007, 09:38 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
Old 10-03-2007, 08:12 PM   #3
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
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
 
Old 10-04-2007, 01:35 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Export DISPLAY idk666 Linux - General 3 07-02-2009 12:58 PM
export DISPLAY binary_0011 Linux - Newbie 2 10-15-2006 11:09 AM
how to export the display bruse Linux - Networking 18 05-03-2005 10:13 PM
can't export my display to another systems jaybrus LinuxQuestions.org Member Intro 2 05-15-2004 05:29 AM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration