Skip to content

Installation on Linux (in Asset Mode)

Mode: Asset. Supported: Debian-based distributions (the architecture dpkg reports) and RPM-based distributions (amd64). Tested: Ubuntu 21.10, 22.04, 23.04, Debian Bullseye 11 and newer versions, Rocky 8, Rocky 9. For the Client Mode, see the desktop client and the terminal client.

Asset Mode means that services (like SSH, HTTPS, remote desktop, etc) can be remotely accessed from an XplicitTrust client, or from another system running in Asset Mode.

TL;DR

Debian-based:

ARCH=$(dpkg --print-architecture)
wget https://dl.xplicittrust.com/xtna-agent_${ARCH}.deb
sudo apt -y install ./xtna-agent_${ARCH}.deb
sudo /usr/sbin/xtna-util -domain <tenant domain> -token <token>

Without a token, use sudo /usr/sbin/xtna-util -user <XplicitTrust admin email address> and authenticate in the browser. See Registration methods.

Before you start

  • You can use sudo. See Requirements.
  • Outgoing TCP 443 is allowed, and UDP 51820-60000 for direct connections.
  • We do not recommend Ubuntu 20.04 or earlier as an asset: there is no fix for CVE-2024-26950, and a WireGuard change has not been backported, which can lead to instability. See Requirements.
  • You have an administrator account of your tenant, or an Asset Creation Token.

Install

We support both Debian-based and RPM-based Linux distributions.

To install the XplicitTrust agent, run:

[ "$EUID" -ne 0 ] && SUDO=/usr/bin/sudo
$SUDO apt update
$SUDO apt -y install wget
ARCH=$(dpkg --print-architecture)
wget https://dl.xplicittrust.com/xtna-agent_${ARCH}.deb
$SUDO apt -y install ./xtna-agent_${ARCH}.deb

To install the XplicitTrust agent, run:

[ "$EUID" -ne 0 ] && SUDO=/usr/bin/sudo
$SUDO dnf check-update
$SUDO dnf install -y wget
wget https://dl.xplicittrust.com/xtna-agent_amd64.rpm
$SUDO dnf install -y ./xtna-agent_amd64.rpm

Register

Use one of the methods on Registration methods: sudo /usr/sbin/xtna-util with -user, -token or -import. The xtna-util reference lists all flags.

Verify

Run xtna-util -status and xtna-util -service-status, and look for the asset as Online in the Admin Console. See Verify your installation.

Next

Remote desktop applications

A gateway asset that serves remote desktop applications of a portal needs guacd. You install nothing for it: the agent downloads it from dl.xplicittrust.com when the first remote desktop application reaches the asset, and updates it with the agent. For what it needs and how it behaves, see Requirements of the remote desktop page. The same applies to the asset container image.

guacd runs as an account of its own, guacd. The deb and rpm packages create it. With a tar.gz install, create it yourself; until then the console shows that the gateway asset cannot serve remote desktop applications:

sudo useradd -r -U -M -d /var/empty -s /sbin/nologin guacd
Without internet access

Either mirror the file the agent downloads, or install guacd by hand.

Mirror the file. The agent log names it:

journalctl -u xtna-service | grep 'downloading guacd'

Serve it from a host the asset reaches and point the agent to it. The agent still checks the checksum, so only the exact file is accepted:

sudo systemctl edit xtna-service
# add:
# [Service]
# Environment=XTNA_GUACD_BUNDLE_URL=https://mirror.example.com/xtna-guacd_1.6.0-1_amd64-0123456789ab.tar.gz
sudo systemctl restart xtna-service

Install guacd by hand. Copy the newest bundle, https://dl.xplicittrust.com/xtna-guacd_amd64.tar.gz (or _arm64), to the asset and unpack it to /opt:

sudo tar -xzf xtna-guacd_amd64.tar.gz -C /opt
/opt/xtna-guacd/sbin/guacd -v

The agent uses an /opt/xtna-guacd installed this way as it is and never replaces it, so updating it is up to you: unpack the newer bundle the same way, after removing the old directory. The console shows it as installed by hand. A bundle unpacked before VNC support has no VNC plugin: the console then reports VNC as missing for the asset until you unpack the current bundle.

Troubleshooting

  • Virtual machines and containers (Docker, Podman, LXC, ...) work. For containers, the host's Linux kernel (version 5.6 or newer) must support WireGuard.
  • Templates and clones of virtual machines and containers must not include the directory /etc/XplicitTrust/ and the file /etc/xt-machine-id: each instance must have its own identity. xtna-util -reset-host-id resets the identity of a machine that was already registered.
  • If the registration fails or the agent does not get Online, see the network requirements.

See also