Install the desktop environment and VNC in CentOS

Source: Internet
Author: User
Tags windows remote desktop

To facilitate VM management when using kvm to build a Hadoop cluster environment, the desktop environment and vnc server are installed. This article records the direct installation of the desktop environment from the full command line interface in CentOS6, in addition, it is relatively simple to set up vnc remote connection. It is only for reference purposes.

1. The system version is centos 6.3.
# Cat/etc/RedHat-release
CentOS release 6.3 (Final)

2. Install the soft package group Desktop. The default Desktop of centos is gnome.
# Yum groupinstall Desktop

3. Install vnc server and font
# Yum install tigervnc-server
# Yum install libXfont

4. Configure the password for each vncserver desktop number
# Vncserver: 1
# Vncserver: 2
Enter the password to generate related files.
Xauth: creating new authority file/root/. Xauthority

5. Configure the user
# Vim/etc/sysconfig/vncservers
VNCSERVERS = "1: root"
VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"

View running desktops
# Vncserver-list
TigerVNC server sessions:
X display # PROCESS ID
: 1 22668

Kill a desktop
# Vncserver-kill: 2

Change vnc Password
# Vncpasswd

Restart the vnc service
#/Etc/init. d/vncserver restart


If the log contains this error, install libX11 to solve it.
Vncconfig: symbol lookup error: vncconfig: undefined symbol: _ XGetRequest

# Yum install libX11

Client connection:
Realvnc viewer or tigervnc viewer

192.168.1.12: 5901

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

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.