VNC on Rocky Linux with X11VNC: Difference between revisions

mNo edit summary
 
Line 49: Line 49:
</syntaxhighlight>In /etc/systemd/system/getty.target.wants/getty@tty1.service, change whatever is on the ExecStart line to the following;<syntaxhighlight lang="text">
</syntaxhighlight>In /etc/systemd/system/getty.target.wants/getty@tty1.service, change whatever is on the ExecStart line to the following;<syntaxhighlight lang="text">
ExecStart=-/sbin/agetty --noclear --autologin root %I $TERM
ExecStart=-/sbin/agetty --noclear --autologin root %I $TERM
</syntaxhighlight>That automatically logs the root user in and starts the "display :0" session of the Desktop Manager to allow X11VNC Server to accept connections
</syntaxhighlight>That automatically logs the root user in and starts the "display<span> </span>:0" session of the Desktop Manager to allow X11VNC Server to accept connections


===Other Notes===
===Other Notes===
Line 55: Line 55:


To determine Linux version and Install: lsb_release -a (may need to install it first: yum or dnf install lsb_release)
To determine Linux version and Install: lsb_release -a (may need to install it first: yum or dnf install lsb_release)
Lock Screen (turn that obnoxiously agressive lock time of .5 seconds off), via the GUI: Activities, "9 Dot" Applications Menu, Settings, Privacy, Lock Screen (OFF!)


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)
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)
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)