# Install Anon using the apt repository

## Supported platforms <a href="#supported-platforms" id="supported-platforms"></a>

| Platform | x86\_64 / amd64                                     | arm64                                               |
| -------- | --------------------------------------------------- | --------------------------------------------------- |
| Debian   | [✅](https://docs.docker.com/engine/install/debian/) | [✅](https://docs.docker.com/engine/install/debian/) |
| Ubuntu   | [✅](https://docs.docker.com/engine/install/ubuntu/) | [✅](https://docs.docker.com/engine/install/ubuntu/) |

### **Set up anon's** `apt` **repository:**

```sh
. /etc/os-release
sudo wget -qO- https://deb.en.anyone.tech/anon.asc | sudo tee /etc/apt/trusted.gpg.d/anon.asc
sudo echo "deb [signed-by=/etc/apt/trusted.gpg.d/anon.asc] https://deb.en.anyone.tech anon-live-$VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/anon.list
```

### **Install the anon packages**

```sh
sudo apt-get update
sudo apt-get install anon
```

### **Default paths and files**

The Configuration file `/etc/anon/anonrc` is the primary file where the relay is configured based on your preference.  Go to the Anon Manual to read about all the available parameters, but keep in mind that some are still under development.&#x20;

{% hint style="warning" %}
Remember to add the [**MyFamily**](../../../../sdk/native-sdk/man-anon-manual#myfamily-fingerprint-fingerprint-1) parameter if you are operating more than one Relay.
{% endhint %}

#### Example anonrc

This is an example from a typical `anonrc` configuration for a middle Relay setup:

```sh
Log notice file /var/log/anon/notices.log
ORPort 9001
ControlPort 9051
ExitRelay 0
Nickname MyRelayNickname   # Between 1-19 characters, only [a-zA-Z0-9] and no spaces.
ContactInfo <me@ianon.who>
```

#### Anon Data Directory

The [Data Directory](../../../../sdk/native-sdk/man-anon-manual#datadirectory-dir) `/var/lib/anon/` contains the`keys` folder with the Identity Keys that generates the Relays fingerprint, backup or restore these keys to migrate a relays fingerprint.
