Notes on OpenSolaris: VNC config

Although most of my boxes are hooked in to a KVM I like to be able to access their desktops via VNC and XDMCP. Here are the steps to enable VNC on port 5910 and XDMCP on OpenSolaris 200805.

Step 1: Enable XDMCP using gdmsetup.

Step 2: Fix up the config for xvnc-inetd (if necessary

maurice@ra:~# svccfg -s xvnc-inetd
svc:/application/x11/xvnc-inetd> setprop inetd_start/exec = astring: "/usr/X11/bin/Xvnc -inetd -query localhost -once securitytypes=none"
svc:/application/x11/xvnc-inetd> quit
You can limit the number of console logins to one by tying the server to a single display
maurice@ra:~# svccfg -s xvnc-inetd
svc:/application/x11/xvnc-inetd> setprop inetd_start/exec = astring: "/usr/X11/bin/Xvnc :1 -inetd -query localhost -once securitytypes=none"
svc:/application/x11/xvnc-inetd> quit

Step 3: Add the service to /etc/services.

maurice@ra:~# echo "vnc-server      5910/tcp" >> /etc/services

Step 4: Activate the service

Step 5: Restart gdm: Warning this will close all graphical consoles

maurice@ra:~# gdm-restart


Back to Notes on OpenSolaris or Maurice Castro's Home Page