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
| Use | File | Written by |
|---|---|---|
| A fleet (managed) | /etc/zeuslock/agent.conf — KEY=VALUE lines | The playbook or the install script below |
| One machine | /etc/zeuslock-dlp/config.json | Install 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) orinstall-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-passExpected: 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.debExpected: 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-protectionExpected: 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
- The user signs out and in: the agent starts at login for every user.
- Linux asks for an administrator password to trust the ZeusLock DLP Proxy CA certificate (once per user account).
- Browser →
https://chatgpt.com→ sendMy 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’sscript: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
| Problem | Fix |
|---|---|
| Tray shows Configuration not readable - ask your administrator | The user is not in the zeuslock group: sudo usermod -aG zeuslock USERNAME, then sign out and in. |
| No ZeusLock icon after login | Run zeuslock-ai-data-protection in a terminal to see the error. The agent needs a graphical session. |
| "Your connection is not private" on AI sites | The certificate was not trusted. Run the Linux line from the certificate fix in Install without GPO or MDM. |
| No internet after the agent was killed | On 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