2023/06 - How to install RealVNC on RL8 by A.Denault.
Goal: Installing the VNC-Server on Rocky8. Install our off-line licenses. Per RealVNC documentation, install the xorg-x11-drv-dummy Xorg Server for Rocky8, needed for virutal desktop. #Installation # Installation files needed: VNC-Server-7.5.1-Linux-x64.rpm. From https://www.realvnc.com/en/connect/download/vnc/. real-vnc-v7+.lic - The offline license file provided by Anubhav/Miranda via the online account (I didn't have access). The files are saved in /home/vnc/Downloads/2023-06-realvnc/ # Need to remove tigervnc server conflicts with realvnc server dnf remove tigervnc-server tigervnc tigervnc-server-minimal tigervnc-license # installed the package. Ref: https://help.realvnc.com/hc/en-us/articles/360002253818 # Default install is /usr, but can relocated install to /usr/local/ yum install VNC-Server-7.5.1-Linux-x64.rpm Last metadata expiration check: 2:05:32 ago on Tue 13 Jun 2023 09:51:45 AM HST. Dependencies resolved. ===================================================================================================================== Package Architecture Version Repository Size ===================================================================================================================== Installing: realvnc-vnc-server x86_64 7.5.1.50075-1 @commandline 13 M Transaction Summary ===================================================================================================================== Install 1 Package Total size: 13 M Installed size: 39 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : realvnc-vnc-server-7.5.1.50075-1.x86_64 1/1 Running scriptlet: realvnc-vnc-server-7.5.1.50075-1.x86_64 1/1 X11 connection rejected because of wrong authentication. Testing if SELinux enabled... [Disabled] Updating /etc/pam.d/vncserver NOTICE: common configuration in /etc/pam.d contains the following modules: pam_faildelay.so The default vncserver PAM configuration only enables pam_unix. See `man vncinitconfig' for details on any manual configuration required. Looking for font path... not found. Generating private key... done Installed systemd unit for VNC Server in Service Mode daemon Start or stop the service with: systemctl (start|stop) vncserver-x11-serviced.service Mark or unmark the service to be started at boot time with: systemctl (enable|disable) vncserver-x11-serviced.service Installed systemd unit for VNC Server in Virtual Mode daemon Start or stop the service with: systemctl (start|stop) vncserver-virtuald.service Mark or unmark the service to be started at boot time with: systemctl (enable|disable) vncserver-virtuald.service Installed firewalld service configuration. To enable access to VNC services from the public zone, use the following commands: For VNC Server in Service Mode: firewall-cmd --zone=public --permanent --add-service=vncserver-x11-serviced For VNC Server in Virtual Mode daemon: firewall-cmd --zone=public --permanent --add-service=vncserver-virtuald Verifying : realvnc-vnc-server-7.5.1.50075-1.x86_64 1/1 Installed products updated. Installed: realvnc-vnc-server-7.5.1.50075-1.x86_64 Complete! # Apply the offline license file: /usr/bin/vnclicense -add real-vnc-v7+.lic Offline license has been successfully applied. Team ID: QmTOUYXvFYKZA78VjLa Subscription: Enterprise Subscription model: Per Device Desktops: 25 License expiry: 09/10/2023 License source: Offline - 128-bit AES encryption - 256-bit AES encryption - Audio - Chat - Cloud connectivity - File transfer - Granular permissions - Printing - Privacy mode - Session recording - Single sign-on authentication - System authentication - VNC authentication #For virtual mode, realvnc recommends using SystemXorg. This requires installation of X11 dummy drive. # Xsystemorg=1 in ~/.vnc/config.d/vncserver-virtual yum install xorg-x11-drv-dummy # Then make the vncserver-virtual-dummy.conf the default cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak # may not exist, error can be ignored cp /etc/X11/vncserver-virtual-dummy.conf /etc/X11/xorg.conf To use SystemXorg, realvnc would need to be configure for it. At this point all configuration is done at the user account level. (in ~/.vnc ).
See testing.html for more information.