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

# Install Deka Agent on Linux

To be able to install Deka Agent on a virtual machine (vm)  with the Linux operating system, make sure you have created a virtual machine (vm)  in the Instance menu in the Cloudeka portal service. The following are the steps for installing Deka Agent on the Cloudeka portal service virtual machine (vm)&#x20;

* Log in to the Cloudeka portal service using your account.

<figure><img src="https://lh7-us.googleusercontent.com/50ifXdAoQEJ3q2mbclwZc5LhfpaTGaJWGheakggqu8D6_piaDhAP46sLlbkF0KNVstcDCEk7RbJNua5cjJFLf-PuYCexafhiHkxk6CehiNncLN2SbSmjR07OVPJSmX-bQPFTTqsd-S3LjYLTcKqg_5E" alt=""><figcaption><p>Sign In Cloudeka Portal Service</p></figcaption></figure>

* Select the Instance menu on Deka Flexi.

<figure><img src="https://lh7-us.googleusercontent.com/g1t_Xsj7hBw_qXe1UhRGXL3PPopRi2xFYuxWTCpU9d3KqTVVfRNLB0STQUY4j81vNAmdk9al9TPbOmiNbxONn6Mu0AayBpb4QUHmlknV-kR7hlo0C8tewqlOga1fDRYcqk6FdNViem0P-CWot-WG6o4" alt=""><figcaption><p>Menu Instance</p></figcaption></figure>

* Select the name of the virtual machine (vm)  on the instance where Deka Agent will be installed.

<figure><img src="https://lh7-us.googleusercontent.com/J6hcA2Hk0fIMCvv8nEkYG9ww1LMjscz-BU3r80tmuwxCkg9T3CiW_guVWypLLw0WJVmmxWezVpq-U4k1j34XjBHZuekfUcJpx9kCyGfBqbS2qTqIEVPmpYNByVJI2EIAJkH_yGb013rIoOy8PdcQRLk" alt=""><figcaption><p>nstance Details</p></figcaption></figure>

* On the Instance Detail page several menus appear, one of which is the Deka Agent menu.

<figure><img src="https://lh7-us.googleusercontent.com/IWhLlynZTGJGm7U_Xc9AwnLBWK-hRQhZUOHeXqCGR_5WrUVdUPHvhzt_jsushCGqovzbGl435tqWtD2dGW_h1Nfk4rocUWzEaovK41pdcWIBDjKFJX95EoLbnY0z19XxHvyHAxrHeK5eOHOBDJHUrJ4" alt=""><figcaption><p> Instance Details</p></figcaption></figure>

* Open the console by pressing the Open Console button.

<figure><img src="https://lh7-us.googleusercontent.com/nTqLdA9gVFFlm0OUkapFYPUfd-yjsESDCAOY4_0mOoZQ12VegsPSg3ZyiTAZF89QeZEAqSS6yUvC8KIBNyX1hiVoDU-sH3YxlQ50MFap1GSrGS3lc677CE2JZ7HNJv04Wk_w75C9KSZu7n3YJ3fApNs" alt=""><figcaption><p>Open Console</p></figcaption></figure>

* Enter the username and password used to log in to the virtual machine (vm) .

<figure><img src="https://lh7-us.googleusercontent.com/4ZQS1-u4U0OOYs8PA4U0GWa4mpuI0EitfEnO8MbZxWCiVVo0amPef6xi7ajC94eSpZSoKILDIF1ilKXXP_Qx4C0mZfhKSnXqZmpm6aCyvN7br0TpqXXWetoQTnGvJd0B7zPnqcyADZ3wk1fvBXrCoZE" alt=""><figcaption><p> Access Console - Login</p></figcaption></figure>

* After successfully logging into the virtual machine (vm) , return to the Deka Agent menu on the Instance Detail page on 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
```

<figure><img src="https://lh7-us.googleusercontent.com/6C1kvSCRDM6hBD0MsPugVX_Axl2jTXJ0VzK3Wul0jdGRn-qOxnzAKjNqSHWuvsNZ1xvn11OngG4PUOPfm9dhOzpsr_oeIr03S-JQk8SM6R2DIVIV1u47xZBwrpj1OvEniXxxPmAa5qs-BgTX5SrcKO8" alt=""><figcaption><p>Access Console - Login</p></figcaption></figure>

* The initial step to install Deka Agent on a virtual machine (vm)  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
```

<figure><img src="https://lh7-us.googleusercontent.com/cQaEalCt7ePjEfyW49OLHzuk0ImD34Bj_yDfhARsdF_RBo27mkuP65ER5KfKkXFliNvWRHzqDmlAesDS8oIeeT9WltUK1Yisr2jXPpqr69qZAC_VZ_N_QUzX7q3YlsjZNF5vmQKJ9jbVkEtRO9ZaNHI" alt=""><figcaption><p>Access Console - Download Deka Agent</p></figcaption></figure>

* Wait until the download is complete100% and to ensure that the Deka Agent file download process has information‘deka-agent’ saved.

