[OpenIndiana-discuss] Forgot Zone Root Password, Redirect X inside Zone, Reinstall Zone

Jim Klimov jimklimov at cos.ru
Fri Jan 17 12:05:31 UTC 2014


On 2014-01-14 17:37, Handojo wrote:
> Thanks Pal, you rocks !

You are welcome :)

> Now only left with having X forwarded to another host, or to global zone.

Basically, you need to ensure that the DISPLAY environment variable
points somewhere that leads to an X11 server, and that this server
allows client connections from the path leading from your local zone,
and that the zone's operating environment contains an X11 client (the
libraries, usually).
As for the envvar - these lines might suffice instead of "ssh -X":
[lz]$ export DISPLAY=gz:0

[gz]$ xhost + lz

Passing X through ssh is preferable due to ease of automation
(i.e. if you have many X-server sessions with dynamic numbering),
but static ways may also be useful (some of our setups run an
OpenOffice as a filter for webapps to do document conversions,
and it is "rendered" onto a local VNC server with a static display
number - even headless, OoO requires an X11 connection).

As for the X11 client side, you might need to experiment with
whatever set of packages would suffice to run your application.
These would probably include X libraries and fonts, more or less.
If you do pick the minimal required-and-sufficient set, please
make a note of it somewhere on the OI Wiki ;)

For starters, here is a set that allowed me to run VirtualBox GUI
in a local zone (rendering onto a VNC server in the GZ). It is quite
likely that some of the packages below may have been needlessly
installed and may be skipped, but at least this is a set which works.
This is a listing in comparison with our default zone install.

desktop/window-manager/twm   1.0.4-0.151.1.8   i--
image/imagemagick            6.3.4.2-0.151.1.8 i--
image/library/libjpeg        0.5.11-0.151.1.8  i--
image/library/librsvg        0.5.11-0.151.1.8  i--
image/library/libtiff        0.5.11-0.151.1.8  i--
library/desktop/atk          0.5.11-0.151.1.8  i--
library/desktop/cairo        0.5.11-0.151.1.8  i--
library/desktop/gtk2         0.5.11-0.151.1.8  i--
library/desktop/pango        0.5.11-0.151.1.8  i--
library/expat                2.1.0-0.151.1.8   i--
library/graphics/pixman      0.18.4-0.151.1.8  i--
library/lcms                 1.19-0.151.1.8    i--
library/libcroco             0.5.11-0.151.1.8  i--
library/print/cups-libs      1.4.2-0.151.1.8   i--
print/filter/ghostscript     8.64-0.151.1.8    i--
runtime/python-24            2.4.6-0.151.1.8   i--
system/font/truetype/dejavu  2.33-0.151.1.8    i--
system/font/xorg/iso8859-1   7.5-0.151.1.8     i--
system/font/xorg/xorg-core   7.5-0.151.1.8     i--
system/library/fontconfig    2.8.0-0.151.1.8   i--
system/library/freetype-2    2.4.11-0.151.1.8  i--
terminal/luit                1.0.5-0.151.1.8   i--
terminal/xterm               261-0.151.1.8     i--
x11/compatibility/links-svid 0.5.11-0.151.1.8  i--
x11/compatibility/links-xorg 0.5.11-0.151.1.8  i--
x11/data/xbitmaps            1.1.0-0.151.1.8   i--
x11/font-utilities           7.5-0.151.1.8     i--
x11/library/libfontenc       1.0.5-0.151.1.8   i--
x11/library/libxcomposite    0.4.2-0.151.1.8   i--
x11/library/libxcursor       1.1.10-0.151.1.8  i--
x11/library/libxdamage       1.1.3-0.151.1.8   i--
x11/library/libxfixes        4.0.5-0.151.1.8   i--
x11/library/libxfont         1.4.4-0.151.1.8   i--
x11/library/libxft           2.1.14-0.151.1.8  i--
x11/library/libxi            1.3.2-0.151.1.8   i--
x11/library/libxinerama      1.1-0.151.1.8     i--
x11/library/libxrandr        1.3.0-0.151.1.8   i--
x11/library/libxrender       0.9.6-0.151.1.8   i--
x11/session/xauth            1.0.4-0.151.1.8   i--
x11/xfontsel                 1.0.2-0.151.1.8   i--

Note that python-24 is here for virtualbox, and may be not needed
for generic X11.

Another zone, which runs alfresco and a VNC server (not in OI's
packaging, but rather our own old SVR4 build) with the OOO filter,
as described above, is nearly identical. Its packages also include
these two, but I don't remember why they were needed exactly ;)

developer/macro/cpp          0.5.11-0.151.1.8  i--
developer/object-file        0.5.11-0.151.1.8  i--

Hope this helps,
//Jim Klimov




More information about the OpenIndiana-discuss mailing list