Setup RealVNC Server and Client on Rocky Linux

Step 1 – Install Desktop Environment on Rocky Linux 8|AlmaLinux 8

sudo dnf update
sudo dnf groupinstall -y "Server with GUI"
sudo systemctl set-default graphical.target
sudo systemctl default
sudo reboot

Step 2 – Install the RealVNC server on Rocky Linux

##For 64-bit
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.9.1-Linux-x64.rpm

##For 32-bit
wget https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.9.1-Linux-x86.rpm

sudo yum localinstall VNC-Server-6.9.1-Linux-*.rpm


sudo systemctl enable vncserver-virtuald.service
sudo systemctl start vncserver-virtuald.service
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-x11-serviced.service

License expiry: Expires on 2035-03-28 – Desktops: 1029179

vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA

Linux
sudo vnclicense -add 77NVU-D9G5T-79ESS-V9Y6X-JMVGA

export DISPLAY=:0.0
xrandr –newmode “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr –addmode VGA-1 “1920x1080_60.00”

sudo vim /etc/gdm/custom.conf

# Uncomment the line below to force the login screen to use Xorg

WaylandEnable=true

sudo systemctl restart gdm

发表评论