Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setenv ?



On 11/1/06, Brad Cavanagh <email@hidden> wrote:
On 11/1/06, Dee Ayy <email@hidden> wrote:
> How do I set environment variables?

If you're using the bash shell, you need to use export:

export DISPLAY=localhost:0.0

Correct, but DISPLAY is not something you should normally have to set yourself.

If you're ssh'ing to a remote host and trying to display X
applications back, you need to use "ssh -X" or "ssh -Y"' (the latter
is required if you're connecting to a Mac running 10.4) in the first
place.  That should set DISPLAY for you on the remote end
automatically.  And the correct value won't be "localhost:0", but
"localhost:10" or whatever the next display number sshd gets happens
to be.

--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >setenv ? (From: "Dee Ayy" <email@hidden>)
 >Re: setenv ? (From: "Brad Cavanagh" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.