VNC service on RHEL
How to use VNC Server (like RDP on Windows)
Configure the settings on GDM (GNOME Display Manager)
vi /etc/gdm/custom.conf
enable WaylandEnable=false
Install appropriate packages
yum install tigervnc-server tigervnc-server-module tigervnc -y
Set the password by below
su – into the user
vncpasswd
viewonly = no
Copy the template file to the systemd
cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
Configure the template file to meet the user set above
Type=forking
WorkingDirectory=/home_directory
User=UserName
Group=UserGroupName
PIDFile=/home_directory/.vnc/%H%i.pid
ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’
ExecStart=/usr/bin/vncserver -autokill %i
ExecStop=/usr/bin/vncserver -kill %i
Disable SELinux
vi /etc/selinux/config
SELINUX=disabled
setenforce=0
getenforce=Permissive
Enable firewall for ports
firewall-cmd –permanent –add-service=vnc-server
firewall-cmd –reload
Start VNC service
systemctl daemon-reload
systemctl enable vncserver@:1
systemctl start vncserver@:1
Connect using any of VNC view system to connect to the GUI