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

2014-01-17 Thread Jim Klimov

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/imagemagick6.3.4.2-0.151.1.8 i--
image/library/libjpeg0.5.11-0.151.1.8  i--
image/library/librsvg0.5.11-0.151.1.8  i--
image/library/libtiff0.5.11-0.151.1.8  i--
library/desktop/atk  0.5.11-0.151.1.8  i--
library/desktop/cairo0.5.11-0.151.1.8  i--
library/desktop/gtk2 0.5.11-0.151.1.8  i--
library/desktop/pango0.5.11-0.151.1.8  i--
library/expat2.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.8i--
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.8i--
runtime/python-242.4.6-0.151.1.8   i--
system/font/truetype/dejavu  2.33-0.151.1.8i--
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/fontconfig2.8.0-0.151.1.8   i--
system/library/freetype-22.4.11-0.151.1.8  i--
terminal/luit1.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/xbitmaps1.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/libxcomposite0.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/libxfixes4.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/libxi1.3.2-0.151.1.8   i--
x11/library/libxinerama  1.1-0.151.1.8 i--
x11/library/libxrandr1.3.0-0.151.1.8   i--
x11/library/libxrender   0.9.6-0.151.1.8   i--
x11/session/xauth1.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-file0.5.11-0.151.1.8  i--

Hope this helps,
//Jim Klimov


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


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

2014-01-14 Thread Jonathan Adams
On 14 January 2014 16:37, Handojo hando...@yahoo.com wrote:


 Thanks Pal, you rocks !

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


have you tried ssh -X zone ip/name from the host you want the X display
forwarded to?
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


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

2014-01-12 Thread Saso Kiselkov
On 1/12/14, 5:54 PM, Handojo wrote:
 Hello,
 
 I've got 3 questions :
 
 1. Forgotten Zone Root Password
 
 I've just installed a zone inside OI151a8 3 months ago, and right now I 
 forgot the root password inside the zone.
 So, I follow the instruction here : 
 
 http://sysadmin-tips-and-tricks.blogspot.com/2013/01/solaris-recover-root-password-in-local.html
 
 But when I login to the zone, it says : pam_authtok_get: login: empty 
 password not allowed for root from localhost
 
 Logging to the zone as another user, and then issue : su
 Yields the same result, and same error message.

Can't you just zlogin as root from the global zone? Then you can run
passwd and set up a new root password.

 2. Sometime ago before the Root Password error, I tried to redirect Zone such 
 that its graphics output is redirected to another OI machine ( using default 
 GNome Vino ). But It never work. Anybody can give clue ?

The default zone install is pretty light and probably lacks X11
libraries if you're trying to run things like xterm. Make sure these are
installed and that the zone has xhost and similar tools installed.
Lastly, make sure X11Forwarding is yes in /etc/ssh/sshd_config and
that your client is requesting forwarding (you can force this by logging
in via by passing -X to your ssh login command). If all worked, you
should see a DISPLAY variable set in your environment once you log in:

$ echo $DISPLAY
localhost:10.0

 3. If #1 and #2 Fails, how do I reinstall zone ?

You shouldn't have to. Let's resolve #1 and #2 first.

-- 
Saso


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss