User Agent on Linux (beta)

Install, configure, deploy and troubleshoot the Kabeen user agent on Linux workstations (Debian, Ubuntu, Fedora)

Beta version. The user agent for Linux is in beta. Its installation packages cannot yet be downloaded from the platform: request them from Kabeen support (support@kabeen.io), specifying your distributions and architectures.

The agent ships as a .deb package (Debian, Ubuntu and derivatives) and as an .rpm package (Fedora), each for x86_64 and aarch64: kabeen-<version>-linux-<arch>.deb or .rpm. As on macOS and Windows, it is not a system service: it starts in each user's graphical session and runs under that user's identity. The network prerequisites are described in User Agent Overview.

Supported distributions and environments

GNOMEKDE PlasmaXFCE
Ubuntu 26.04 LTS (deb)✅ Wayland (GNOME 50 no longer has an Xorg session)✅ Plasma 6✅
Ubuntu 24.04 LTS (deb)✅ Wayland and Xorg✅ Plasma 5.27✅
Debian 13 (deb)✅✅✅
Fedora 43 and later (rpm)✅ (the icon requires the AppIndicator extension, see GNOME)✅✅
Debian 12 / Ubuntu 22.04 (deb)✅ GNOME 43 / 42✅✅
RHEL / Rocky / Alma❌ not supported (no WebKitGTK 4.1)

The agent requires glibc 2.34 or later and WebKitGTK 4.1, which the package manager installs along with it.

Active window tracking

Under X11, the agent reads the active window directly. Under Wayland, where an application cannot see the windows of other applications, it goes through the window manager:

EnvironmentMechanismNotes
GNOME Shell 45 to 52kabeen-focus@kabeen.io extension, shipped with the package
GNOME Shell 40 to 44kabeen-focus-legacy@kabeen.io extension, shipped with the packageUbuntu 22.04, Debian 12
KDE Plasma 5.27 / 6KWin script that the agent loads itself
Hyprland, Sway, niricontrol interface of the window manager
labwc (Budgie 10.10), Wayfire, river, Phosh…wlr-foreign-toplevel-management protocolapplications are identified by their application ID, without an executable path
COSMIC, Cinnamon on Wayland, Weston…❌ noneonly XWayland windows are seen: use an X11 session

A locked or background session is not counted: usage measurement stops about two seconds after the screen is locked. Screen lockers that report the lock neither to logind nor through the desktop's screensaver service (xscreensaver, i3lock, swaylock outside Hyprland) are not detected: use the one provided by your desktop environment.

Install the agent

# Debian / Ubuntu
sudo apt install ./kabeen-<version>-linux-x86_64.deb
 
# Fedora
sudo dnf install ./kabeen-<version>-linux-x86_64.rpm

The package:

  • installs the agent in /usr/lib/kabeen/ and a Kabeen launcher in the applications menu;
  • starts the agent at session logon (/etc/xdg/autostart) and restarts it if it stops (see Keeping the agent running);
  • installs the GNOME Shell extensions kabeen-focus@kabeen.io (GNOME 45 and later) and kabeen-focus-legacy@kabeen.io (GNOME 40 to 44); the agent enables, once for each user, the one that matches the GNOME version;
  • installs the browsers' native messaging hosts and the force-install policies for the Kabeen extension (see Browser extension);
  • creates the empty folders /etc/kabeen and /etc/kabeen/users, owned by root, for the managed configuration, and provides an example in /usr/share/doc/kabeen/configuration.json.example;
  • enables two system services, because the agent runs without privileges:
    • kabeen-hwid.service copies the workstation's hardware UUID and serial number, which only root can read, to /var/lib/kabeen/hardware/ (as on macOS and Windows, any user of the workstation can then read them);
    • kabeen-posture.timer reads the active firewall rules as root every 15 minutes and publishes only the verdict (enabled or disabled) in /var/lib/kabeen/posture/firewall;
  • on an SELinux system, labels its programs that run as root with bin_t (semanage fcontext rule, removed with the package).

The package enables each service only once: an update never re-enables a service that you have disabled.

