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