How To Install VNC Server in RHEL8. Virtual Network Computing

In this article, I will explain how to install VNC server in Redhat OS. VNC stands forVirtual Network Computing. It is nothing but a Linux desktop sharing system or set of protocols for sharing desktop. One can use VNC to control or access Linux based desktop remotely. VNC works on client-server principal. There are many Desktop sharing tools like TeamViewer, Anydesk, RDP, Tigervnc, RealVNC, etc. that are very popular for Windows,macOS, and Linux. TigerVNC Server is one of these RDP servers for Linux. To access the VNC servers a user needs to have VNC client.

So in this article, I will discuss the complete process of installation and configuration of the TIGERVNC Server. 

Steps To Install TigerVNC Server in RHEL are as follows -

1. Install the package of tigervnc

#yum/dns instatll tigervnc-server tigervnc-server-module -y

#yum/dnf install tigervnc-server xorg-x11-fonts-Type1 -y

OR

#yum/dnf groupinstall "Server with GUI"


2. Disable th SeLinux firewall /Security

#setenforce 0

#sed -i --follow-symlinks/SELINUX=enforcing/SELINUX=disabled/g' /etc/syconfig/selinux

3. Manual way To Disable SELinux

# vim /etc/selinux/config

Type disable in place of enable.


4. Create VNC users and Assign password to them.

#useradd user1

#useradd user2

#su - user1

#vncpasswd user1

#su - user2

#vncpasswd user2


5. Copy VNC configuration file

#cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service


6. Set up the user for VNC Server

#/etc/systemd/system/vncserver@.service

Type name of the user in place <USER> in the config file.


7. Add VNC Serice to Linux Firewall

#firewall-cmd --zone-public --add-port=590N

(N is no of the session which we assign like 1,2,3....n. In my case it is 1.)

#firewall-cmd --reload


8. Now reload system daemon

#systemctl daemon-reload


9.Enable VNC Service

#systemctl enable vncserver@:1.service


10. Start VNC Servcies

#systemctl start vncserver@:1.service

#systemctl status vncserver@:1.service


Now we are set from the server-side. A user can easily access our server remotely. Now both local and remote users can access the same server at the same time. To access VNC server remotely we need to have a vnc client i.e. vncviewer. Download vncviewer on client system and type the IP address of VNC server with port no.

After entering these details a prompt will open asking for the user name password. Entering right username password allows to use remote connection.

 


Post a Comment

0 Comments