CentOS Install VNC

Source: Internet
Author: User
Tags iptables
introduceVNC (Virtual network Computer) is the abbreviation for a fictitious network computer. VNC is an excellent remote control tool software developed by the renowned at&t European Research Laboratory.         VNC is a free open source software based on UNIX and Linux operating systems, powerful and efficient in remote control, with performance comparable to any remote control software in Windows and Macs. I use VNC mainly to see how others operate, similar to Remote Desktop assistance. We all landed on VNC, and I can see his operation in real time. I can also operate on the interface I log in. installationBy default, CentOS is not installed. (check whether the rpm-q VNC vnc-server) hint is not installed, then start the installation, enter: Yum install VNC vnc-server (yum install Tigervnc-serve R this is in centos6.5)
Set up VNC
1. After the installation completes starts the VNC to start first starts VNC $ vncserver set VNC password: (I use VNCVNC here)
$ vncpasswd
Password: (#这里我输入的是vncvnc)
Verify: (#这里我输入的是vncvnc)
2. Configure Desktop type $vim ~/.vnc/xstartup
In general, we use the Linux desktop is the "Gnome" desktop, modify the last two lines. To
# xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
# TWM &
Gnome-session &
3. Configure login account, desktop resolution, connection mode
Vim/etc/sysconfig/vncservers modify the last two lines vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"
4. Configure the firewall, allow VNC connection (This step did not do, because the firewall does not start) if it is a cloud host, firewall remember to open 5900-5903 ports

VNC server listens for ports starting at 5900, display:1 listening 5901,display:2 listening for 5902, and so on. CentOS firewalls do not allow these ports to be connected by default, so you need to use the following procedure to turn on the firewall (requires root permissions):
Vim/etc/sysconfig/iptables we only add a root account and desktop 1, so follow the rules above to add a "5901" port number. -A input-m state--state new-m tcp-p TCP--dport 5901-j ACCEPT reboot Firewall service iptables restart
5. Set VNC auto Start # chkconfig Vncserver on
6. Close VNC
Vncserver-kill:1 (Note that there is a space after the kill)
7. Launch $service vncserver start
8. Windows Client (VNC Viewer) Link: http://pan.baidu.com/s/1dD2e2cD Password: CMCV password is a VNC-set password so that one side operates on the other. Shows the
problem
1. The cloud server is not a desktop system, landing is a black screen, you can install by the following method
Log on to the system, use the Yum installation #yum Groupinstall ' X Window System '-y to install the GNOME desktop environment #yum Groupinstall ' Gnome Deskto P Environment '-Y
CentOS 6.5 installation is different # yum Groupinstall "Desktop" "Desktop Platform" "Desktop Platform Development" "Chinese Support [En] "# Vim/etc/inittab will Id:3:initdefault: Change to Id:5:initdefault: # reboot
Reference
CentOS6.5 Install VNC http://www.111cn.net/sys/CentOS/75983.htm (CentOS 6.5 Desktop Environment installation configuration steps) http://jingyan.baidu.com /article/ca2d939dd1dabbeb6c31ce24.html (Linux Centos 6.5 installation desktop environment Gnome_ Baidu experience)
Related Article

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.