LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2006, 10:42 PM   #1
swdiaz
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Error: can't open display.


I am Linux and Unix illiterate.

I am a student working on an independent computing project via a large-scale Linux cluster at school (Indiana - AVIDD-I cluster). I need to access a program (fluent) on this cluster.

I am connecting thru a ssh downloaded from the university. I have a trial version of Hummingbird Exceed with the 3D option loaded onto my laptop (Dell Insiron 8200) at home.

I used to get the following error upon attempting to access fluent:

Error: DISPLAY environment variable not set

after searching this site I ran:


export DISPLAY=localhost:0.0

which apparently set the display variable.
Now I get the following error:

Error: can't open display.
fluent: error: couldn't initialize interface.

Any clue??????? Any help would be GREATLY appreciated!!!
My Academic Advisor is in Sri Lanka for the summer and, therefore, a marginal resource for assistance.

THANKS!!!!!!!
 
Old 05-28-2006, 01:18 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ!

I don't know Exceed, but if you export a DISPLAY variable on
the machine you ssh into it has to be not localhost but the
box you're sitting on? (That is, it really shouldn't be
necessary at all if ssh has been set-up with X11Forwarding
enabled.) WHat happens if you
ssh -X user@machine
into that host? Can you just start up X apps and they pop
up on your screen?


Cheers,
Tink
 
Old 05-28-2006, 01:32 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
With a direct connection (i.e. without ssh tunnelling), you need to set $DISPLAY to the IP address or hostname on your University's LAN. A $DISPLAY of "localhost" will only work for applications you're running locally, on your own PC.

So I believe that "set DISPLAY=localhost:0" will not work.

But unfortunately, since I've never used ssh tunneling, I'm not 100% certain about this...

My understanding is that Exceed supports ssh tunneling directly. I believe this means you should *unset* DISPLAY (in DOS/Windows), and *select* SSH tunneling (in Exceed).

This link might help:
http://www.uic.edu/depts/accc/softwa...sshexceed.html

Good luck .. PSM

PS:
Sounds like a fascinating project!

PPS:
This link is a bit less useful:
http://www.maths.ox.ac.uk/help/faqs/...remote-X.shtml

But it mentions that you must enable X11 forwarding:
hhttp://www.maths.ox.ac.uk/help/faqs/login/ssh.shtml
<= This might be the key!

PPS:
I just noticed that tinkster suggested the same thing: "configuring ssh for X11 forwarding". The exact syntax, of course, depends on which "ssh" program you're using (in your case, probably "putty"). Again, please check out the Oxford page:
http://www.maths.ox.ac.uk/help/faqs/login/ssh.shtml

'Hope that helps!

Last edited by paulsm4; 05-28-2006 at 01:55 AM.
 
Old 02-03-2014, 05:58 AM   #4
kind.personnel
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
X tunnel through SSH

when using ssh you don't have to change the DISPLAY environment variable in the remote machine, since ssh will take care of that.

if the remote machine don't have sshd service, and you cannot ssh to it, in this case you have to use telnet and therefor use the
export DISPLAY='your machine':0.0
or
setenv DISPLAY 'your machine':0.0

according to the shell used in the remote machine.

also make sure to open the X11 port 6000 in your server.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Can't open display (X server problem) km4hr Linux - Networking 1 05-09-2006 03:36 PM
Error: can't open display gopalkasat Linux - Networking 8 12-13-2004 01:59 PM
Suse 9.1 Error: Can't open display dan7 General 5 07-23-2004 10:59 AM
wdb Error: Can't open display: 172.16.1.28:0 murugesan Linux - Networking 4 02-19-2004 04:01 AM
Could not open display error reyemarr Linux - General 14 12-06-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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