VNC on Rocky Linux with X11VNC: Difference between revisions

mNo edit summary
mNo edit summary
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 :0" session of the Desktop Manager to allow X11VNC Server to accept connections


===Other Notes===
===Other Notes===