Windwos7 vnc connection centos6.6, windwos7centos6.6
1. First configure centos6.6 vnc (desktop installed)
# Yum install fontforge-y prevent font garbled characters
# Yum tigervnc-server-y install the vnc package
# Chkconfig vncserver on
# Vncpasswd set the vnc logon Password
# Rpm-qc tigervnc-server View the location of the vnc configuration file
# Vim/etc/sysconfig/vncservers modify the configuration file
Add the following statement to the last line (two desktops are added here)
Start desktop 1 and desktop 2 as the root user and set the resolution.
# Vncserver: 1. Start the desktop. 2. The desktop is the same as 1.
# Vim ~ /. Vnc/xstartup modify the following line. If GNAME is used for the graphic desktop environment, this file will be generated only after the vnc service is started.
# Vncserver-kill: 1 disable 1 desktop service
# Vncserver: 1. It will be OK when the vnc log file is started again.
The most direct method for setting the last firewall is to disable the firewall and set it to not restart after it is started.
Or add the vnc port to the firewall policy as follows:
#iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
#
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT
#service iptables save
2. Download vnc viewer from windwos7 (or other vnc tools)
When using vnc viewer to connect, do not forget to add a desktop number after the ip address, for example, connect to desktop 1: