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.
[xdmcp]
...
Enable=true
Is this to setup XVNC server or client?
ReplyDeletesorry for the stupid question above. Your solution was the easiest way I found, and I was able to set it up.
ReplyDeleteCould you please tell me how I can change the default resolution for the xvnc remote desktop?
For change the resolution of xvnc add -geometry 1280x1024 after -alwaysshared and before "
ReplyDelete