<figure><img src="https://lh7-us.googleusercontent.com/CR3Yk4Ff-x0Mlz5KgAUnLHgr4vqyKZu5hGsWDa0__nIv7X9adDYPjFBekZipYDNPGD9Q8B4EzOuQFEjZtlsCoUhSZLPHEqwxiyU_8SJ6h9bVAnlxFxKJQWqOwPSq-54xj9wezReIxLgFaUDOv8FHezQ" alt=""><figcaption><p>Access Console - Download Deka Agent Success</p></figcaption></figure>

* After successfully downloading, the next step is to change the execution permissions on the Deka Agent file so that the Deka Agent file can be run as a program, by entering the following syntax:

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

<figure><img src="https://lh7-us.googleusercontent.com/siXfZklv5PsfhoNjVeqyde31B8X4afP3cQ6vgpOtAHQUPp6RfQBP8xIW5-tznjw4QUdZsPSt6DkZ6XvBYCCE7aztqhHqrUxCARdmmrLU2XC_2lnHtYxhRkzugv8bJI5ejDsFjt4DdLxo90_a2b2J2SU" alt=""><figcaption><p>Access Console - Access file Deka Agent</p></figcaption></figure>

* After giving access to the Dekdea Agent file, the next step is to install Deka Agent on the virtual machine (vm)  by entering the following syntax.

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

<figure><img src="https://lh7-us.googleusercontent.com/ecFeYRoOaEClzqKyOsbFCfDAzSgHrRqUc5t7wdu0Zll1i67ZReaqaD6Vfhxmr2lP5ir_viy30-6alPJrHirnAwKPUYBbUMDhqvrdkU4Dk_o9prk7ktaXNQLE87A27nOaQJVfpTsC6qs617x9AS43FSk" alt=""><figcaption><p>Access Console - Install Deka Agent</p></figcaption></figure>

* The available Deka Agent files are already available in the directory/usr/local/bin/deca-agent. If the installation process is complete, a message will appear“Deka Agent reloaded successfully”.

<figure><img src="https://lh7-us.googleusercontent.com/UQrMjs9Hf0p0Ih6GtPvytgMiSHSO9JB-Q2LqTmJ-HXDnv8VngS1bhsUZJeZJzIDWOYSb3a7jSzDeDf6vyoo8XSvIAtRQF_oU7KVi8qJCXqMrtxQ5Sb3nT50WE-eCFo4nhbHhdR7nvDqqtYSt_RewlBM" alt=""><figcaption><p>Access Console - Success Install Deka Agent</p></figcaption></figure>

* To view the status of the Deka Agent being used, enter the command syntax below.

```
systemctl status deka-agent
```

<figure><img src="https://lh7-us.googleusercontent.com/KVofG3Qm3ngsg9k7qmA1N7Ja9VnCJHfDgGRUAj5QzEBgWXD_jd-6bpFVb7yQ_ocqdFLC5moPPlmADEIsAH6vfTAOQYnAiVt5eOeT_mmJY5de28PnDohfij7GzMLTzlHwqLFQ-X75ngx6zJgfktYvS3w" alt=""><figcaption><p>Access Console - Status Deka Agent</p></figcaption></figure>

* After entering the syntax above, the status information "active” from the Deka Agent service on the virtual machine (vm) .

<figure><img src="https://lh7-us.googleusercontent.com/_giv0ZH4iJSR_mjqgbcrdyn1u3ITZu6s_wkkeC9Sl63BLlrSJ_0X-AGK7Ns0xvogRkpVQC-CgoQQYGbi74D_TxxPAEJzGGDFkLk1WiSXocIFXkrBiAZfBXJCzRXqiL_qvuvcNsragv0_H00C_LxsR7w" alt=""><figcaption><p>Access Console - Status Deka Agent</p></figcaption></figure>

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

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

<figure><img src="https://lh7-us.googleusercontent.com/8Q6OBcuOUYcCSle67EJu5FBeGyNoHvpVx-5U17Kv5YoEbBjcNZ5J1JGKCtULZdb9XT1yxZKS5eTEDrXaw4tVplBtk59XQUfOaflIUX-xz7VLnQeRJ3ZgaEqAEkCmhrObq6AIN4EsjQXYayIcCu7_rEs" alt=""><figcaption><p>Access Console - Deka Agent Monitoring</p></figcaption></figure>

* Response results “active” means that the deka agent monitoring service is already running on the virtual machine (vm) .

<figure><img src="https://lh7-us.googleusercontent.com/Qy8pj7LDPv6XXQZA1Eh767yR473Rx755HFdbf6XSIfb3oQ4pvIpLKhu1IZ9lC-qdw95ZzIH8Qc0uBQ6bxXiOww_dDE10i1c6uoMkiBQsLgJkkVFQp40c6Z9D-3RuTe-Lo6MxJXViVfgtWc55DzXM6CI" alt=""><figcaption><p>Access Console - Status Deka Agent Monitoring</p></figcaption></figure>
