VNC on Rocky Linux with X11VNC

Revision as of 08:26, 21 August 2023 by Root (talk | contribs) (Created page with "...forget about Tiger VNC. Nothing wrong with it at all. And as it turns out, might be necessary after post Rocky 9 (including Rocky 9) (unless using XFCE instead of GNOME desktop) === Installation === First, remove all other instances of VNC Server (tigervnc*, etc.) * yum or dnf install x11vnc (it includes the VNC Server) * systemctl daemon-reload * type this command to start the VNC Server: x11vnc === Run as a Service === Alas, not finished yet. Running the x11vn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

...forget about Tiger VNC. Nothing wrong with it at all. And as it turns out, might be necessary after post Rocky 9 (including Rocky 9) (unless using XFCE instead of GNOME desktop)

Installation

First, remove all other instances of VNC Server (tigervnc*, etc.)

  • yum or dnf install x11vnc (it includes the VNC Server)
  • systemctl daemon-reload
  • type this command to start the VNC Server: x11vnc

Run as a Service

Alas, not finished yet. Running the x11vnc command isn't the same as having the VNC Server running after a reboot.

Exceptions

There are some indications that X11VNC will have difficulty on Rocky Linux 9 or later: https://forums.rockylinux.org/t/x11vnc-systemd-on-rocky9/8671 (might be because of GNOME Desktop, but doesn't seem to affect XFCE Desktop and includes the Wayland VS MATE stuff)

Use this command to see if the X11 Display Server (https://en.wikipedia.org/wiki/Windowing_system#Display_server) is being used: echo $$XDG_SESSION_TYPE (if the answer is x11, then you should be good to go)