
# Install on Linux

Install Device Protection on a single Linux laptop or workstation, your own or a test device. The command from the Noon dashboard picks the right package for the distribution, installs it, and connects the device to your workspace.

On the device, Device Protection appears as `aikido-endpoint-protection`.

## Prerequisites

* A supported distribution:
  * **Ubuntu**: 22.04 LTS, 24.04 LTS, or 26.04 LTS.
  * **Debian**: 12 or 13.
  * **Red Hat Enterprise Linux, Rocky Linux, AlmaLinux, or Oracle Linux**: 9 or 10.
  * **CentOS**: Stream 9 or Stream 10.
  * **Amazon Linux**: 2023.
* Root access on the device.
* systemd, which runs the Device Protection service.
* An amd64 (`x86_64`) or arm64 (`aarch64`) device. Run `uname -m` to check.
* Linux kernel 5.11 or later. Run `uname -r` to check.

## Install with one command

{% stepper %}
{% step %}
### Copy the install command

1. Go to the [Noon dashboard](https://app.noon.security/devices) and click **Connect Device**.
2. Click **Manual install**.
3. Choose the [user group](https://help.noon.security/protect/device-protection/manage-devices/user-groups-for-device-protection) the device should join.
4. Copy the **Linux install command**.
{% endstep %}

{% step %}
### Run the command on the device

Paste the command in a terminal on the device and run it. It asks for your password because the install runs as root.
{% endstep %}

{% step %}
### Open a new login shell

Open a new login shell, or restart the device. Shells that were open during the install don't trust the Device Protection certificate yet, so Node.js and uv show certificate errors there.
{% endstep %}

{% step %}
### Check that it works

1.  Check that the service is running:

    ```shell
    systemctl status aikido-endpoint-protection
    ```
2. Confirm the device appears with an *Active* status in the [Noon dashboard](https://app.noon.security/devices).
{% endstep %}
{% endstepper %}

## Install the package by hand

Download the package yourself when the device can't run the install command, for example when it can't reach the download location. Pick the package for the distribution and the result of `uname -m`, then install it with your token.

{% tabs %}
{% tab title="Ubuntu and Debian" %}
Download [EndpointProtection-amd64.deb](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-amd64.deb) or [EndpointProtection-arm64.deb](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-arm64.deb), then install it:

{% code overflow="wrap" %}
```shell
sudo AIKIDO_TOKEN=<your-token> apt install ./EndpointProtection-amd64.deb
```
{% endcode %}
{% endtab %}

{% tab title="RHEL, Rocky Linux, and CentOS" %}
Use the `el9` build on version 9 and the `el10` build on version 10. Amazon Linux 2023 takes the `el9` build.

* **Version 9**: [EndpointProtection-amd64.el9.rpm](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-amd64.el9.rpm) or [EndpointProtection-arm64.el9.rpm](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-arm64.el9.rpm)
* **Version 10**: [EndpointProtection-amd64.el10.rpm](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-amd64.el10.rpm) or [EndpointProtection-arm64.el10.rpm](https://github.com/AikidoSec/safechain-internals/releases/latest/download/EndpointProtection-arm64.el10.rpm)

{% code overflow="wrap" %}
```shell
sudo AIKIDO_TOKEN=<your-token> dnf install ./EndpointProtection-amd64.el9.rpm
```
{% endcode %}
{% endtab %}
{% endtabs %}

The package reads the token while it installs, then starts the service. Keep the `./` before the file name, or the package manager looks for the package in your repositories instead. Then open a new login shell and check that it works, as in the steps above.

## Update Device Protection

Install the newer package over the old one with the same command. The device keeps its place in your workspace, so you don't need the token again.

## Troubleshooting


On the device, Device Protection appears as `aikido-endpoint-protection`.

| Problem | Fix |
| ------- | --- |
| The package installs but the device never appears in the dashboard | The token wasn't set for the install command. Set `AIKIDO_TOKEN` on the same command, then install the package again |
| `apt` or `dnf` looks for the package in your repositories instead of installing the file | Pass a path, not a name: `apt install ./EndpointProtection-amd64.deb`. The leading `./` makes the package manager treat it as a local file |
| The install fails on a Red Hat-family device | Match the build to the major version: the `el9` package on version 9, the `el10` package on version 10 |
| The service is not running | Run `systemctl status aikido-endpoint-protection`, then `sudo aikidoctl diagnostics` to send the details to support |
| Node.js or uv still show a certificate error | Shells that were open during the install don't pick up the certificate. Open a new login shell or restart the device |
