I've pushed & tagged to the fox-gate mercurial repository the sources
used to build the Solaris X consolidation for Nevada build 76.   (At
least this is what's sent to QA for pre-integration testing, pending
any major bugs that they find that would cause a respin.)

These sources include the integration of the Xvnc server to provide
a VNC server that acts as a standalone X server running its own
session available only via VNC not local display hardware.   (To make
an desktop session available via both local display & VNC see the vino
software in JDS.)

If you find any bugs in this software please mail xwin-discuss or file a
bug on bugs.opensolaris.org under solaris/xserver/vnc.   (After today, I am
out of the office until Thursday, October 25, so if you mail me directly,
don't expect an answer until the end of the month.)

There are many ways to run Xvnc - here's the three I think will be most
common (I assume dtlogin in these - converting to gdm should be simple,
but is left as an exercise for someone else to document):

1) Starting on demand from inetd, displaying dtlogin login screen:

    # Enable XDMCP connections on dtlogin by removing "-udpport 0" from args
    # Warning: restart will kill all current dtlogin sessions!
        svccfg -s cde-login setprop 'dtlogin/args=""'
        svcadm restart cde-login
    # Add xvnc service to /etc/services if it isn't already (CR 6614889)
        printf "vnc-server\t5900/tcp\t\t\t# VNC Server\n" >> /etc/services
    # Enable Xvnc inetd service:
        inetadm -e xvnc-inetd

    Connect from another machine with:
        vncviewer hostname:0

2) Starting at system boot from dtlogin, displaying dtlogin login screen:

    # Add a display1 instance of x11-server service for configuration
    # and configure it to run Xvnc
        svccfg -s application/x11/x11-server add display1
        svccfg -s application/x11/x11-server:display1 addpg options application
        svccfg -s application/x11/x11-server:display1 addpropvalue 
options/server
astring: "/usr/X11/bin/Xvnc"
        svccfg -s application/x11/x11-server:display1 addpropvalue 
options/server_args
astring: '"SecurityTypes=None"'

    # Configure dtlogin to start it
        mkdir -p /etc/dt/config
        cp /usr/dt/config/Xservers /etc/dt/config/Xservers
        echo "   :1   Local local_uid at none root /usr/X11/bin/Xserver :1" >>
/etc/dt/config/Xservers
        pkill -HUP dtlogin

    Connect from another machine with:
        vncviewer hostname:1

3) Starting manually, displaying session of user who started it, requiring
VNC password (separate from Unix login password, not securely encoded on
disk or across the network, so don't use a valuable password):

        /usr/bin/vncserver
        
    Add -httpd to open a http server for downloading the VNC java applet to
    connect from clients without a vncviewer already installed.  (http server
    will run on port 5800 + the desktop id reported by the vncserver script.)

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


-------------- next part --------------
An embedded message was scrubbed...
From: kctran <[email protected]>
Subject: [Fwd: Re: X S11/NV intel & sparc build 76 are available for testing]
Date: Thu, 11 Oct 2007 23:09:17 -0700
Size: 10567
URL: 
<http://mail.opensolaris.org/pipermail/xwin-discuss/attachments/20071012/b52125cb/attachment.nws>

Reply via email to