Steps To Install XFCE4 Desktop On Centos 6.x 32bit/64bit VPS With VNC
#1. Always make sure you are using the latest os so run this command on your server to update it if your os still not updatedyum update –y#2. For this installation we need to update centos epel so just copy paste these commands on your console window
For Centos 6x 64bit
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpmFor Centos 6x 32bit
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm#3. Now main steps begins for installing xfce
yum groupinstall xfce#4 For VNC access install tigervnc with these commands
yum install tigervnc-server
yum install fontforge#5 Next edit the vncserver file make sure you have nano installed so install nano first with this command
yum install nano –yEdit vncserver file now on console
nano /etc/sysconfig/vncserversCopy paste this line on console
VNCSERVERS=”1:root”Press CTRL+X then Press Y to save the vncserver config file
VNCSERVERARGS[1]=”-geometry 1024×768″
#6 Create password for vnc user
vncpasswd#7 Create xstartup script by executing this command
vncserver#8 Edit vnc xstartup script to integrate vnc with xfce desktop
nano /root/.vnc/xstartupPaste this line after #!/bin/sh line
/usr/bin/startxfce4Press CTRL+X then Press Y to save the xstartup config file
#9 Change xtartup script permission
chmod +x ~/.vnc/xstartup#10 Force vncserver to start on every reboot or boot
chkconfig vncserver onNow you have successfully installed xfce with vnc server. you can access your xfce desktop from any vnc client such as tight vnc viewer I will recommend java version client for windows bcz it is light weight and works best
Just Follow these steps to connect with your remote xfce4 server via vnc client
Download vnc viewer client from here
In my case I m using java client java put your ip on tight vnc viewer client and choose port 5901 and click on connect check image below