CentOS 6.3安装 VNC server 1
[root@localhost vnc]# cp /mnt/hgfs/Exchange\ Data/VNC-5.0.1-Linux-x86-ANY.tar.gz ./vnc/
[root@localhost vnc]# tar -xvf VNC-5.0.5-Linux-x86-ANY.tar.gz
[root@localhost vnc]# lltotal 8592drwxrwxr-x 5 cici cici 4096 Jun 29 2012 VNC-5.0.1-Linux-x86-rwxr-xr-x 1 root root 8791605 Sep 14 20:52 VNC-5.0.1-Linux-x86-ANY.tar.gz
?
?
[root@localhost VNC-5.0.1-Linux-x86]# cd VNC-5.0.1-Linux-x86[root@localhost VNC-5.0.1-Linux-x86]# vi README
[root@localhost VNC-5.0.5-Linux-x86]# sudo?./vncinstall??Copying vncviewer to /usr/binCopying vncviewer.man to /usr/share/man/man1/vncviewer.1Copying vncaddrbook to /usr/binCopying vncaddrbook.man to /usr/share/man/man1/vncaddrbook.1Copying vncserver-x11 to /usr/binCopying vncserver-x11.man to /usr/share/man/man1/vncserver-x11.1Copying vncserver-x11-core to /usr/binCopying Xvnc to /usr/binCopying Xvnc.man to /usr/share/man/man1/Xvnc.1Copying Xvnc-core to /usr/binCopying vncserverui to /usr/binCopying vncserver-virtual to /usr/binCopying vncserver-virtual.man to /usr/share/man/man1/vncserver-virtual.1Copying vncserver-virtuald to /usr/binCopying vncserver-virtuald.man to /usr/share/man/man1/vncserver-virtuald.1Copying vncserver-x11-serviced to /usr/binCopying vncserver-x11-serviced.man to /usr/share/man/man1/vncserver-x11-serviced.1Copying vncpasswd to /usr/binCopying vncpasswd.man to /usr/share/man/man1/vncpasswd.1Copying vnclicense to /usr/binCopying vnclicense.man to /usr/share/man/man1/vnclicense.1Copying vnclicensewiz to /usr/binCopying vncpipehelper to /usr/binCopying vncchat to /usr/binCopying vncinitconfig to /usr/binCopying vncinitconfig.man to /usr/share/man/man1/vncinitconfig.1get_primary_ip4 hasn't changedvncelevate hasn't changedUpdating /etc/pam.d/vncserverLooking for font path... catalogue:/etc/X11/fontpath.d,built-ins (from xset).Installed init script for VNC X11 Service-mode daemonStart and stop the service with: /etc/init.d/vncserver-x11-serviced (start|stop)Installed init script for VNC Virtual-mode daemonStart and stop the service with: /etc/init.d/vncserver-virtuald (start|stop)
? 测试vnc服务安装情况
[root@localhost VNC-5.0.5-Linux-x86]# vncserverVNC(R) Server 5.0.5 (r106461) Built on Mar 4 2013 13:46:20Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txtGenerating private key...doneError: No license keys installed.Run vnclicense to install a license key.
?VNC服务开启
[root@localhost VNC-5.0.5-Linux-x86]# rpm -q vnc-serverpackage vnc-server is not installed[root@localhost VNC-5.0.5-Linux-x86]# vncserver :lVNC(R) Server 5.0.5 (r106461) Built on Mar 4 2013 13:46:20Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txtWarning: 0 is taken because of /tmp/.X0-lockRemove this file if there is no X Server running as :0Error: a VNC or X Server is already running as :0
?注册license
[root@localhost VNC-5.0.5-Linux-x86]# sudo ./vnclicense VNC(R) Licensing Utility 5.0.5 (r106461) Built on Mar 4 2013 13:50:05Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txtUsage: vnclicense COMMANDCommands: -add KEY Add KEY -remove Remove the key if there is only one installed -remove N Remove Nth key shown by "-list" -remove KEY Remove KEY if it is installed -list List installed keys -check Print the number of desktops. Returns 0 if license installed is valid
?添加license key
[root@localhost VNC-5.0.5-Linux-x86]# vnclicense -checkNo licenses installed.
?
[root@localhost VNC-5.0.5-Linux-x86]# sudo ./vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFAEnterprise license key has been successfully applied.
?
[root@localhost VNC-5.0.5-Linux-x86]# vncserver-virtualVNC(R) Server 5.0.5 (r106461) Built on Mar 4 2013 13:46:20Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txtRunning applications in /etc/vnc/xstartupVNC(R) Server 5.0.5 (r106461) Built on Mar 4 2013 13:46:20Copyright (C) 2002-2013 RealVNC Ltd.VNC is a registered trademark of RealVNC Ltd. in the U.S. and in othercountries.Protected by UK patent 2481870.See http://www.realvnc.com for information on VNC.For third party acknowledgements see:http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt<11> 2013-09-15T12:59:44.600Z localhost vncserver-virtual[15789]: getPrimaryAddress: Could not close file: /etc/vnc/get_primary_ip4: No default network interface<11> 2013-09-15T12:59:44.600Z localhost vncserver-virtual[15789]: getPrimaryAddress: get_primary_ip4 does not exist or is not executableCould not determine your computer's IP address. The error message was"get_primary_ip4 does not exist or is not executable"If you encounter problems connecting to VNC Server, please includethis information when contacting Technical Support.VNC Server signature: 0b-cb-12-19-31-49-b6-a8Log file is /root/.vnc/localhost:6.logNew desktop is localhost:6
?查看日志
[root@localhost .vnc]# pwd/root/.vnc[root@localhost .vnc]# vi /root/.vnc/localhost:6.log
?
Cannot register authentication agent: Remote Exception invoking org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on /org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for session** Message: adding killswitch idx 0 state KILLSWITCH_STATE_UNBLOCKED** Message: killswitch 0 is KILLSWITCH_STATE_UNBLOCKED** Message: killswitches state KILLSWITCH_STATE_UNBLOCKED(bluetooth-applet:15906): GLib-GObject-WARNING **: invalid cast from `GtkAction' to `GtkActionGroup'** Message: killswitch 0 is KILLSWITCH_STATE_UNBLOCKED** Message: killswitches state KILLSWITCH_STATE_UNBLOCKEDFailure: Module initalization failed** (gnome-power-manager:15917): WARNING **: No idle counter.Agent registration failed: Agent already existsAn instance of nm-applet is already running.Initializing nautilus-gdu extensionInitializing nautilus-open-terminal extensionXlib: extension "VMWARE_CTRL" missing on display ":6.0".
?