Do the below steps from root user..

1) Install VNC server

yum groupinstall “GNOME Desktop”

yum install tigervnc-server xorg-x11-fonts-Type1

2) Configure VNC server

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

vi /etc/systemd/system/vncserver@:1.service

ExecStart=/sbin/runuser -l srijan -c “/usr/bin/vncserver %i”


replace srijan with root in the above two lines (if already root is mentioned there, ignore it)

3) Disable firewall completely or put the rules to allow vnc traffic

service firewalld stop

systemctl disable firewalld

4) Set vnc password for root user like below is done for user kishore

[kishore@server1 ~]$ vncserver

You will require a password to access your desktops.

Password:<--yourvncpassword Verify:<--yourvncpassword xauth: file /home/kishore/.Xauthority does not exist New ' (kishore)' desktop is Creating default startup script /home/kishore/.vnc/xstartup Starting applications specified in /home/kishore/.vnc/xstartup Log file is /home/kishore/.vnc/ 5) Start and Enable the VNC Service at boot like below.. [root@linuxtechi ~]# systemctl daemon-reload [root@linuxtechi ~]# systemctl start vncserver@:1.service [root@linuxtechi ~]# systemctl enable vncserver@:1.service ln -s '/etc/systemd/system/vncserver@:1.service' '/etc/systemd/system/' [root@linuxtechi ~]# 6) To check if VNC server has started If the output is blank like below, then it means it’s not running [root@localhost ~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESS ID If the vncserver is running you should get output exactly similar to below. [root@localhost ~]# vncserver -list TigerVNC server sessions: X DISPLAY # PROCESS ID :1 33661 7) To stop VNC server systemctl stop vncserver@:1.service 8) To forcefully stop VNC Server vncserver -kill :1 9) To confirm if export variable is set properly, check with below command [root@localhost ~]# echo $DISPLAY :1.0 10) If the output of echo $DISPLAY shows above output things are fine, otherwise set the DISPLAY variable using below command. [root@localhost ~]# export DISPLAY=:1.0