Centos6.5 install vncserver
Introduction
VNC (Virtual Network Computer) is short for Virtual Network Computer. VNC is an excellent remote control tool software.
Install the VNC service
First, confirm that the virtual machine has installed the desktop environment, such as gnome.
# vi /etc/inittab
Set the startup level to 5.
id:5:initdefault:
Install the VNC service
# yum install pixman pixman-devel libXfont -y# yum install tigervnc tigervnc-server -y
Configure VNC vi/etc/sysconfig/vncservers find VNCSERVERS and VNCSERVERARGS [2], open the comment and modify the code:
VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 800x600 -depth 32"
Firewall: vi/etc/sysconfig/iptables is added as follows:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5903 -j ACCEPT
Start vncserver and set a password for vncserver
# vncserver
Restart the vncserver service:
# vncserver -kill :2# vncserver :2
Use VNC windows Client
As follows:
Interface after successful connection: