> For the complete documentation index, see [llms.txt](https://helpcenter.xopero.com/xopero-one-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.xopero.com/xopero-one-en/deployment-and-configuration/xopero-one-agent/installation-on-linux-and-macos.md).

# Installation on Linux & MacOS

{% tabs %}
{% tab title="Linux" %}

<p align="center"><a href="#prerequisites" class="button primary" data-icon="circle-1">Prerequisites</a>    <a href="#agent_setup" class="button primary" data-icon="circle-2">Installation</a></p>

## Prerequisites

Prior to agent installation, check if your system is meets all the requirements.

{% content-ref url="/pages/sWnNuc32ePz2p4zZ0Rdz" %}
[System requirements](/xopero-one-en/xopero-one-software/software-information/system-requirements.md)
{% endcontent-ref %}

{% content-ref url="/pages/ZO1Ci3C1rUavK5WvO4ld" %}
[Supported platforms](/xopero-one-en/xopero-one-software/software-information/supported-platforms.md)
{% endcontent-ref %}

***

## Installation <a href="#agent_setup" id="agent_setup"></a>

1. Download the **agent** installer (bash script) to your **Linux** system and grant execute permission to the file owner (user or group) using the following `chmod` command:

{% hint style="info" %}
To download the agent installer, login to **Xopero ONE Management Service** using a web browser, then go to **Settings** > **Advanced** > **Workers** and click **Download agent** button. The **Download agent** window will open — click the appropriate agent version to download it.
{% endhint %}

```bash
chmod +x xoperoclient.sh
```

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/oOCTxaEM8RrGJIwarNp9/Granting%20permission%20for%20installer.png" alt="Granting permission for installer"><figcaption></figcaption></figure>

2. Next, run the script using the following command:

```bash
./xoperoclient.sh or bash xoperoclient.sh
```

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/iVrVqhrFVWo3Fa3DeLps/Running%20the%20installer.png" alt="Running the installer"><figcaption><p><em>Running the script along with <strong><code>sudo</code></strong> command</em></p></figcaption></figure>

{% hint style="warning" %}
The above script should be initiated using an account with administrative privileges — because of that it might be required to use the **`sudo`** command simultaneously (as in the above example).
{% endhint %}

3. Accept the **END-USER LICENSE AGREEMENT** to proceed.

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/xy0zznRKgnzmvVO2oYrC/End-user%20agreement.png" alt="End-user agreement"><figcaption></figcaption></figure>

4. Next, enter the IP address in the **Address** field (including the protocol and port) and click **OK** to finish the installation. Your address can be found in **Xopero ONE Management Service** — the system will display it once you start downloading the **agent** installer.

<figure><img src="https://content.gitbook.com/content/0CBTl43C3OO6ySL1DJ6k/blobs/TQWFCat45S2nKLW7gxKt/Xopero%20ONE%20service%20URL%20example.png" alt="Xopero ONE service URL example"><figcaption></figcaption></figure>

5. Now that **Xopero ONE agent** is installed, you can activate it in the **Xopero ONE Management Service** (**XMS**) web panel and start protecting your data.
   {% endtab %}

{% tab title="MacOS" %}

<p align="center"><a href="#installation-mac" class="button primary" data-icon="circle-1">Installation</a>    <a href="#unattended-installation" class="button primary" data-icon="circle-2">Unattended installation</a>    <a href="#permissions-configuration" class="button primary" data-icon="circle-3">Permissions configuration</a></p>

## Installation <a href="#installation-mac" id="installation-mac"></a>

1. Download **Xopero ONE agent** installation wizard via XMS[^1] and run it.

{% hint style="info" %}
To download the **agent** installer, login to **Xopero ONE Management Service** using a web browser, then go to **Settings** > **Advanced** > **Workers** and click **Download agent** button. The **Download agent** window will open — click the appropriate **agent** version to download it.
{% endhint %}

2. Click **Continue** to proceed.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2Fq3AOV7INHmyhXsKPfMgT%2Fimage.png?alt=media&amp;token=af28d44e-7f20-4ce1-889a-e7d92810fd1e" alt=""><figcaption></figcaption></figure>

3. Select **Continue** in the **Read Me** section.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FF74jxz61GMHi1YCdLLYH%2Fimage.png?alt=media&amp;token=2e1489fc-3ceb-40bb-ae0f-9948a36df2ca" alt=""><figcaption></figcaption></figure>

4. Read the **END-USER LICENSE AGREEMENT** and hit **Continue** to accept it.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2Ftnj0iN56cGNH4NxCEkoy%2Fimage.png?alt=media&amp;token=e8007114-8348-4aed-befe-6f8665fc0d2d" alt=""><figcaption></figcaption></figure>

5. Hit **Agree** to accept the terms of the software license agreement.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FYODCWY5DUF2WcMUX4aUH%2Fimage.png?alt=media&amp;token=61f9ee5c-465b-4bc4-8b01-5ed8fe6554c8" alt=""><figcaption></figcaption></figure>

6. Change the installation directory if needed and click **Install** to begin the installation.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FN09gzy0yAgs65Mm1Nt3X%2Fimage.png?alt=media&amp;token=fc0adb23-1da6-4e76-b45e-1436eadc10a4" alt=""><figcaption></figcaption></figure>

7. During the installation process, the creator will ask you for the address of your XMS[^1]— define it in this step.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FzQC9ciLw9mUyuPHBiFEP%2Fimage.png?alt=media&amp;token=39a6a5f8-148c-4892-86c8-ae7d73e9ab17" alt=""><figcaption></figcaption></figure>

8. Click **OK** to confirm your configuration.
9. The **Xopero ONE** agent has been successfully installed— you can close the installation wizard.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FmLK8ND580zVjWgGvEGba%2Fimage.png?alt=media&amp;token=b7d610e8-467a-4db6-b503-68e8bfba52e4" alt=""><figcaption></figcaption></figure>

***

## Unattended installation

If you don't want to use the installation wizard, you can choose the unattended installation option.

1. Download the `xoperoclient.pkg` file to your device.

{% hint style="info" %}
To download the **agent** installer, login to **Xopero ONE Management Service** using a web browser, then go to **Settings** > **Advanced** > **Workers** and click **Download agent** button. The **Download agent** window will open — click the appropriate **agent** version to download it.
{% endhint %}

2. Run the following command in **macOS** terminal (**Applications** > **Utilities** > **Terminal**):

{% code overflow="wrap" %}

```bash
sudo /bin/launchctl setenv "XOPERO_INSTALLER_SERVER_ADDRESS_CONFIG" "https://XMS_adress::28555>" && sudo installer -pkg <pkg_file_location> -target /; sudo /bin/launchctl unsetenv "XOPERO_INSTALLER_SERVER_ADDRESS_CONFIG"
```

{% endcode %}

> **‼️Command overview:**
>
> {% code title="Setting the environment variable with your Xopero ONE Management Service IP address and default port" overflow="wrap" %}
>
> ```bash
> sudo /bin/launchctl setenv "XOPERO_INSTALLER_SERVER_ADDRESS_CONFIG" "https://<XMS_adress::28555>"
> ```
>
> {% endcode %}
>
> {% code title="Launching the installer" overflow="wrap" %}
>
> ```bash
> sudo installer -pkg <pkg_file_location> -target /;
> ```
>
> {% endcode %}
>
> {% code title="Removing environment variables" overflow="wrap" %}
>
> ```bash
> sudo /bin/launchctl unsetenv "XOPERO_INSTALLER_SERVER_ADDRESS_CONFIG"
> ```
>
> {% endcode %}

***

## Permissions configuration

After installation, in a few steps you need to add the necessary permissions for the **Xopero** file.

1. Click on the **Mac** icon in the upper left corner and select **System Preferences...** from the drop-down menu.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2F1NKr9uzwKhWHH2ZDFOpo%2Fimage.png?alt=media&amp;token=4955ec47-f982-4bb5-b9e0-1304997e81b3" alt=""><figcaption></figcaption></figure>

2. Next, go to **Security & Privacy**.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FwRleX13WwnWXog4Rfr2b%2Fimage.png?alt=media&amp;token=23d9c046-01dc-4a03-aabb-307269f27753" alt="" width="517"><figcaption></figcaption></figure>

3. Navigate to the **Privacy** tab, then select **Full Disk Access** from the menu on the left.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FrVviTndret1ANHh5gmfQ%2Fimage.png?alt=media&amp;token=9604ac14-e860-49b2-9449-1996c5a04024" alt="" width="515"><figcaption></figcaption></figure>

4. Add **Xopero.Device.App.app** to the list.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FO3fYAsYB5mxQfu37wASn%2FUntitled-3.png?alt=media&amp;token=a9b2df21-8cad-4914-894d-706469e05bfe" alt=""><figcaption></figcaption></figure>

5. Grant access to **Xopero.Device.App.app** to finish the configuration.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FSiPGbMGJXTXxNGkazcM7%2Fimage.png?alt=media&amp;token=f73dc90c-2e91-48ad-bc31-3b7a862ed198" alt="" width="563"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

To learn how to activate the agent in the Xopero management console, check the *Useful links and items* section.

## Useful links and items

{% content-ref url="/pages/sUUV69SpYVc3DM8CFnms" %}
[Agent configuration](/xopero-one-en/deployment-and-configuration/xopero-one-agent/agent-configuration.md)
{% endcontent-ref %}

[^1]: Xopero ONE Management Service
