Easy Setup: Xvnc on Solaris 10 10/08

I found that setting up Xvnc on Solaris 10 10/08 is very easy. This page is a good help although which is written for Solaris Express. 

1. Remove "-udpport 0" from the  dtlogin arguments if you disabled "network services".

 svccfg -s cde-login setprop 'dtlogin/args=""'
 svcadm restart cde-login

2. Append the following line to /etc/inet/services file.

 vnc-server 5900/tcp

3. Start Xvnc.

 svcadm enable xvnc-inetd

4. Now you can connect to the server.

 vncviewer server-name

A. If you want to share the screen, execute these lines.

 inetadm -m xvnc-inetd wait=TRUE exec="/usr/X11/bin/Xvnc -inetd -query localhost -once passwordFile=/var/vnc/.vnc/passwd -alwaysshared"
 mkdir /var/vnc
 HOME=/var/vnc vncpasswd

B. And if you use gdm2-login rather than cde-login, edit /etc/X11/gdm/gdm.conf. This version of Xvnc doesn't consult custom.conf file.



  1. Is this to setup XVNC server or client?

  2. sorry for the stupid question above. Your solution was the easiest way I found, and I was able to set it up.

    Could you please tell me how I can change the default resolution for the xvnc remote desktop?

  3. For change the resolution of xvnc add -geometry 1280x1024 after -alwaysshared and before "