Centos How To VPS Tutorials

How to Install VNC Server with Lightweight XFCE on CentOS 6

Written by Jana Raj

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

wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.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:
VNCSERVERS=”1:root”
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.

About the author

Jana Raj

Janarthanan is the founder and Chief Editor of Tech4bros .He is a Student of Computer Science and Engineering ,a full time Geek, part time Blogger and Quarter time Coder. He loves Blogging, Web Designing and making new friends . Google Plus