image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old March 23rd, 2005, 09:05 PM
joe_burban's Avatar
Registered User
 
Join Date: Mar 2005
Posts: 54
Thanks: 3
Thanked 0 Times in 0 Posts
joe_burban will become famous soon enough
setenv DISPLAY

When I ssh to a unix server from my mac with X11, I am unable to set the display properly. From other sun stations, from PC (using an XWin program), I have been able to ssh then open terminal to run software GUI.

Here are the messages I get when trying to setenv DISPLAY in x11:

setenv DISPLAY 130.15.245.139:0.0
sfnode0% nedit
Xlib: connection to "130.15.245.139:0.0" refused by server
Xlib: No protocol specified

NEdit: Can't open display
sfnode0%

I use nedit to test that display has been set properly. If anybody knows how to fix this, I would appreciate some help.

thx
Reply With Quote
  #2  
Old March 23rd, 2005, 09:18 PM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
Run ssh with the -X option, it will enable forwarding of X11 over ssh, and will set the display for you.

Otherwise, you probably didn't run the xhost command on your OS X box to allow X11 incoming connections.

Brian
__________________
UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie
Reply With Quote
  #3  
Old March 23rd, 2005, 09:51 PM
Who, me?
 
Join Date: Feb 2005
Location: Near to Philly.
Posts: 382
Thanks: 0
Thanked 0 Times in 0 Posts
chornbe is on a distinguished road
Wow. And I've been "export DISPLAY=xxxxxx" manually each time. Thanks for the tip.
Reply With Quote
  #4  
Old March 24th, 2005, 12:42 AM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
Not to mention the fact that it's secure and encrypted by using ssh, which is a plus to the ease of use

Brian
__________________
UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie
Reply With Quote
  #5  
Old April 17th, 2005, 04:23 AM
Sir Charles
 
Join Date: Mar 2005
Location: UK
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
sircharles will become famous soon enough
I believe you need to do xhost + on the machine you are connecting to

sc
Reply With Quote
  #6  
Old April 17th, 2005, 03:09 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
Quote:
Originally Posted by chornbe
Wow. And I've been "export DISPLAY=xxxxxx" manually each time. Thanks for the tip.
You can type that into the file called .profile or .login so that whenever you launch the terminal, it will be set for you.
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


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


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.