Deploy the agent on Linux (Ansible or script)

Roll the ZeusLock agent out to Ubuntu desktops with Ansible or a script: install the .deb, write /etc/zeuslock/agent.conf, then test. Which config file to use and how to remove it.

This guide installs the ZeusLock agent on Ubuntu desktops (GNOME, amd64 or arm64) with the Ansible playbook or the install script from the public deployment repository. The agent runs in each user’s desktop session; it is not meant for servers without a desktop.

Which configuration file

UseFileWritten by
A fleet (managed)/etc/zeuslock/agent.conf — KEY=VALUE linesThe playbook or the install script below
One machine/etc/zeuslock-dlp/config.jsonInstall without GPO or MDM

Use one of them, not both. If both exist, /etc/zeuslock/agent.conf wins when it holds a LicenseKey.

Before you start

  • Ubuntu Desktop (24.04 tested) with GNOME, amd64 or arm64.
  • Dashboard → Agents → Download Agent → Linux → .deb (amd64) or .deb (arm64).
  • Dashboard → API Keys → + Create a key → copy the key (zl_…).
  • From the deployment repository: zeuslock-agent.yml (Ansible) or install-zeuslock-agent.sh (one machine).

Step 1 — Deploy with Ansible

Set the values in the playbook’s vars: block, then run it from the control node. Put the target hosts in the [zeus_endpoints] group of inventory.ini.

vars:
  zeus_server_url: "https://api.zeuslock.ai"
  zeus_license_key: "zl_YOUR_ORGANISATION_KEY"   # keep it in Ansible Vault
  zeus_deb_src: "./zeuslock-desktop-agent_1.0.46_amd64.deb"
ansible-playbook -i inventory.ini zeuslock-agent.yml --ask-become-pass

Expected: the play ends with no failed task. It installs the package, writes /etc/zeuslock/agent.conf readable only by the desktop users (group zeuslock), and adds them to that group.

Or: one machine with the script

sudo bash install-zeuslock-agent.sh ./zeuslock-desktop-agent_1.0.46_amd64.deb

Expected: it asks for the key (hidden input) and ends without an error.

Step 2 — Check a machine

dpkg -l zeuslock-desktop-agent
sudo cat /etc/zeuslock/agent.conf
pgrep -fl zeuslock-ai-data-protection

Expected: the package is listed, the file shows ServerUrl and LicenseKey, and once a user is signed in the agent process is listed.

Step 3 — First login and test

  1. The user signs out and in: the agent starts at login for every user.
  2. Linux asks for an administrator password to trust the ZeusLock DLP Proxy CA certificate (once per user account).
  3. Browser → https://chatgpt.com → send My card is 4111 1111 1111 1111.

Expected: a ZeusLock window asks what to do. The incident appears under Incidents, the machine under Agents.

Managed machines

With the key in /etc/zeuslock/agent.conf, the agent is managed: no Quit in its menu, and if it stops it is started again while browsers wait for it. To let the network come back instead, add the line ManagedUncleanStop=restore-network.

Update and removal

  • The agent does not update itself: run the playbook again with the new .deb.
  • New user on a machine: add them to the group and they sign in again: sudo usermod -aG zeuslock USERNAME
  • To remove: run the removal script uninstall-zeuslock-agent.sh on each machine (sudo bash uninstall-zeuslock-agent.sh; for a fleet, Ansible’s script: module). It removes the package, the settings, the certificate trust and the browser and Firefox policies. Removing only the package (apt remove) gives the network back but leaves the certificate trust, the browser policies and the settings in place. The GNOME proxy comes back and the login item is removed either way.

Known limits

  • Ubuntu (.deb) only; RPM-based distributions are not supported.
  • Only the GNOME proxy setting is used; KDE’s own proxy setting is not.
  • Codex on Linux is not checked.

If something fails

ProblemFix
Tray shows Configuration not readable - ask your administratorThe user is not in the zeuslock group: sudo usermod -aG zeuslock USERNAME, then sign out and in.
No ZeusLock icon after loginRun zeuslock-ai-data-protection in a terminal to see the error. The agent needs a graphical session.
"Your connection is not private" on AI sitesThe certificate was not trusted. Run the Linux line from the certificate fix in Install without GPO or MDM.
No internet after the agent was killedOn a managed machine the agent is started again within about 3 minutes. To start it now, run zeuslock-ai-data-protection in the user session.

See also: Agent configuration reference · Verify and troubleshoot the agent · Use the agent behind a corporate proxy