# Installing Sherpa Robot Attended on Astra Linux

> Sudo privileges are required for installation

If the Robot is already installed, go to the section [Downloading and Extracting the Robot](#skachivanie-i-raspakovka-robota) for its update.

## Installing .NET Core 8

General installation instructions are provided on the Microsoft website:

{% embed url="<https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian>" %}

{% embed url="<https://docs.microsoft.com/en-us/powershell/scripting/install/install-debian?view=powershell-7.2>" %}

* Download the Microsoft repository for Debian 10:

```
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
```

* Install the Microsoft repository on the system:

```
sudo dpkg -i packages-microsoft-prod.deb
```

* Remove the temporary installation file:

```
rm packages-microsoft-prod.deb
```

* Update the package list:

```
sudo apt-get update
```

* Install the .NET SDK 8.0:

```
sudo apt-get install -y dotnet-sdk-8.0
```

* Install PowerShell:

```
sudo apt-get install -y powershell 
```

## Installing libgdiplus

To enable keyboard and mouse emulation, you need to install the libgdiplus library. To do this, run the following command in the terminal:

```
sudo apt install libgdiplus
```

If you receive a message that the package is not found, you need to add the repository. This can be done in the "Synaptic Package Manager".

```
deb https://dl.astralinux.ru/astra/frozen/2.12_x86-64/2.12.45/repository stable main contrib non-free
```

## Installing tesseract

To work with tesseract, run the following command in the terminal:

```
sudo apt install tesseract-ocr-rus
```

## Installing python

To work with python, run the following command in the terminal:

```
sudo apt-get install -y libpython3.7-dev
```

If the installation finished with an error, you need to install the "Development Tools" packages. This can be done in the "Synaptic Package Manager".

## Downloading and Extracting the Robot

**Run the following commands in the terminal:**

* Remove the file sherpa-robot.zip:

```
rm -f sherpa-robot.zip
```

* Download the file sherpa-robot.zip:

```
wget https://sherparpa.ru/downloads/linux/get.php -O sherpa-robot.zip
```

* Extract the ZIP archive:

```
unzip -o sherpa-robot.zip
```

* Go to the sherpa-robot folder and set executable permissions on the files:

```
cd sherpa-robot && chmod +x Chrome/process-agent-host && chmod +x process-agent && chmod +x sherpa-assistant && cd ../
```

> To update the Robot to the latest version, you can enter this command in the terminal. It combines all the commands described above: `rm -f sherpa-robot.zip && wget https://sherparpa.ru/downloads/linux/get.php -O sherpa-robot.zip && unzip -o sherpa-robot.zip && cd sherpa-robot && chmod +x Chrome/process-agent-host && chmod +x process-agent && chmod +x sherpa-assistant && cd ../`

* Launch Sherpa Assistant:

```
./sherpa-robot/sherpa-assistant
```

* From the file manager, go to the sherpa-robot folder and create a shortcut to the sherpa-assistant file.

## Installing Yandex Browser

To work with the Robot in Yandex Browser, you need to install a plugin. To do this:

* Open the browser and go to the "Extensions" section.
* Navigate to the folder with the installed Robot:

```
/home/user/sherpa-robot
```

* Go to the Chrome folder:

```
/home/user/sherpa-robot/Chrome
```

* Drag the file plugin.crx into the browser window.
* Add the extension and close the browser.
* Open a terminal window in the current folder. Run the following commands:

  * Make the install\_host.sh script executable:

  `chmod +x install_host.sh`

  * Run the install\_host.sh script:

  `./install_host.sh`
* Launch the browser.

If the Sherpa RPA plugin icon has turned blue, the plugin has been successfully installed.

The plugin can also be installed from the website:

{% embed url="<https://chrome.google.com/webstore/detail/sherpa-rpa/bdnlfnchnkjeempadnmcgbbkbacffobl>" %}

After that, you need to perform steps 3, 4, 5, 6, and 7.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-orchestrator/razvertyvanie-platformy-pod-upravleniem-orkestratora/ustanovka-sherpa-robot/ustanovka-sherpa-robot-attended-na-linux/ustanovka-sherpa-robot-attended-na-astra-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
