Installing on Ubuntu 22 and newer

Before installing the StaffCounter Agent on Ubuntu 22, you must switch the display server from Wayland to X11.

Wayland is enabled by default in Ubuntu 22.04 (Jammy Jellyfish), but it can be disabled.

Disabling Wayland

Edit the GDM3 configuration file:

sudo nano /etc/gdm3/custom.conf

Find the line:

#WaylandEnable=false

Uncomment it and set to:

WaylandEnable=false

Save the file and reboot your system for changes to take effect.