# Installing On Linux

### First steps

1. Upload the aft-extensions-manager-linux binary to your linux system.&#x20;
2. Copy the binary to /usr/local/share/aft-extensions-manager/

### Run as systemd service

#### 1. Create a Unit file to define a systemd service:

```
vim /lib/systemd/system/aft-extensions-manager.service
```

<pre><code><strong>[Unit] 
</strong>Description=ExtensionsManager
After=network.target

[Service] 
User=root
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/share/aft-extensions-manager/aft-extensions-manager-linux
Restart=always

[Install]
WantedBy=multi-user.target
</code></pre>

{% hint style="info" %}
In the example above: Change the WorkingDirectory, User and ExecStart
{% endhint %}

This defines a simple service. The critical part is the `ExecStart` directive, which specifies the command that will be run to start the service.

#### 2. Copy the unit file to /etc/systemd/system and give it permissions:

```
sudo cp /lib/systemd/system/aft-extensions-manager.service /etc/systemd/system/aft-extensions-manager.service
sudo chmod 644 /etc/systemd/system/aft-extensions-manager.service
```

#### Start the Service

1\. Once you have a unit file, you are ready to test the service:

```
sudo systemctl start aft-extensions-manager
```

2\. Check the status of the service:

```
sudo systemctl status aft-extensions-manager
```

If the service is running correctly, the output should resemble the following:

![](https://appsfortableau.infotopics.com/wp-content/uploads/2023/10/running-as-service.png)

Here you can also find the port the application is running on. In this example it is 38209. You can start the installation by going to the ip of the server:port.&#x20;

In our example: <http://34.122.12.43:38209>

If you already have the DNS record pointed to this IP you can also go to: [http://yourdomain.com:port](https://docs.infotopics.com/extensionsmanager/installation-guide/http:/yourdomain.com:port)

Note that we do not use **https** yet as this is configured in the installation later.

#### 3. The service can be stopped or restarted using standard \`systemd\` commands:

```
sudo systemctl stop aft-extensions-manager
sudo systemctl restart aft-extensions-manager
```

#### 4. Finally, use the enable command to ensure that the service starts whenever the system boots:

```
sudo systemctl enable aft-extensions-manager
```

Created symlink from /etc/systemd/system/multi-user.target.wants/aft-extensions-manager.service to /lib/systemd/system/aft-extensions-manager.service.

#### 5. Whenever you reboot check the status of the service:

```
sudo systemctl status aft-extensions-manager
```

You should see that the service logged its start time immediately after booting:

![](https://appsfortableau.infotopics.com/wp-content/uploads/2023/10/running-as-service.png)
