Because in some cases, you need to use a desktop environment for Linux, such as the installation and configuration of Oracle requires a graphical interface.
By default, we have installed the GNOME desktop environment
Yum-y Install Vncserver
Configure Vncserver, New in/etc/sysconfig/vncserver
vncservers= "1:root" vncserverargs[1]= "-geometry 1024x768-alwaysshared-depth 24"
Configure the VNC connection password
vncpasswd
Setting up VNC initialization
Vncserver
Then configure
Vim. Vnc/xstartup
#twm & #注释这样
Gnome-session & #新增这样
By default TWM is a very small graphical interface that is completely out of line with our operational needs
Then start the service
Service Vncserver Start;chkconfig Vncserver on
This article is from "Maple Night" blog, please be sure to keep this source http://fengwan.blog.51cto.com/508652/1726775
CentOS 5.11 Open VNC Access