Install the desktop environment
yum groupinstall Desktop
Install VNC
yum install tigervnc-server
Create a user and set the VNC Password
useradd acasu - acavncpasswd
Start VNC
su - acavncserver
There is a. VNC hidden folder, log, PID, and xstartup Startup File under the user's home.
Xstartup
#!/bin/sh[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18nexport LANGexport SYSFONTvncconfig -iconic &unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESSOS=`uname -s`if [ $OS = ‘Linux‘ ]; then case "$WINDOWMANAGER" in *gnome*) if [ -e /etc/SuSE-release ]; then PATH=$PATH:/opt/gnome/bin export PATH fi ;; esacfiif [ -x /etc/X11/xinit/xinitrc ]; then exec /etc/X11/xinit/xinitrcfiif [ -f /etc/X11/xinit/xinitrc ]; then exec sh /etc/X11/xinit/xinitrcfi[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyxterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &twm &
Xterm and TWM will be called, so we 'd better install the two before running VNC.
yum install twm xterm -y
Connect locally with VNC-Viewer
Success!
Final Diagram
! [Write picture description here] (http://img.blog.csdn.net/20150507153232998)
Install VNC-Server