How to configure VNC Server in CentOS

Source: Internet
Author: User
Tags centos

Main reference documents:

Chinese: http://wiki.centos.org/zh/HowTos/VNC-Server

English: Http://wiki.centos.org/HowTos/VNC-Server

Description is very normative and comprehensive.

Record the knowledge points/points in the installation process:

1.linux is a kernel, you need to install a window administrator to get a normal image of the desktop. For example, you can install the GNOME desktop and the required components using the Yum groupinstall "gnome Desktop Environment" instruction. Other popular desktop environments include KDE and XFCE-4.4. XFCE is lighter than Gnome and KDE and is included in the Extras software library.

2. Configure VNC to edit the file:/etc/sysconfig/vncservers, modify the Vncservers field (make sure the comment for this line is canceled):

vncservers= "1:root 2:user1"

If the VNC service is opened for multiple users, it can be separated by a space.

Modify the Vncserverargs[1 field if you need to modify the resolution, set whether to allow logon over TCP, allow logon over the Web, and allow unsecured TCP Tunel logins:

vncserverargs[1]= "-geometry 1024x768-nolisten tcp-nohttpd-localhost"

Pay attention to the comments, modify as appropriate.

3. If the system turns on the firewall, uses the VNC Viewer connection, also puts the 5901~590x port, uses the Web method to connect the 5801~580x port (depending on how many users you open the VNC service, if VNC first port is open, then 5801, and so on) opens, As for whether to open the TCP port or UDP port, according to their own settings to modify.

4. To boot vncserver on boot, enter/sbin/chkconfig vncserver on this instruction

Or manually add a vncserver link to rc2~5.d/
5. Modify password use VNCPASSWD,
6. Question: IP to add: 1 to connect, and is enabled a new process
, just atch when the time does not need this           
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.