> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/deka-flexi/deka-agent/install-deka-agent-on-linux.md).

# Install Deka Agent on Linux

To install Deka Agent on a Virtual Machine (VM) running the Linux operating system, ensure that you have already created a VM in the **Instance** menu on the Service Portal AI. The following are the steps to install Deka Agent on a VM in the Service Portal AI..

* Select the **Instance** menu on Deka Flexi.

<figure><img src="/files/cLt4l3NMa90OtB8SWjKM" alt=""><figcaption></figcaption></figure>

* Select the name of the Virtual Machine (VM) where Deka Agent will be installed.

<figure><img src="/files/9GbrCKFArb7IpGqQ1UWl" alt=""><figcaption></figcaption></figure>

* On the **Instance Detail** page, several menus are displayed, including the **Deka Agent** menu. Open the console by clicking the **Open Console** button.

<figure><img src="/files/ozBJhaHkzod7xuy9ui7l" alt=""><figcaption></figcaption></figure>

* Enter the username and password used to log in to the Virtual Machine (VM).

<figure><img src="/files/Fwiv9oSNEo37qUTuI9qs" alt=""><figcaption></figcaption></figure>

* After successfully logging in to the Virtual Machine (VM), return to the **Deka Agent** menu on the **Instance Detail** page in the Cloudeka Portal service. There are five lines of syntax used to install Deka Agent on a Virtual Machine (VM).

```
$ wget https://bucket.cloud.lintasarta.co.id:8082/deka/agent/deka-agent
$ chmod +x deka-agent
$ ./deka-agent install
$ systemctl status deka-agent
$ systemctl status deka-monitoring-agent.service
```

(input gambar disini)

* The first step in installing Deka Agent is to download the Deka Agent file from the Lintasarta bucket address by entering the following syntax.

```
wget https://bukcet.cloud.lintasarta.co.id:8802/deka/agent/deka-agent
```

* Wait until the download reaches **100%**. To ensure the download is successful, confirm that the **deka-agent** file has been saved.

* After the download is complete, change the execution permission of the Deka Agent file so it can be run as a program by entering the following syntax.

```
chmod +x deka-agent
```

* After granting execution access to the Deka Agent file, install Deka Agent on the Virtual Machine (VM) by entering the following syntax.

```
 ./deka-agent install
```

* The Deka Agent file will be available in the directory **/usr/local/bin/deka-agent**. If the installation process is successful, the message **Deka Agent reloaded successfully** will appear.

* To check the status of the Deka Agent service, enter the following command syntax.

```
systemctl status deka-agent
```

* After entering the syntax, the status **active** will appear if the Deka Agent service is running on the Virtual Machine (VM).

* To monitor the Deka Agent monitoring service, enter the syntax below.

```sh
  systemctl status deka-monitoring-agent.service
```

* A response showing **active** indicates that the Deka Agent monitoring service is running on the Virtual Machine (VM).
