How to Configure VNC Server in Red Hat Enterprise Linux 6.x/7.x

VNC is a fast and secure way to managing Linux systems via GUI remotely. VNC needs proper configuration to work without issue. Configure VNC on Linux systems will be difficult and confusing for beginners. Fortunately, Red Hat provides an application to create VNC configuration as a script automatically.

I’ve published post about Red Hat Access Lab and you can read the post for more information.

You need to have active account on Red Hat Customer Portal for access to Red Hat Access Lab .

If you don’t have account, then you can use the below scripts to configure VNC on your Red Hat Enterprise Linux or all other Red Hat based Linux systems.

Before run the scripts, make sure that required RPMs have been installed on Linux. You can install needed software by run the below command:

The above command will install all necessary packages for run VNC server on RHEL 6.x or 7.x.

You must install at least the below desktops for accessing to server via VNC:

GNOME : Choose this to launch GNOME Desktop Environment as user’s session.Install related packages if they are not installed:

KDE : Choose this to launch KDE Desktop as user’s session.Install related packages if they are not installed:

Minimal GUI session : Choose this to launch minimal GUI environment as user’s session. This will present xterm running within the session with twm window manager.Install related packages if they are not installed:

Red Hat Enterprise Linux 6.x VNC Configuration Script

Change “user1” with any username that you want to configure VNC for that. Also you must turn the script to a executable script and run it via shell:


Red Hat Enterprise Linux 7.x VNC Configuration Script

Do same changes on the above script and then run it.

Note: If you have firewall on Linux, please configure firewall properly. Also you can export same script from VNC Configurator which includes firewall configurations.

See Also

HPE Management Component Pack (MCP)

[Review]: OpenFabrics Enterprise Distribution (OFED)

[Review]: Packet Drop vs Packet Loss – Linux

Red Hat Access Labs – Review

583 total views, 4 views today

How to Configure VNC Server in Red Hat Enterprise Linux 6.x/7.x
5 (100%) 1 Votes

Davoud Teimouri

Davoud Teimouri is as a professional blogger, vExpert 2015/2016/2017/2018, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

Your email address will not be published. Required fields are marked *