The agent starts at each user's next session logon, or when kabeen is launched from a terminal in the graphical session. On GNOME Wayland, GNOME Shell likewise only takes the extension into account at the next session logon.

Locations

ItemPath
Programs/usr/lib/kabeen/ (/usr/bin/kabeen points to the agent)
Launcher and autostart/usr/share/applications/io.kabeen.yutu.desktop, /etc/xdg/autostart/io.kabeen.yutu.desktop
Managed configuration/etc/kabeen/configuration.json, /etc/kabeen/users/<login>.json
Configuration example/usr/share/doc/kabeen/configuration.json.example
Local configuration~/.local/share/Kabeen/configuration.json
Logs~/.local/state/Kabeen/ (one file per day, kept for 14 days)
GNOME Shell extensions/usr/share/gnome-shell/extensions/kabeen-focus@kabeen.io/, …/kabeen-focus-legacy@kabeen.io/
Information collected as root/var/lib/kabeen/hardware/, /var/lib/kabeen/posture/firewall
Keep-alive/usr/lib/systemd/user/kabeen-keepalive.service, kabeen-keepalive.timer

Configure the agent

Deploy /etc/kabeen/configuration.json (owned by root, permissions 0644, in an /etc/kabeen folder owned by root with 0755):

{
  "ApiKey": "YOUR_API_KEY",
  "StructureId": "YOUR_STRUCTURE_UUID",
  "TeamId": "YOUR_TEAM_UUID"
}

The file applies to all users of the workstation; /etc/kabeen/users/<login>.json takes precedence key by key for one user. The ownership rules, the optional keys and the case of unmanaged workstations are detailed in User Agent Configuration.

Deploy to a fleet

Install the package with your fleet management tool, then deploy /etc/kabeen/configuration.json as above. Installation, update and uninstallation are described for Ansible, Puppet and a shell script.

Verify a package signature

With each package, support provides you with its detached signature (<package>.sig) and the Kabeen public key (kabeen-release-prod.gpg, the one that the package installs in /usr/share/kabeen/kabeen-release.gpg). Verify the package before installing it:

gpgv --keyring "$PWD/kabeen-release-prod.gpg" \
  kabeen-<version>-linux-x86_64.deb.sig kabeen-<version>-linux-x86_64.deb

The .deb and .rpm packages do not contain an embedded signature (hence disable_gpg_check in the Ansible example): if your internal repository enforces gpgcheck, sign the .rpm with your own key.

Desktop environment specifics

GNOME

  • Agent icon. GNOME has no notification area. Ubuntu enables the AppIndicator extension by default; on Fedora and Debian, install and enable gnome-shell-extension-appindicator (the .rpm package installs it on GNOME, the .deb package only suggests it). Without it, the agent still works: open its window from the Kabeen launcher.
  • Window tracking. The extension matching the GNOME version must be active: kabeen-focus@kabeen.io on GNOME 45 to 52, kabeen-focus-legacy@kabeen.io on GNOME 40 to 44. The other one appears as out of date in the Extensions application, which is normal. Check it with gnome-extensions info <uuid>. The agent enables it once for each user, then respects a user who disables it. The extension only responds to the installed agent. A GNOME version later than 52 will require an agent update.

To enforce the extension, set and lock the keys with dconf. disable-user-extensions=true also disables the extensions installed by the system: this key must remain false.

sudo mkdir -p /etc/dconf/db/local.d/locks
sudo tee /etc/dconf/db/local.d/00-kabeen >/dev/null <<'EOF'
[org/gnome/shell]
enabled-extensions=['kabeen-focus@kabeen.io', 'kabeen-focus-legacy@kabeen.io']
disable-user-extensions=false
EOF
printf '/org/gnome/shell/enabled-extensions\n/org/gnome/shell/disable-user-extensions\n' \
  | sudo tee /etc/dconf/db/local.d/locks/00-kabeen >/dev/null
sudo dconf update

A locked enabled-extensions key replaces each user's list: add to it all the other extensions your users need (the AppIndicator one is appindicatorsupport@rgcjonas.gmail.com on Fedora and Debian; Ubuntu's own extensions are not affected). If /etc/dconf/profile/user does not exist (Ubuntu, Debian), create it with the two lines user-db:user and system-db:local.

