LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RHEL5 exporting display ? (https://www.linuxquestions.org/questions/red-hat-31/rhel5-exporting-display-564422/)

sharptech 06-25-2007 03:18 PM

RHEL5 exporting display ?
 
Hello,

I am trying to export my display on a server (xen3) over to this machine running RHEL5.

on xen3 I have done
Code:

export DISPLAY=(ipaddress):0
on the RHEL5 machine I did xhost +xen3.

I also turned off firewalls on both machines and when I try to run xclock to test it will not display - I get the error:

error: can't open display: (ipaddress)

The interesting thing is when I run nmap -v localhost I get this:

Code:

Discovered open port 22/tcp on 127.0.0.1
Discovered open port 25/tcp on 127.0.0.1
Discovered open port 7100/tcp on 127.0.0.1
Discovered open port 111/tcp on 127.0.0.1
Discovered open port 631/tcp on 127.0.0.1
Discovered open port 676/tcp on 127.0.0.1
The SYN Stealth Scan took 0.25s to scan 1680 total ports.
Host localhost.localdomain (127.0.0.1) appears to be up ... good.
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1674 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
111/tcp  open  rpcbind
631/tcp  open  ipp
676/tcp  open  unknown
7100/tcp open  font-service

I do not see tcp port 6000 open and I think this could be preventing the machines to not connect.

I edited the /etc/X11/fs/config file:

Code:

# For security, don't listen to TCP ports by default.
#no-listen = tcp

I commented out the no-listen and rebooted and still no 6000.

Any suggestions on how to get this running?

Thanks!

theNbomr 06-26-2007 09:39 AM

If you run
Code:

ps -e l | grep X
do you see the X commandline? It may contain the switch '-nolisten tcp'. One would assume that this originates from the config file you already pointed out, however, if it is set, it would indicate that another configuration is involved. Once you get the X server listening to TCP, you still have to get through the Xauthority maze. Having fun yet? :-)
--- rod.

sharptech 06-26-2007 09:57 AM

Quote:

Originally Posted by theNbomr
If you run
Code:

ps -e l | grep X
do you see the X commandline? It may contain the switch '-nolisten tcp'. One would assume that this originates from the config file you already pointed out, however, if it is set, it would indicate that another configuration is involved. Once you get the X server listening to TCP, you still have to get through the Xauthority maze. Having fun yet? :-)
--- rod.

Hello,

Thanks for the reply - here is the output of ps -e l |grep X

Code:

4    0  3064  3058  15  0  23260 13880 -      Ss+  tty7      1:30 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
1    0  3140  3085  18  0  4304  260 -      Ss  ?          0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
1    0  3143    1  18  0  2752  392 -      S    ?          0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
0    0 19417 19392  18  0  3896  696 -      R+  pts/2      0:00 grep X

As we can see we have a --nolisten tcp vt7 etc.. where is the other config file that I need to edit? I looked at /etc/X11/xorg.conf and there is nothing on listening for TCP.

Getting closer!

theNbomr 06-26-2007 11:51 AM

Quote:

Originally Posted by sharptech
As we can see we have a --nolisten tcp vt7 etc.. where is the other config file that I need to edit? I looked at /etc/X11/xorg.conf and there is nothing on listening for TCP.

Getting closer!

That's the million dollar question. I found references to '-nolisten tcp' in /etc/X11R6/gdm/gdm.conf, but it reads
Code:

#DisallowTCP=true
(commented out) which to me, reads like "don't disallow tcp". I hope someone can sort this out. Sorry for not being too helpful.
--- rod.

sharptech 06-26-2007 11:59 AM

Quote:

Originally Posted by theNbomr
That's the million dollar question. I found references to '-nolisten tcp' in /etc/X11R6/gdm/gdm.conf, but it reads
Code:

#DisallowTCP=true
(commented out) which to me, reads like "don't disallow tcp". I hope someone can sort this out. Sorry for not being too helpful.
--- rod.

No problem - thanks for getting me on the right track.


All times are GMT -5. The time now is 03:22 AM.