Installing a VNC Server on your CentOS VPS

All of Bitronic Technologies come with one user VNC access pre-installed. However if you should need to allow access for multiple concurrent VNC users you can install a VNC server within your CentOS VPS Hosting. By the time you finish this tutorial you will know how to install a VNC server on your CentOS VPS. If you want to learn more about how to install various services and softwares on your CentOS VPS we have many other great articles here in our knowledgebase.
 
Installing Gnome Desktop
 
This will update the repositories as well as install the desktop GUI and the VNC server:
 
yum update
yum groupinstall Desktop yum install tigervnc-server.x86_64 yum install xorg-x11-fonts-Type1
 
Setting up the VNC Server
 
First add a user in SSH as root:
 
useradd johndoe
 
Now create a password for the user:
 
passwd johndoesgoodpassword
 
Switch to the user you created:
 
su - vncpasswd
 
Enter a password for the VNC connection, once complete switch back to your root user:
 
su - vi /etc/sysconfig/vncservers
 
Once you have opened the vncservers file append the following to the configuration file:
 
VNCSERVERS="1:joe" VNCSERVERARGS[1]="-geometry 640x480"
 
Adding you iptables rules:
 
iptables -A INPUT -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT
 
Starting the VNC server:
 
Restart the iptables as well as the vnc server if it is running if it is not simply start the service:
 
/sbin/service iptables restart /sbin/service vncserver start
 
Download VNC Viewer:
 
TightVNC Java Viewer is free, and works on all platforms that support Java.
 
Connecting to the Desktop
 
Open your VNC viewer and enter your ipaddress and :1 to specify the user we have just created. eg
168.144.*.*:1

Was this answer helpful?

 Print this Article

Also Read

How to Configure a Minecraft Server on a CentOS VPS

Once you have your Minecraft template installed and running as you can read more about...

How to Setup Ruby on Rails on a CentOS or Fedora VPS

This tutorial will walk you through the setup of a basic Ruby on Rails environment, including:...

Using NTP to Sync Time on Linux

Keeping your system’s date and time accurate is easy to do using NTP. Having an accurate...

How to Install RapidLeech v42 on a Debian or Ubuntu VPS

This guide will walk you through the installation of RapidLeech v42 r358 on a VPS running Debian...

Install nginx, MySQL, PHP (LEMP) stack on a CentOS 6 VPS

LEMP stack is a group of open source software to get web servers up and running. The acronym...