KDE Plasma

Nothing to install: the agent loads its KWin script when it starts and removes it when it stops.

Other Wayland window managers

Hyprland, Sway and niri require nothing. Window managers based on wlroots, such as labwc, must offer wlr-foreign-toplevel-management, which they do by default.

XFCE

XFCE runs under X11, with nothing specific. If the session does not pass its display to the user's systemd manager, automatic restart stays inactive and only the start at session logon applies.

Information collected on the workstation

The agent runs under the user's identity; the information that requires root privileges comes from the package's services.

  • Firewall: the verdict established every 15 minutes from the kernel's active rules (nftables and iptables, whatever tool loaded them: ufw, firewalld, hand-written rules). If this verdict is missing or more than one hour old, the agent falls back on what it can read itself (firewalld, ufw, nftables, iptables-services, netfilter-persistent, shorewall).
  • Encryption: root file system on LUKS/dm-crypt (including LVM and btrfs) or ZFS native encryption, or home folder on systemd-homed, eCryptfs or fscrypt. Encryption with bcachefs is not detected.
  • EDR / antivirus: CrowdStrike Falcon, SentinelOne, Microsoft Defender, Sophos, Trend Micro, Carbon Black, Cortex XDR, Elastic, ESET, Bitdefender, Cybereason, Trellix, Kaspersky, HarfangLab, Wazuh, Rapid7, Tanium, Qualys, Cylance, Symantec SEP, Huntress and ClamAV, recognized by the name of their service or process.
  • Installed software: the menu applications (distribution packages, Flatpak, Snap, AppImage in ~/Applications and ~/.local/bin), as well as third-party packages without a menu entry: .rpm packages from a vendor other than the distribution, .deb packages installed under /opt, from a third-party repository or from a local file.
  • Domain: FreeIPA, realmd/SSSD, Samba/winbind or the machine's Kerberos keytab file. A directory account is then recognized as the same user on all workstations of the domain.

Browser extension

The package installs the Kabeen extension automatically, by means of ExtensionSettings policy files named 00-kabeen.json in the …/policies/managed/ folder of Chrome (/etc/opt/chrome), Chromium (/etc/chromium, and /etc/chromium-browser for the Ubuntu snap), Brave (/etc/brave), Vivaldi (/etc/vivaldi) and Edge (/etc/opt/edge). These files are written at installation and at each update, and deleted with the package, along with the folders that the package had to create. Chromium does not merge the same policy spread across several files, and the last file in alphabetical order wins: 00-kabeen.json therefore gives way to any ExtensionSettings policy that you manage yourself. In that case, add the Kabeen entry to your own file.

