How to Install VNC Server with Lightweight XFCE on CentOS 6

Recently I was trying to Install VNC server on my linux VPS. Its a low spec vps so I need to install a lightweight VNC server with Lightweight XFCE. Here’s the tutorial for the people who’s facing same problem as mine.

This Tutorial Only tested on Centos 6 64-bit. May not work on Centos 7.

How to Install VNC Server with Lightweight XFCE on CentOS 6

Run the following command to download epel repository,If you get a “404 Not Found” error, you may need to find an updated epel-release RPM


Now update your RPM – rpm -ivh epel-release-6-8.noarch.rpm

Install TigerVNC Server – yum install tigervnc-server

Install Fonts – yum install xorg-x11-fonts-*

Install XFCE Lightweight Desktop Environment – yum groupinstall xfce

Setup your VNC Password by running vncpasswd

Edit /etc/sysconfig/vncservers, and add the following to the end of the file:
VNCSERVERARGS[1]=”-geometry 800×600″

If it has localhost, please remove it.

Run the following commands :
service vncserver start
service vncserver stop
chkconfig vncserver on

Edit ~/.vnc/xstartup

and add the startxfce4 after UNSET DBUS_SESSION_BUS_ADDRESS
Now, You installed a VNC Server with XFCE Desktop!

Now Download a VNC Viewer and Start using VNC Server. Use Port 5901.

If you found any problem, make a comment.