First download the Linux version of the VNC file.
: http://www.realvnc.com/download/vnc/
such as: vnc-5.0.2-linux-x86-rpm.tar.gz (in fact, after extracting, there will be the server and the View RPM installation package)
#tar-ZXVF vnc-5.0.2-linux-x86-rpm.tar.gz
#rpm-IVH vnc-server-5.0.2-linux-x86-rpm vnc-view-5.0.2-linux-x86-rpm
Generally use the dependency package: xterm
Note: If you are prompted to install any dependent packages during installation, use #yum install-y * * * * * * (package name).
If Yum does not, go directly to Baidu, don't waste time.
After the installation is complete!
1.1COMMAMD:
#vnclicense-add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
#vnclicense: 2
1.2, Xwindows:
Register: Application->internet->enter VNC Server License Key (select the middle one, enter the registration code.) )
Some registration codes (the first one tried, can be used):
Whjrk-uxy7v-q34m9-czu8l-8kgfa
S4j7a-xwxy5-kxajw-54kra-tp3qa
48r4p-nfz46-nbcwy-q2zjt-3h9ra
Ngnw9-7q8bk-uqgy7-j3kaa-6g39
Z456c-lmktc-nlgwq-h5cur-zvwea
A5hdp-lxkyn-uk4w6-xaczj-enwla
Nrdx9-zf9c5-jlgy7-cuc5j-77j2a
579r9-9b92w-4qhm9-6tk6d-h6f9a
Vetpd-hhc3s-63ah9-yaa26-8wvda
Ssewk-hbdm6-yycwc-m3bqv-9xmda
Lfkru-dctwh-6gjh2-7swyr-d4cpa
Cquts-s5rdr-vt2wj-9b6tu-dlhpa
Rr36v-7v29a-evgja-aynec-3dzya
Unlz3-ehbvr-vaclk-s8qdh-jzmha
Tpsng-yeugx-j4hzx-dpysy-hzkxa
Ucuxy-tafln-yfbvv-d7vze-9shja
Ann2u-fm59s-dagv4-4tk96-bdtka
F4x7h-cylev-xz4zw-usq7d-khmga
63p3s-tgu8r-3c4ze-wckf4-s2w3a
Q35yw-zvh7l-z94j4-9ujp9-77vfa
3th6p-dv5ae-blhy6-pnens-b3aqa
2. Add ACLs to the firewall:
#vim/etc/sysconfig/iptables
Add to the inside:
-A input-m state--state new-m-tcp-p TCP--dport 590* (this is the port number you want to open)-j ACCEPT
After saving exits, restart the firewall to take effect.
# Service Iptables restart (to root permissions, otherwise you can try #/sbin/service iptables restart)
3. Running the VNC server
Run: Application->internet->vnc-server (user mode)
Open option->
Where: "Show Accept/reject promt" for each time from the client connection to the server side, the server
Click Agree, we generally choose the second, as long as we pass the password authentication.
The middle "Configure" is the password to set the login VNC server.
Click "Advanced" This is the total settings, such as the connection port, control permissions, etc.,
This allows the configuration to be completed (all logins are anonymous users).
Problem:
The following prompt appears on the client
No Matching Security types!
WORKAROUND: Because it is the client and the server side of the difference caused by the update client can be.
The last hint: Linux clients can be opened directly to use.
About the command:
#vncserver: 1 (Open VNC server, 1 means 5901 this port, others can also use as 2 3)
#vncserver-kill:1 (Close window 1)
Advanced Applications:
1. Set the Vncserver startup script (/etc/init.d/vncserver) to enable the system to start Vncserver from startup.
# Add the following line to the/etc/rc.d/rc.local file
/etc/init.d/vncserver start
#也可以用chkconfig命令实现系统自启动时启动vncserver
[Email protected] ~]# chkconfig--level 2345 vncserver on
2. View the VNC server startup situation
[Email protected] ~]# NETSTAT-TULNP
Active Internet connections (only servers)
Proto recv-q send-q Local address Foreign address State Pid/program Name
TCP 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 5248/xvnc
TCP 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 5248/xvnc
TCP 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 5248/xvnc
TCP 0 0::: 6001:::* LISTEN 5248/xvnc
RedHat Simple configuration vnc Server with VNC View detailed description