Benjamin J Stassart wrote:
> 
> > Date: Fri, 02 Jul 1999 08:34:28 +0800
> > From: Clare Teoh <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Can't open display on /dev/pts/0
> 
> > SSH login ok, but attempt to run application shows error "Can't open
> > display on /dev/pts/0".
> 
> Let's try the simple stuff first:
> 
> After getting this error.
> 
> % echo $DISPLAY

DISPLAY is not set.

> 
> If it says /dev/pts/0 or something like that, there is your problem.
> DISPLAY should be set to sshremotehost:Number.0.
> 
> If you are connecting from foo.com to foo.net, on foo.net the DISPLAY
> after logging in should be set to something like "foo.net:10.0".  The
> number 10 in this case should be a number chosen by SSH.

How do I know what's the no. chosen by SSH and how do I set this in my
DISPLAY env variable if this no. is always changing with each ssh logon?

  My guess is that
> you are running something in your login scripts that is changing the
> DISPLAY to something stupid.

Further test have shown that I am able to run the application fine if I
am logon as root.

I also checked if the DISPLAY was set correctly in root, but found that
it is also not set.

Anything else I should be checking?

TIA,
Clare


> 
> Benjamin J. Stassart
> ------------------------------------------------+
>  A great many people think they are thinking    |
>  when they are merely rearranging their         |
>  prejudices                                     |

Reply via email to