LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-15-2006, 02:28 PM   #1
cc-aero
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
cannot connet to X server


Greetings All,

I am experiencing a newbie problem with my SuSE SLES10 installation. When I ssh into a remote host (SGI IRIX 6.5.24) and attempt to run an application with redirected input I get the following error:

Can't open display

I have already tried xhost +. If I ssh into another SLES9 machine, the redirected input works as normal.
 
Old 08-15-2006, 02:34 PM   #2
dannystaple
Member
 
Registered: Apr 2006
Location: London, Uk
Distribution: Ubuntu on Desktop
Posts: 121

Rep: Reputation: 15
What is the DISPLAY environment variable set to on the SGI machine?

I presume (this is just a sanity check) that you are using -X on the ssh command line.

Danny
 
Old 08-15-2006, 02:49 PM   #3
cc-aero
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I am using

ssh -X <SGI-workstation>

Also, On the SGI workstation I have set the DISPLAY env variable by hand to <SLES10-workstation>:0.0

Chet
 
Old 08-17-2006, 04:59 PM   #4
dannystaple
Member
 
Registered: Apr 2006
Location: London, Uk
Distribution: Ubuntu on Desktop
Posts: 121

Rep: Reputation: 15
Quote:
I have set the DISPLAY env variable by hand to <SLES10-workstation>:0.0
That will be your problem then. When you use -X, the ports are forwarded, and the return path is done via ssh. Actually having the hostname/ip for the X server will not work, as that will be going via the firewalled route.

You should not be setting the DISPLAY by hand, and should probably end up with a display variable that is something like "localhost:xx.0" - where xx is some number (I often see something between 10 and 12).

Danny
 
Old 08-18-2006, 10:35 AM   #5
cc-aero
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
If I log in and try to run yast I get:

/root# ssh -X <SLES-9-workstation>
/root# yast2
y2controlcenter: cannot connect to x server <SLES-10-workstation>:0.0

but if I set the display:

/root# setenv DISPLAY localhost:10.0
/root# yast2

the Yast gui runs on the remote host just fine. Is this normal behavior? If I repeat the process again, this time using ssh without the -X, I cannot run no matter what I set the display to.

Chet
 
Old 08-19-2006, 05:31 AM   #6
dannystaple
Member
 
Registered: Apr 2006
Location: London, Uk
Distribution: Ubuntu on Desktop
Posts: 121

Rep: Reputation: 15
Without the -X you are not forwarding anything, so I would not expect that to work.

With the -X, the display is being forwarded to a local port - this is what SSH port forwarding is all about. So you would expect the display variable on the machine you are connecting to, to have a value with localhost:10.0, as that is referencing the forwarded port.

Where is the display being set to <SLES-10-workstation>:0.0? This may be a profile script overriding the value the X-forwarding should give, which is probably localhost:10.0.

Danny
 
  


Reply



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
I cannot connet to internet after change IP address curly_hair Linux - Networking 2 03-29-2006 05:54 PM
SSH wont connet bingo11 Linux - Security 5 06-26-2005 06:04 PM
cannot connet co x-server when type start kde Mac Write Debian 2 08-16-2004 07:31 PM
kopete does not connet to AIM server lazychris2000 Linux - Software 2 09-21-2003 06:11 AM
when I login not as root, it does not connet to internet........ help broodman Linux - Networking 9 07-27-2003 11:13 AM

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

All times are GMT -5. The time now is 12:24 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