To facilitate VM management when using kvm to build a hadoop cluster environment, the desktop environment and vncserver are installed. this document 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. System version centos6.3 # cat/etc/redhat-releaseCentOSrelease6.3 (Final) 2. install the soft package group Desktop, centos default
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