Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Can't open display!

Can't open display!
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Oct 19, 2004, 10:33 PM
 
Hey guys,

Hopefully you can help with this. I am using SSH to connect to the Linux server at my University. I try to run a graphical program from the terminal window and I get an error message that says:

[1] 6888
eos% Error: Can't open display:

[1] Exit 1

Is there a way to fix this problem? It doesn't happen with Windows machines that use the Putty Emulator or on Linux terminals, so I was thinking my Mac was missing something. Thanks for your help.
     
Mac Enthusiast
Join Date: Mar 2004
Status: Offline
Reply With Quote
Oct 19, 2004, 10:37 PM
 
I don't think Terminal by itself has the resources to do what you are asking of it (same with any other SSH front-end you may be using). X11 might be able to do it. Apple packages X11 with the OS now, I believe, on one of the "extra" CDs. It's also available as a free download from Apple's web site.

That said, I don't know if Apple's X11 can do this. I know very little of X11 in general, and less about the specific quirks that may be involved. In theory, the X Window System was built to be cross-platform for just the purposes you are highlighting. However, I don't know if Apple's particular take on this technology plays nice with remote clients.

Sorry I couldn't be of more help... perhaps somebody else will come along who will be
     
Mac Enthusiast
Join Date: Nov 2001
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Oct 19, 2004, 10:39 PM
 
Try setting your display *locally* (ie on your mac) using

setenv DISPLAY :0.0

(if you're using tcsh) or

export DISPLAY=:0.0

(if you're using bash or zsh). Then connect to the foreign machine using X forwarding:

ssh -X username@hostname

With any luck the graphical client app will display on your mac (obviously I'm assuming X11.app is up and running on your machine). If not you might have to go the less secure route. Reply if so and someone will doubtless specify ye olde worlde X11 commands.

Warning: graphically demanding X11 apps are dog-slow over anything other than a very fast network connection.

Cheers,
Paul
     
Cowwie  (op)
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Oct 19, 2004, 10:40 PM
 
Sorry, I meant to say that I was using X11 to SSH, not 'Terminal' in the utilities folder.
     
Cowwie  (op)
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Oct 19, 2004, 10:44 PM
 
Paul, that worked perfectly. Thanks a bunch to both of you for your help!
     
Mac Enthusiast
Join Date: Nov 2001
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Oct 20, 2004, 02:47 AM
 
You're more than welcome: good to hear things are up and running.

Paul
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:54 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2