هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.
Linux
Packages are available as .deb (Debian, Ubuntu) and .rpm (RHEL, Fedora, SUSE) for x86-64. They install:
/usr/bin/dexwize-agent;- the systemd unit
dexwize-agent.service, which starts only once/etc/dexwize/agent.jsonexists.
Download and verify
Download the package from Devices → Install agent. Check it before you install or mirror it (see download and verify the package):
echo '<sha256-from-the-portal> dexwize-agent_<version>_amd64.deb' | sha256sum -c -
dpkg-sig --verify dexwize-agent_<version>_amd64.deb # Debian and Ubuntu
rpm -K dexwize-agent-<version>-1.x86_64.rpm # RHEL, Fedora, SUSE (import the NewTurn signing key first)
Create an enrollment code in Devices → Install agent (or Settings → Enrollment tokens).
Install
sudo apt install ./dexwize-agent_<version>_amd64.deb # Debian and Ubuntu
sudo dnf install ./dexwize-agent-<version>-1.x86_64.rpm # RHEL and Fedora
Configure and enroll
One command enrolls the device and starts the service. Devices → Install agent shows it with your code filled in:
sudo dexwize-agent enroll <enrollment-code>
It writes /etc/dexwize/agent.json (mode 600) when it does not exist, enrolls, enables and starts dexwize-agent, and prints the outcome in words; it exits with a non-zero status when enrollment fails (for example an expired code or a wrong clock), with the reason. The offline buffer lives under /var/lib/dexwize, the service's state directory; /etc is read-only to the service. Use your configuration management tool (Ansible, Puppet, Salt) to run the same command.
Agents before 0.3.1 need the configuration written by hand:
sudo install -d -m 700 /etc/dexwize
echo '{"tenant_id":"<tenant-id>","buffer_dir":"/var/lib/dexwize/buffer","server_url":"<server-url>"}' \
| sudo tee /etc/dexwize/agent.json >/dev/null
sudo chmod 600 /etc/dexwize/agent.json
sudo dexwize-agent --config /etc/dexwize/agent.json --enroll '<enrollment-token>'
sudo systemctl enable --now dexwize-agent
Device key
Where /dev/tpmrm0 and systemd-creds (systemd 250 or later) are available, the device key is sealed by the TPM. Otherwise it is stored in a root-only key file.
Check a device
systemctl status dexwize-agent
journalctl -u dexwize-agent -n 50
The device appears in Devices within five minutes of its first heartbeat.