1. Install the following components
# yum groupinstall-y "desktop" "Desktop Platform" "Desktop Platform Development" "Fonts" "General Purpose Desktop" "Gr Aphical Administration Tools "Graphics Creation Tools" "Input Methods" "X Window System" "Chinese support [zh]" "Inte Rnet Browser "
2. Installing Xorg Components
# yum Install xorg-x11*
3, Installation Tigervnc
#yum-y Install VNC *vnc-server*
Modify the Vncserver master configuration file
#vim/etc/sysconfig/vncservers
Copy the last two lines and remove the line header comment, and then change to
Vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"
Set Vncserver remote connection password
#vncpasswd
Enter the same password two times
Start the service
#/etc/init.d/vncserver Start
Starting VNC server:1:root xauth:file/root/. Xauthority does not exist
New ' niaoyun47507:1 (root) ' Desktop is niaoyun47507:1
Creating default startup Script/root/.vnc/xstartup
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/niaoyun47507:1.log
[OK]
# Vim/root/.vnc/xstartup
Change the last line to
Gnome &
Open firewall Vncserver Port
#vim/etc/sysconfig/iptables
In "-A input-m State--state new-m tcp-p TCP--dport 22-j ACCEPT"
Add A row Below-A input-m state--state new-m tcp-p TCP--dport 5901-j ACCEPT
Restart Iptables Service
#service iptables Restart
Then use realvnc,http://www.realvnc.com/to enter "Ip:1" and then enter the password.
Bird Cloud Server CentOS installation graphical interface and remote connection