Configure VNC, provided Linux has a graphical interface installed.
1. Whether Vncserver service is installed on CentOS
Rpm-qa | grep Tigervnc
Self-installing
Yum Install Tigervnc tigervnc-server-y
2, modify the Vncserver configuration file (here to pay special attention)
VI etc/sysconfig/vncservers
Configuration file modification is not possible this error may occur
This is caused by not listening on the local TCP port, so you need to delete-nolisten tcp-localhost in the configuration file, and then save exit after the modification.
3. Restart the Vncserver service to make the configuration effective.
Services Vncserver Resstart
4, see Vncserver Start port number (configuration file Delete-nolisten Tcp-localhost, will not see 6001 port, you can try OH)
[Email protected] ~]# NETSTAT-NUTLP | grep ' Xvnc '
TCP 0 0 0.0.0.0:5901 0.0.0.0:
LISTEN 3171/xvnc
TCP 0 0 0.0.0.0:6001 0.0.0.0: LISTEN 3171/xvnc
TCP 0 0::: 6001:::* LISTEN 3171/xvnc
5, set Vncserver boot
Chkconfig--level 2345 Vncserver on
6, Firewall release port number
Vi/etc/sysconfig/iptables
-A input-p tcp-m tcp--dport 5901-j ACCEPT
-A input-p tcp-m tcp--dport 6001-j ACCEPT
7, test VNC link, obl, eat chicken tonight.
Win7 VNC CentOS