LinuxQuestions.org
Review your favorite Linux distribution.
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 05-04-2006, 02:56 PM   #1
jhulik
LQ Newbie
 
Registered: Feb 2004
Location: New Jersey
Distribution: RedHat AS 2.1
Posts: 5

Rep: Reputation: 0
Angry telnet then exporting DISPLAY


I'm running RedHat Workstation Version 4 for iA64. When I telnet (ssh is unavailable) to another server then export DISPLAY=hostnam:0 and attempt to launch a motif application (or xclock for that matter) I get Error: Can't open display:

I tried xhost + to no avail.
My firewall is disabled
Is there some other security settings I need to turn off?
 
Old 05-04-2006, 04:04 PM   #2
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
A normal X11 session would be (assuming bash as shell):

peter@mycomp> xhost +yourcomp
peter@mycomp> telnet yourcomp
peter@yourcomp> export DISPLAY=mycomp:0.0
peter@yourcomp> someapplication

If you are using csh (or tcsh), the cmd line would be
peter@yourcomp> setenv DISPLAY mycomp:0.0

If it is not this and you did it in this order(or close), it may be a NAT issue. Are you or the computer you are accessing NAT'd? If so, you may have to forward the X11 port the the NAT ip. SSH has X11 tunneling.

Not a NAT issue, make sure the firewall is off on the host server. Try to nmap it to see if you see the X11 port (6000).


Pete

Last edited by peter72; 05-04-2006 at 04:07 PM.
 
Old 05-08-2006, 07:44 AM   #3
jhulik
LQ Newbie
 
Registered: Feb 2004
Location: New Jersey
Distribution: RedHat AS 2.1
Posts: 5

Original Poster
Rep: Reputation: 0
Not a NAT issue, did the xhost thing in that order. Ran through the security settings to disable the fire wall. Did a netstat -a and could not firn X11 on port 6000. But found...

[root@tdjhhp2 ~]# netstat -a | grep X11
unix 2 [ ACC ] STREAM LISTENING 6429 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 7727 /tmp/.X11-unix/X1

Is there some other security setting I need to remove?

Thanks
 
Old 05-23-2006, 10:51 PM   #4
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
Sorry for the late response.

If you use netstat -a, it resolves port 6000 as x11.

do a netstat -a | grep x11

my results are:

tcp 0 0 *:x11 *:* LISTEN
tcp 0 0 *:x11 *:* LISTEN

if you do a netstat -a --numeric-ports | grep 6000

you should get:

tcp 0 0 *:6000 *:* LISTEN
tcp 0 0 *:6000 *:* LISTEN




Another test would be on the machine you are telneting to. Log directly on the console of the remote machine. If you echo $DISPLAY, then you should see :0.0 returned. Then try setting display on this shell, ex.

my@mymachine> export DISPLAY=mymachine:0.0

Then try opening an app, like xclock. If still doesn't work, try:

me@mymachine> xhost +
me@mymachine> telnet mymachine
login: me
password: *******
Last login: Tue May 23 18:51:45 on :0
me@mymachine> export DISPLAY=mymachine:0.0
me@mymachine> xclock

FYI, you can set display also on the command line:

me@mymachine> xclock -display mymachine:0.0

Very curious as to what it could be.

Question: Is it just motif apps, or all apps?

Pete

Last edited by peter72; 05-23-2006 at 10:57 PM.
 
Old 05-24-2006, 07:12 AM   #5
jhulik
LQ Newbie
 
Registered: Feb 2004
Location: New Jersey
Distribution: RedHat AS 2.1
Posts: 5

Original Poster
Rep: Reputation: 0
Apparently by defalt in the gdm.conf file there is a statement DisallowTCP=true that needs to be set to false or commented out to allow this to work. I set it to false and all is fine now
 
  


Reply

Tags
display


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 in Fedora 2 sebashkw Fedora 1 09-24-2005 06:16 PM
Troubles with exporting display ajcrm125 Linux - Networking 6 11-12-2004 06:34 AM
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 podollb Linux - Newbie 8 10-26-2003 09:21 PM


All times are GMT -5. The time now is 03:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration