Well since you are logging in as an ssh there is nothing that tells the host that it is an X session so the DISPLAY variable is not set. Since SSH is a pure text kind of connection then you need to manually set the DISPLAY variable.
Also,
If you notice in your sshd_config file there is a line
X11DisplayOffset 10
so that all forwarded displays are offset by 10. Therefore I think you want DISPLAY to be :0.10
-Scott
At 20:45 +0400 9/29/04, Andrei Sobolevskii wrote:
>Dear All,
>
>I am sorry for this off-topic question, but I spend half a day trying to find an answer myself before writing to the list, and the question is for Unix people anyway.
>
>I am trying to run X Window apps on my PowerBook (OS X 10.2.8) remotely via SSH, but the display won't be exported. In a simple test, I get the following (in an xterm window):
>
>[khayyam~: ] ansobol% echo $DISPLAY
>:0.0
>[khayyam~: ] ansobol% ssh -X localhost
>ansobol@localhost's password:
>Last login: Wed Sep 29 19:48:26 2004 from localhost
>Welcome to Darwin!
>[khayyam:~] echo $DISPLAY
>DISPLAY: Undefined variable.
>[khayyam:~] ansobol%
>
>Of course running any X app in this "remote" session results in the "Unable to open the display" error. How does one fix this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Scitech mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/scitech/email@hidden
This email sent to email@hidden