

cat > ~/.config/systemd/user/ /dev/null 2>&1 || :'ĮxecStart=/usr/bin/vncserver %i -geometry 1912x988 Next, create a per user VNC systemd unit file under the home directory of every user you want to allow to connect to your remote desktop via VNC server.įor example, if you want to configure VNC server to provide a display for user, janedoe, create the VNC systemd configuration file for this user under /home/janedoe/.config/systemd/user.Īs a user in question and create the service unit directory above su - janedoe mkdir -p ~/.config/systemd/userĬreate user vnc service as follows. Once the system boots, login as the user with which you will be using for remote VNC desktop logins, in this case, janedoe. Reboot your Rocky Linux 8 system to apply the changes. sed -i 's/ #WaylandEnable/ WaylandEnable/' /etc/gdm/nf Reboot the System For the VNC logins to work, you need to force the login screen to use Xorg server by uncommenting the line #WaylandEnable=false, on the /etc/gdm/nf configuration file. useradd janedoe passwd janedoe Disable Wayland and enable Xorg display server on Rocky Linux 8īy default, Rocky Linux 8 uses Wayland s the default X server. You can however create a user account for VNC logins.

NOTE: The user must already be existing on the system. Once the installation completes, proceed to configure VNC server to define the users that are allowed to access remote desktop.
#Tigervnc vnc install#
Sudo dnf update sudo dnf install tigervnc-server Configure VNC Server on Rocky Linux 8 Create VNC Connection User Account
