How to configure VNC-SERVER access in Red hat Linux

Virtual Network Computing(VNC):

As a system administrator frequently we access the servers remotely over the network for various reasons, Mostly the system administrator prefers to use the protocols ssh or telnet to connect to the remote server which gives you a non-graphic access to the remote server.Sometimes we need to access the remote server with GUI interface i.e, sharing the server desktop, So if you need to access the client-server desktop we need to configure VNC on RedHat servers.

VNC it allows the administrator to open the remote GUI access to your server and thus it provides you a full Graphical user interface session from any remote location.

Note: The best real-time example for the VNC is "Teamviewer" which gives you the GUI desktop access to another system.
How to Configure VNC Server in Linux?

To configure the VNC on RedHat server two vnc packages should be installed.

1.Vnc-server package


This package is used to share the desktop with the remote system.

2.Vnc-viewer package


This package is used to access the server from another system.

Configure the following on Linux server:

The IP address of my Linux server is

First check the vnc-server package is installed on your server by using the  rpm command

#rpm -qa vnc-server

If the package is not installed then install the package from the media.

To install the vnc packages:
#cd  /media/RHEL_5.7 x86_64_DVD/Server
Check vnc package is listed in cdrom
#ls  tiger(then press the tab twice will give you the package details)

Once you have confirmed the packages are listed in cdrom install them,

#rpm  -ivh tigervnc-server-1.0.90-0.10.2010115svn3945.el6.x86_64.rpm

Configure Linux client:

Note:  Linux client-server IP address is

Check the vnc-viewer package is installed or not

#rpm  -qa vnc-1.0.90-0.10.2010115svn3945.el6.x86_64.rpm

If it is not installed then install it from the media

#cd  /media/RHEL_5.7 x86_64_DVD/Server

Install the vncviewer package

#rpm -ivh  tigervnc-1.0.90-0.10.2010115svn3945.el6.x86_64.rpm

Let us confirm whether vnc packages are  installed  successfully or not by using the following command,

Once you have confirmed the required packages are installed on both the servers now its time to check the vnc access.

Note: Before you run the vnc command to connect to the remote server, check with the ping command whether both the servers are communicating each other.

#ping  <remote server IP address>

Once you have confirmed the connectivity test is passed,  check the Linux client IP address status,

To check the IP address status of your Linux client-server:

#ifconfig or ifconfig  eth1

Before you run the vncviewer command to get the access to Linux server desktop, run the ping command to check the connectivity.


Now run the following command to take the remote Linux server desktop access.


#vncviewer   <remote server ip>

On  server side  i.e @ it will show a pop-up message for confirmation

Once the admin granted the request, you can now access the remote server desktop graphically.

The live session for taking the remote server desktop is added to this video link Vnc server client Demo video
Key point:  If you are getting any error message while connecting to the remote server via vnc go to system setting and choose the remote desktop option and enable the checkbox to allow other users to share your desktop, do this on both the server end and try connect, this time vnc will connect without any error.


I hope you have enjoyed this article, in our next article I will explain you about the TCP/IP secured protocols.

Never miss any article from this blog ,Kindly do like my FB page Learn Linux in a easier way


If you found this article useful,kindly 👉🏿👉🏿Subscribe here