星期三, 3月 27, 2013

Solaris 10 enable vnc

Ref: http://netmgt.blogspot.tw/2009/12/enabling-vnc-under-solaris-10.html
  • Find VNC service
Cainan/root# svcs -a | grep -i vnc
disabled 13:47:12 svc:/application/x11/xvnc-inetd:default
  • Enable vnc service
Cainan/root# svcadm enable svc:/application/x11/xvnc-inetd:default
  • Note that VNC is broken by default, some changes will be required.
Cainan/root# svcs svc:/application/x11/xvnc-inetd:default
STATE STIME FMRI
maintenance 14:22:41 svc:/application/x11/xvnc-inetd:default
  • Append vnc to the /etc/services
Cainan/root# echo "vnc-server\t5900/tcp\t\t\t# Xvnc" >>/etc/services
  • Check /etc/services
Cainan/root# tail /etc/services
...
snmpd 161/udp snmp # SMA snmp daemon
vnc-server 5900/tcp # Xvnc
  • Note, the gnu display manager is not customized yet, and needs correction
Cainan/root# ls -al /etc/X11/gdm/custom.conf
/etc/X11/gdm/custom.conf: No such file or directory
  • Enable and configure gnu display manager for vnc
Cainan/root# cat >/etc/X11/gdm/custom.conf <<!
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true
!
  • Check the customization configuration file
Cainan/root# ls -al /etc/X11/gdm/custom.conf
-rw-r--r-- 1 root root 85 Dec 19 14:43 /etc/X11/gdm/custom.conf
  • Re-enable and validate the vnc service
Cainan/root# svcadm disable svc:/application/x11/xvnc-inetd:default
STATE STIME FMRI
disabled 14:46:29 svc:/application/x11/xvnc-inetd:default
Cainan/root# svcadm enable svc:/application/x11/xvnc-inetd:default
Cainan/root# svcs svc:/application/x11/xvnc-inetd:default
STATE STIME FMRI
online 14:46:43 svc:/application/x11/xvnc-inetd:default


沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...