VNC on Rocky Linux with X11VNC: Difference between revisions

mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=== Question(s) ===
===Question(s)===
Why is it so difficult to configure VNC or any "Remote Desktop" like GUI interface in Linux?
Why is it so difficult to configure VNC or any "Remote Desktop" like GUI interface in Linux?


Err, wait, the question is actually: How can VNC Server be installed on Rocky Linux using X11VNC?
Err, wait, the question is actually: How can VNC Server be installed on Rocky Linux using X11VNC?


=== Objective ===
===Objective===
Install X11VNC Server on Rocky Linux 9.  Forget about Tiger VNC.  Nothing wrong with it at all, but this is just for basic X11VNC
Install X11VNC Server on Rocky Linux 9.  Forget about Tiger VNC.  Nothing wrong with it at all, but this is just for basic X11VNC


Line 34: Line 34:
</syntaxhighlight>Good to go?  Nope. That doesn't allow it to run until a user is logged in.  Attempted to use the -create Switch, but it didn't work properly.
</syntaxhighlight>Good to go?  Nope. That doesn't allow it to run until a user is logged in.  Attempted to use the -create Switch, but it didn't work properly.


=== Workaround and Solution for Pre-Login VNC Server Access ===
===Workaround and Solution for Pre-Login VNC Server Access===
...just couldn't do it.
...just couldn't do it.


Line 47: Line 47:
AutomaticLoginEnable=true
AutomaticLoginEnable=true
AutomaticLogin=root
AutomaticLogin=root
</syntaxhighlight>In /etc/systemd/system/
</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
</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 53: 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)