Firefox reads a single /etc/firefox/policies/policies.json file (Mozilla builds, Debian's firefox-esr and the snap). The package writes it only if it does not exist, and deletes it only if it has not been modified. If you already manage this file, add this entry to it yourself (the package reminds you at installation):

{
  "policies": {
    "ExtensionSettings": {
      "storage@kabeen.org": {
        "installation_mode": "force_installed",
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/kabeen/latest.xpi"
      }
    }
  }
}
  • To deploy no browser policy at all, create the file /etc/kabeen/no-browser-policies before installation (sudo mkdir -p /etc/kabeen && sudo touch /etc/kabeen/no-browser-policies), or reinstall the package after creating it: the files are then deleted and never written again, including during updates.
  • Firefox as a snap (Ubuntu's default) reaches the agent through the WebExtensions portal and asks the user once to allow it. Chromium as a snap receives the policy but cannot launch a native messaging host (a limit of snap confinement), and Flatpak browsers receive neither: the extension cannot communicate with the agent in them.

Check that the agent works

pgrep -a -x Kabeen                                    # the agent is running in the session
gnome-extensions info kabeen-focus@kabeen.io          # GNOME 45 and later: State must be ACTIVE
gnome-extensions info kabeen-focus-legacy@kabeen.io   # GNOME 40 to 44
systemctl status kabeen-posture.timer kabeen-hwid.service
cat /var/lib/kabeen/posture/firewall                  # enabled or disabled
tail -f ~/.local/state/Kabeen/*.log                   # agent log

In Kabeen, the workstation appears in the Agent Tracking menu with recent activity.

Keeping the agent running

/etc/xdg/autostart/io.kabeen.yutu.desktop starts the agent at session logon, under GNOME, KDE Plasma and XFCE. The kabeen-keepalive.timer user service, enabled for all users, checks every 5 minutes that the agent is running in the session and restarts it if needed.

Update the agent

Install the new package the same way as the first one:

sudo apt install ./kabeen-<version>-linux-<arch>.deb    # Debian / Ubuntu
sudo dnf install ./kabeen-<version>-linux-<arch>.rpm    # Fedora

Running agents restart on the new version by themselves within about one minute. The managed configuration (/etc/kabeen) is kept.

On image-based systems (Fedora Atomic, rpm-ostree, bootc), the agent is part of the system image or layered onto it, and is updated with it.

Stop the agent

# For the current session only (automatic restart starts it again within 5 minutes):
pkill -x Kabeen
 
# Persistently, for all users: disable automatic restart and the start at session logon
sudo systemctl --global disable kabeen-keepalive.timer
echo 'Hidden=true' | sudo tee -a /etc/xdg/autostart/io.kabeen.yutu.desktop
pkill -x Kabeen

/etc/xdg/autostart/io.kabeen.yutu.desktop is a configuration file: package updates keep your change.

Uninstall the agent

sudo apt purge kabeen      # Debian / Ubuntu ("remove" keeps /var/lib/kabeen)
sudo dnf remove kabeen     # Fedora

Uninstallation stops and disables the package's services, disables automatic restart, stops running agents, deletes the browser policies (the Firefox one only if it has not been modified) and the folders created for them, and removes the SELinux rule. Purging (.deb) or removing (.rpm) also erases /var/lib/kabeen. The managed configuration in /etc/kabeen belongs to you and stays in place, as does each user's data. To delete them as well:

sudo rm -rf /etc/kabeen
# local configuration, state and logs of each user
getent passwd | awk -F: '$3 >= 1000 && $3 < 60000 { print $6 }' | while read -r home; do
  sudo rm -rf "$home/.local/share/Kabeen" "$home/.local/state/Kabeen"
done

Troubleshooting

SymptomWhat to do
GNOME: no usage dataThe extension for the GNOME version must show State: ACTIVE: gnome-extensions info kabeen-focus@kabeen.io (GNOME 45 and later) or kabeen-focus-legacy@kabeen.io (GNOME 40 to 44). After a first installation, log out and back in once. It is normal for the other extension to be OUT OF DATE; if it is the right one, your GNOME version is more recent than those the agent supports.
Wayland (other environments): only some applications are countedThe window manager offers no supported mechanism (COSMIC, Cinnamon on Wayland, Weston…): only XWayland windows are seen. Use an X11 session.
Usage is still counted while the screen is lockedThe screen locker reports the lock neither to logind nor to the desktop (xscreensaver, i3lock, swaylock outside Hyprland): use the one provided by your desktop environment.
The managed configuration is ignoredCheck the agent log: the file and /etc/kabeen must be owned by root and writable by neither the group nor others, the JSON must be valid, and ApiKey, StructureId and TeamId must all be present.
GNOME: no iconInstall and enable the AppIndicator extension (Fedora, Debian), or open the window from the Kabeen launcher.
The agent window stays emptyContact support and attach the output of kabeen launched from a terminal in the session.
The browser extension cannot reach the agentCheck that the browser's native messaging host is installed (/etc/opt/chrome, /etc/chromium, /etc/opt/edge …/native-messaging-hosts/, /usr/lib/mozilla/native-messaging-hosts/ or /usr/lib64/mozilla/native-messaging-hosts/; Brave and Vivaldi read Chrome's folder). Firefox as a snap must have been allowed in the portal prompt; Flatpak browsers are not supported.
No data in Kabeen although the agent is runningCheck outbound 443/TCP traffic to intake.kabeen.io, then the workstation clock (a large time offset makes TLS fail), then connection or certificate errors in the log. Also check that your EDR is not blocking the agent (see Allowing the Kabeen agent in your EDR/antivirus).