install Vncserver, use yum install vnc-server not install, the correct way is to use
#yum Install Tigervnc-server can only be installed properly.
after the installation succeeds Vnc-server, the following configuration is required to access the Vnc-viewer normally:
1, #vncserver for password configuration
2. Modify the configuration file
# Vi/root/.vnc/xstartup
1) put TWM & Comments Off (#twm &)
2) Last add a line gnome-session &
3. Modify the VNC service file
# Vi/etc/sysconfig/vncservers The last two lines are modified to:
vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"
4. Start the VNC service
#/etc/init.d/vncserver Start
or
#service vncserver Restart
(Note: If you do not step 3rd, you will be prompted starting VNC server:no Dispalys configured [FAILED])
5, configure the service with the system self-booting
#sudo chkconfig--level 345 vncserver on
you can now log on normally.
Linux CentOS Installation VNC service process