-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Hi Saravanan
First, make sure your sshd daemon running in the CentOS zone is forwarding X connections. In /etc/ssh/sshd_config of CentOS you have to set the `X11Forwarding' option to `yes'. Second, make sure your ssh client in the global zone is `accepting' them. Put `ForwardX11 yes' either in your ~/.ssh/config or in /etc/ssh/ssh_config. See ssh_config(4) for the proper syntax. If you do as pointed out above, there is no need for using xhost. However, if you don't want to use ssh for X forwarding, you need to set the environment variable DISPLAY in CentOS to point to your global zone using the hostname of the global zone instead of localhost. Alternatively, check out http://www.opensolaris.org/jive/thread.jspa?messageID=66836𐔔 Best regards Rafael Saravanan S wrote: > Hi, > > I have installed a centos linux brand zone on my laptop running opensolaris > Solaris? Express. But when I try to run X applications like acroread from > the zone or through ssh using X11 forwarding I get the following error. > > -bash-2.05b$ acroread > > (acroread:6165): Gtk-WARNING **: cannot open display: > -bash-2.05b$ hostname > mylinuxzone > > I have xhost access control disabled on my global zone. The DISPLAY > variable > is set to the following by ssh on my linux zone. > > -bash-2.05b$ set|grep DISPLAY > DISPLAY=localhost:10.0 > > Following is the /etc/hosts on my global zone > > ::1 localhost > 127.0.0.1 localhost > 10.11.12.0 lnetwork > 10.11.12.1 lrouter > 10.11.12.2 lhost > 10.11.12.3 mylinuxzone > > > Can somebody please let me know why this error occurs and how to resolve > it? > Kindly bear with me if the question is trivial as I am new to zones,Branded > zones and connecting to remote X servers. > > Thanks > Saravanan S > > > ------------------------------------------------------------------------ > > _______________________________________________ > brandz-discuss mailing list > brandz-discuss at opensolaris.org > - -- /--------------------------------------------------------\ | Rafael Ostertag | | | Mellingerstrasse 99 | | | CH-5400 Baden | | | Switzerland | opensolaris: | | | | | Phone: +41 56 534 1649 | love at first boot | | Mobile: +41 79 257 0654 | | | ICQ# 225700135 | | | http://www.guengel.ch | | \--------------------------------------------------------/ Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGWVcFga1AD3hZfTERA2lRAJ9Gz8YAZOo/01P+Gm5ulMbIv+yMHwCfSxSj JZIObWYZPQGzir3vzTxhVnY= =8nDe -----END PGP SIGNATURE-----
