LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-25-2007, 03:18 PM   #1
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Rep: Reputation: 15
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!
 
Old 06-26-2007, 09:39 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
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.
 
Old 06-26-2007, 09:57 AM   #3
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
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!

Last edited by sharptech; 06-26-2007 at 10:21 AM.
 
Old 06-26-2007, 11:51 AM   #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
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.
 
Old 06-26-2007, 11:59 AM   #5
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
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.
 
  


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
exporting display mendiratta Linux - Software 0 07-20-2004 07:01 AM
Exporting X Display belorion Linux - General 2 02-25-2004 04:16 AM
Exporting DISPLAY to windows xp wass29 Slackware 3 02-23-2004 12:17 PM
Exporting Display podollb Linux - Newbie 8 10-26-2003 09:21 PM
Need help: Issue when exporting the display alexesp Linux - General 0 09-17-2001 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:16 AM.

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