Try to export variable on this way:
DISPLAY=localhost:11.0;export DISPLAY

<><><><><><><><><><><><><><><><><><><><><>
           Regards: Romeo Ninov
http://www.ninov.info
           Freedom, Sancho.....
<><><><><><><><><><><><><><><><><><><><><>

-----Original Message-----
From: solaris-users-boun...@filibeto.org 
[mailto:solaris-users-boun...@filibeto.org] On Behalf Of Chris Henderson
Sent: Tuesday, February 17, 2009 4:40 AM
To: solaris-users@filibeto.org
Subject: [Solaris-Users] [Solaris 10] smc GUI over ssh

I am trying to start the GUI /usr/sbin/smc over SSH. But I get error:
"It appears you are attempting to run the graphical Solaris Management
Console from a terminal which does
not have a suitable 'DISPLAY' environment. Please check your 'DISPLAY'
settings and that the user identity of this terminal has access to the
X server of this display."

I am doing ssh -X usern...@server and then "su" to become root and type: smc

On the server's sshd_config I have:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

On the client's sshd_config

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

As root, if I type: echo $DISPLAY I get blank. As normal user (the use
I ssh as), if I type echo $DISPLAY I also get blank.

The shell for both the normal user and root is /bin/sh

If I try to set display "export DISPLAY=localhost:11.0" or export
DISPLAY=localhost I get error: DISPLAY=localhost:11.0: is not an
identifier. Also tried "export DISPLAY=client's_ip_address:0" - get
the same error.

Before I ssh'd to the server I also tried typing xhost + (on the
client) with no luck.

sshd has been restarted on both the client and server.

Thanks for any help.
_______________________________________________
Solaris-Users mailing list
Solaris-Users@filibeto.org
http://www.filibeto.org/mailman/listinfo/solaris-users


_______________________________________________
Solaris-Users mailing list
Solaris-Users@filibeto.org
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to