RedHat configuration VNC Server and VNC View

Source: Internet
Author: User
Tags windows remote desktop

First, download the VNC file of Linux.

: Http://www.realvnc.com/download/vnc/

VNC installation Configuration

Install and configure VNC in CentOS 6.3

In Linux, the dependency installation VNC is not detected.

CentOS6 VNC service installation and configuration

VNC remote control installation and Setup

Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop

For example: VNC-5.0.2-Linux-x86-RPM.tar.gz (in fact, extract out, there will be Server and 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, the dependency package: xterm is used.

NOTE: If any dependency package is prompted during installation, use # yum install-y *** (package name) directly ),

If yum doesn't exist, go to Baidu. Don't waste time.


After installation is complete!

1.1 Commamd:

# Vnclicense-add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA

# Vnclicense: 2

1.2. Xwindows:

Register: Application-> Internet-> Enter VNC Server License Key (select the one in the middle and Enter the registration code .)

Some registration codes (the first one has been tried and 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 an ACL to the firewall:

# Vim/etc/sysconfig/iptables

Add:

-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 and exiting, restart the firewall to take effect.

# Service iptables restart (root permission is required; otherwise, try #/sbin/service iptables restart)

 

3. Run the VNC Server

Run: Application-> Internet-> VNC-Server (user mode)

Open Option->

"Show accept/reject promt" indicates that each time the client is connected to the server

Click agree. We generally select the second item, as long as we pass the password authentication.

In the middle, "Configure"-> set the password for logging on to the VNC server.

Click "Advanced", which is the general setting, such as connection port and control permission,

In this way, the configuration can be completed (all logon users are anonymous ).

Problem:

The following prompt appears on the client:

No matching security types!

Solution: update the client because the client version is different from the server version.

Tip: the Linux client can be opened directly.

Related commands:

# Vncserver: 1 (open the vnc Server, 1 indicates the port 5901, and other ports can also be used, such as 2 3)

# Vncserver-kill: 1 (Close Window 1)

Advanced applications:

1. set the vncserver STARTUP script (/etc/init. d/vncserver) to enable vncserver when the system is started. # in/etc/rc. d/rc. add the following lines to the local file:/etc/init. d/vncserver start # You can also use the chkconfig command to start vncserver [root @ CPAYNET005 ~] when the system is started. # Chkconfig -- level 2345 vncserver on2. View VNC Server startup status [root @ CPAYNET005 ~] # Netstat-tulnpActive Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0: 5801 0.0.0.0: * LISTEN 5248/Xvnctcp 0 0 0.0.0.0: 5901 0.0.0.0: * LISTEN 5248/Xvnctcp 0 0 0.0.0.0: 6001 0.0.0.0: * LISTEN 5248/Xvnctcp 0 0 ::: * LISTEN 5248/Xvnc

Ddddddddddddddddddddd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.