VNC server will not work properly if SElinux is enabled on your system, as of now work around is to disable it using following commands, ~]# setenforce 0 Note: Wayland is the default display manager (GDM) in GNOME and it not is configured to handled remote rendering API like X.org Once the system is rebooted successfully uncomment the line “ WaylandEnable=false” from the file “ /etc/gdm/nf” so that remote desktop session request via vnc is handled by xorg of GNOME desktop in place of wayland display manager. Now reboot the system so that we get GNOME login screen. Once the above packages are installed successfully then run the following command to enable the graphical mode ~]# systemctl set-default graphical
if you don’t have it in your system, install it using the following command: ~]# dnf groupinstall "workstation"
Configure the firewall: Enable VNC Server port in firewall using below commands.In CentOS 8 / RHEL 8, GNOME is the default desktop environment. Sep 01 10:47:16 test-machine01local vncserver_wrapper: Log file is system]# ps -ef|grep Xvnc Sep 01 10:47:16 test-machine01.local vncserver_wrapper: Starting applications specified in /home/ucas_build/.vnc/xstartup
Sep 01 10:47:16 test-machine01.local vncserver_wrapper: Creating default config /home/ucas_build/.vnc/config Sep 01 10:47:16 test-machine01.local vncserver_wrapper: Creating default startup script /home/ucas_build/.vnc/xstartup Sep 01 10:47:16 test-machine01.local vncserver_wrapper: New test-machine01.local:1 (ucas_build)' desktop is test-machine01.local:1 Sep 01 10:47:03 test-machine01.local vncserver_wrapper: xauth: file /home/ucas_build/.Xauthority does not exist Sep 01 10:47:03 test-machine01.local systemd: Started Remote desktop service (VNC). Sep 01 10:47:03 test-machine01.local systemd: Starting Remote desktop service (VNC). Loaded: loaded enabled vendor preset: disabled)Īctive: active (running) since Wed 10:47:03 +03 17s agoĬGroup: /bin/sh /usr/bin/vncserver_wrapper app_user :1
Create a service unit configuration file: Copy the template file from location /usr/lib/systemd/system to location /etc/systemd/system/ with unique display number of the VNC desktop, starting from 1 then replace with system]# systemctl system]# systemctl start system]# systemctl enable symlink from to system]# systemctl status - Remote desktop service (VNC) Public key for tigervnc-server-1.8.86_64.rpm is not installed