This discussion is archived
9 Replies Latest reply: Apr 4, 2012 11:03 AM by Marty RSS

How to enable GUI in a non global zone in solaris11?

923734 Newbie
Currently Being Moderated
How to enable graphical logon in a non global zone in solaris11, so the zone can be login by Xmanager? Thanks!
  • 1. Re: How to enable GUI in a non global zone in solaris11?
    abrante Pro
    Currently Being Moderated
    Hmm, i guess you could do it by using Xvfb (virtual framebuffer) or possibly Xvnc ?

    Also you could have a look at NX Machine :-)

    .7/M.
  • 2. Re: How to enable GUI in a non global zone in solaris11?
    834232 Newbie
    Currently Being Moderated
    This guide will cover how to setup a basic VNC connection to a Solaris 11 machine. There is also an optional step to allow for persistent VNC connections.

    Step 1

    Configure GDM to include ‘[security] DisallowTCP=false’ and ‘[xdmcp] Enable=true’.
    $ sudo gedit /etc/gdm/custom.conf
    # GDM configuration storage
    [daemon]
    [security]
    DisallowTCP=false
    [xdmcp]
    Enable=true
    [greeter]
    [chooser]
    [debug]

    Step 2

    Configure X-Server to accept remote connections.
    # svccfg -s application/x11/x11-server
    svc:/application/x11/x11-server> setprop options/tcp_listen = boolean: true
    svc:/application/x11/x11-server> end

    Step 3

    Configure the VNC service (you could change the ‘-geometry 1280×720′ to whatever resolution you would like).
    # svccfg -s xvnc-inetd

    svc:/application/x11/xvnc-inetd> setprop inetd_start/exec = astring: "/usr/bin/Xvnc -desktop sol11:0 -geometry 1024x768 -inetd -query localhost -once securitytypes=none"

    svc:/application/x11/xvnc-inetd> setprop inetd/wait = boolean: true

    svc:/application/x11/xvnc-inetd> end

    ** The line highlighted red is optional – only do this if you want your VNC connection to persist (as well as any potential security issues)

    or

    # svccfg -s xvnc-inetd
    svc:/application/x11/xvnc-inetd> editprop
    search for # setprop inetd_start/exec = astring: "/usr/bin/Xvnc
    copy the line, uncomment the copy, makethe changes above, write the file out.
    svcadm refresh xvnc-inetd
    Step 4

    Disable and the re-enable the GDM and VNC-inetd services for the changes to take effect.
    $ su root
    Password:
    # svcadm disable gdm xvnc-inetd; svcadm enable gdm xvnc-inetd
    If still in maintenance, reboot (I had to, don't know why).

    Step 5

    Point your favourite VNC client at your Solaris server and test if it accepts your VNC connection – you should be presented with a Username/Password login screen.
    If you performed the optional step to make your connections persist – close your favourite VNC client and then reconnect – if you remained logged in you have a persistent connections.

    Greg on said:
    After a fresh text install of Solaris-11 (11/11) both xvnc-inetd and gdm are not present. After installing them (# pkg install xvnc-inetd gdm) I can’t get gdm to start:

    # svcadm enable gdm
    # svcs gdm
    offline 10:24:03 svc:/application/graphical-login/gdm:default
    Any thoughts?

    Ron on said:
    You are missing some X packages. Do the following:
    pkg install slim_install           # installs 400+ packages
    svcadm enable gdm && exit      # gdm now works
    pkg uninstall slim_install           # uninstalls the installer package only
  • 3. Re: How to enable GUI in a non global zone in solaris11?
    Marty Newbie
    Currently Being Moderated
    If only we could get Sun Ray Services software running in a zone...
  • 4. Re: How to enable GUI in a non global zone in solaris11?
    CyberNinja Newbie
    Currently Being Moderated
    I have the Sun Ray Server running on a spares root zones at work. Thought it a Solaris 10 TX server. It is really on the global zone but when you change the label (each zone is a different label) you are running programs and work from that zone. It is hard to explain.
  • 5. Re: How to enable GUI in a non global zone in solaris11?
    Marty Newbie
    Currently Being Moderated
    It is hard to explain.
    But you have me curious. If I understand you correctly, it was installed in the global zone and then something was done to migrate it to a non-global zone? Do tell.

    Thanks,
    Marty
  • 6. Re: How to enable GUI in a non global zone in solaris11?
    CyberNinja Newbie
    Currently Being Moderated
    Google solaris DTW
    The security labels are zones.
  • 7. Re: How to enable GUI in a non global zone in solaris11?
    Marty Newbie
    Currently Being Moderated
    Ah, Trusted Solaris.

    Does any of that translate to plain old Solaris 11?

    Thanks, Marty
  • 8. Re: How to enable GUI in a non global zone in solaris11?
    CyberNinja Newbie
    Currently Being Moderated
    I don't think so. You associate zones with labels and you get to a zone by changing your security label.
  • 9. Re: How to enable GUI in a non global zone in solaris11?
    Marty Newbie
    Currently Being Moderated
    Bummer. Thanks for the info.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points