1. Introduction to VNC
VNC is short for a virtual network computer. It is a remote control tool that remotely connects to Linux and UNIX in windows. VNC is a free open-source software based on UNIX and Linux operating systems, with powerful remote control capabilities.
VNC consists of two parts: the client application (vncviewer) and the server application (vncserver ). The basic operating principle of VNC is similar to some remote control software in windows. VNC server applications are highly adaptable in UNIX and Linux, and the graphic user interface is very friendly. It looks similar to the software interface in windows. On any Linux platform computer that has installed the client application (vncviewer), it is very convenient to connect to the computer that has installed the server application (vncserver.
In addition, the server (vncserver) also has a built-in Java Web interface, so that the user's operations on other computers can be displayed through Netscape, this operation process and display method are more intuitive and convenient.
2. Install VNC
Before installation, check whether the disc is connected.
System Information:
[[email protected] ~]# uname -aLinux host17 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux[[email protected] ~]# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 6.4 (Santiago)
Rpm-Qa | grep VNC check whether VNC has been installed
Create a directory and attach a cd
[[email protected] ~]# rpm -qa |grep vnc[[email protected] ~]# mount /dev/cdrom /mnt/cdrommount: block device /dev/sr0 is write-protected, mounting read-only
Install the VNC package and the VNC-server package
[[email protected] ~]# yum -y install vncRunning Transaction Installing : tigervnc-1.1.0-5.el6.x86_64 1/1rhel-source/productid | 1.7 kB 00:00 ... Verifying : tigervnc-1.1.0-5.el6.x86_64 1/1Installed: tigervnc.x86_64 0:1.1.0-5.el6Complete!
[[email protected] ~]# yum -y install tigervnc-serverLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Repository rhel-source is listed more than once in the configurationSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package tigervnc-server.x86_64 0:1.1.0-5.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: tigervnc-server x86_64 1.1.0-5.el6 rhel-source 1.0 MTransaction Summary================================================================================Install 1 Package(s)Total download size: 1.0 MInstalled size: 2.6 MDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : tigervnc-server-1.1.0-5.el6.x86_64 1/1 Verifying : tigervnc-server-1.1.0-5.el6.x86_64 1/1Installed: tigervnc-server.x86_64 0:1.1.0-5.el6Complete!
View installed VNC packages
[[email protected] ~]# rpm -qa|grep vnctigervnc-1.1.0-5.el6.x86_64tigervnc-server-1.1.0-5.el6.x86_64
Service iptables stop disable Firewall
[[email protected] ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Unloading modules: [ OK ]
Run vncserver
[[email protected] ~]# vncserverYou will require a password to access your desktops.Password:Verify:xauth: creating new authority file /root/.Xauthorityxauth: (stdin):1: bad display name "host17:1" in "add" commandNew ‘host17:1 (root)‘ desktop is host17:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/host17:1.log
3. log on to the client for verification
(VNC Viewer must be installed on the client to connect)
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/49/DA/wKiom1QcMNfyd13WAACJieM9dY4092.jpg "Title =" 1.jpg" alt = "wkiom1qcmnfyd13waacjiem9dy4092.jpg"/>
Enter the password of the Linux system to be connected:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/49/DC/wKioL1QcMP-jONbuAAB3PvoxpCs918.jpg "Title =" 2.jpg" alt = "wKioL1QcMP-jONbuAAB3PvoxpCs918.jpg"/>
Connection successful:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/49/DA/wKiom1QcMO3x9SB_AAIay4oY8I0070.jpg "Title =" 3.jpg" alt = "wkiom1qcmo3x9sb_aaiay4oy8i0070.jpg"/>
Installation and Use of VNC