centos 6 - install vnc & minimal GUI

  • 8 years ago
install vnc server on centos 6 minimal GUI desktop :

1/ yum update -y
2/ yum groupinstall Desktop -y
3/ yum install tigervnc-server -y
4/ yum install xorg-x11-fonts-Type1 -y
5/ yum install nano -y
6/ chkconfig vncserver on
7/ vncpasswd
8/ nano /etc/sysconfig/vncservers
###Add this at the bottom of the file###
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"

9/ service vncserver restart
10/ vncserver -kill :1
11/ nano .vnc/xstartup
###Add this at the bottom of the file###
#twm &
exec gnome-session &

12/ service vncserver start