News
3 new Serverspace GPT API Language Models available now!
JH
Joe Harris
January 30 2021
Updated June 30 2025

How to Install TigerVNC Server on CentOS 8

CentOS Linux VNC

Virtual Network Computing (VNC) is a remote desktop technology that enables users to access and control a server or computer through a graphical user interface (GUI) over the network. This is especially useful for system administrators and users who prefer managing servers through a desktop environment instead of the command line.
In this tutorial, we’ll guide you step-by-step through the installation and configuration of TigerVNC Server on CentOS 8—a fast and lightweight VNC implementation. You’ll learn how to set up user sessions, configure access securely, and start remote desktop services for easier server management and productivity.

Installing a graphical desktop environment

At this stage, it is assumed to work under the root user.
By default, CentOS 8 does not have a graphical user interface, and it is required to connect to the server via VNC. So let's install Gnome.

dnf groupinstall "Server with GUI"

Installing TigerVNC

Now let's install the TigerVNC server.

dnf install tigervnc-server

To connect to the server via VNC, it is better not to use the root user, because it is not safe. In addition, some functions may not work correctly. Therefore, we will create a regular user for connection, set a password for it and add it to the wheel group. This will give him sudo authority.

adduser username
passwd username
usermod -aG wheel username

TigerVNC configuration

Now we need to assign each user an individual port for connection. To do this, open the file:

nano /etc/tigervnc/vncserver.users

Add the following line to the end. You can put as many users with ports there as you need. The last digit of the port is shown here. The first part will always be 590x. In this case, we will set port 5902 for the user username. The port for each user must be unique.

:2=username

Now open the default config file.

nano /etc/tigervnc/vncserver-config-defaults

Add the default configuration here:

session=gnome

Now you need to log in with the newly created user.

su - username

Set a password for this TigerVNC server user. If you choose a view-only password, you won't be able to control your computer, only watch.

vncpasswd

Now start the TigerVNC service and add it to autostart.

sudo systemctl enable --now vncserver@:2

Remote Desktop Connection via VNC

Any VNC client application can be used to connect. Enter your server's public IP address and port 5902 as the VNC server.

Connect to VNC server
Screenshot 1. Connect to VNC server.

Enter your VNC password and you will see your server's remote desktop.

Remote desktop
Screenshot 2. Remote desktop.

To secure the connection - see How to Establish VNC Connection Over SSH tunnel in CentOS 8</a

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.