Skip to main content

Enabling VNC Server on Solaris 10

By default, In Solaris 10, VNC service is almost configured. Below is the process to enable it.
  • Check VNC service
root# svcs -a | grep -i vnc
disabled 13:47:12 svc:/application/x11/xvnc-inetd:default
  • We need to enable the VNC service
root# svcadm enable svc:/application/x11/xvnc-inetd:default
  • By default, it broken we need to      so some changes.
root# svcs svc:/application/x11/xvnc-inetd:default
STATE STIME FMRI
maintenance 14:22:41 svc:/application/x11/xvnc-inetd:default
  • Need to append vnc to the      /etc/services
root# echo “vnc-server\t5900/tcp\t\t\t# Xvnc” >>/etc/services
  • Cross verify /etc/services
root# tail /etc/services
snmpd 161/udp snmp # SMA snmp daemon
vnc-server 5900/tcp # Xvnc
  • Need to customizethe gnu display      manager
root# ls -al /etc/X11/gdm/custom.conf
/etc/X11/gdm/custom.conf: No such file or directory
  • configure and enable gnu display      manager for vnc
root# cat >/etc/X11/gdm/custom.conf <<!
   [xdmcp]
   Enable=true
   [security]
   DisallowTCP=false
   AllowRoot=true
   AllowRemoteRoot=true
   !
  • Cross verify the customized      configuration file
    root# ls -al /etc/X11/gdm/custom.conf 
  -rw-r–r– 1 root root 85 Dec 19 14:43 /etc/X11/gdm/custom.conf
  • Disable and enable and validate      the vnc service
   root# svcadm disable svc:/application/x11/xvnc-inetd:default 
  
   root# svcadm enable svc:/application/x11/xvnc-inetd:default
   root# svcs svc:/application/x11/xvnc-inetd:default 
  
   STATE STIME FMRI
online 14:46:43 svc:/application/x11/xvnc-inetd:default
  • Now use VMC client on the network to  check the VNC server


Comments