# Installing Sherpa RPA on Astra Linux

> Sudo privileges are required for installation.

## 1. Installing .NET 8.0 <a href="#docs-internal-guid-f9793f2b-7fff-a245-1b5d-b6830db76dae" id="docs-internal-guid-f9793f2b-7fff-a245-1b5d-b6830db76dae"></a>

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>" %}

**Run in the terminal:**

* Download the configuration file:

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

* Install the package:

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

* Remove the file:

`rm packages-microsoft-prod.deb`

* Update the package list:

`sudo apt-get update`

* Install .NET SDK 8.0:

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

* Install PowerShell:

`sudo apt-get install -y powershell`

A message will appear: “Installation finished successfully”.

## 2. Enabling Transparency for Selector Highlighting

Launch the "fly-admin-center" control panel. Go to the "Fly Design" section:

Go to the "Effects" tab and ensure that the two parameters "Composite Manager" and "Transparency" are enabled.

## 3. Setting Up the libgdiplus Library

To enable keyboard and mouse emulation, install the libgdiplus library.

**Run 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`

## 4. Installing Tesseract

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

`sudo apt install tesseract-ocr-rus`

If you plan to use Tesseract OCR or the automatic page rotation recognition feature in the Template Designer, perform the following steps to improve result quality:

* Download the archive

`wget` [`https://sherparpa.ru/downloads/traineddata.zip`](https://sherparpa.ru/downloads/traineddata.zip) `-O traineddata.zip`

* Unzip it to the folder

`sudo unzip -o traineddata.zip -d /usr/share/tesseract-ocr/4.00/tessdata`

## 5. Installing Python

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

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

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

## 6. Downloading and Running the Installer

**Run in the terminal:**

* Remove the old version of the installer:

`rm -f SherpaRPA`

* Download the latest version of the installer:

`wget https://sherparpa.ru/downloads/linux/SherpaRPA.php -O SherpaRPA`

* Add the executable flag to the file:

`chmod +x SherpaRPA`

* Run the installer:

`./SherpaRPA`

> To download and run the installer, you can enter this line in the terminal. It combines all the commands described above: rm -f SherpaRPA && wget <https://sherparpa.ru/downloads/linux/SherpaRPA.php> -O SherpaRPA && chmod +x SherpaRPA && ./SherpaRPA

* If the Robot was previously installed, you will see a window notifying you of this. In it, you can choose "Install" (to update the Robot) or "Remove" (to uninstall the Robot);
* Choose a folder for installing the Robot and click the "Next" button;
* Next, a window will appear showing the installation process of the Robot;
* When the installation is complete, you will see a window where you can immediately launch Sherpa Designer by clicking the "Launch" button.

## 7. Installing the Plugin in Yandex Browser

To enable the Robot to work with Yandex Browser, you need to install the plugin:

* Open the browser and go to the "Extensions" section;
* Then open the file manager and navigate to the folder with the installed Robot:

`/home/user/.config/sherpa-rpa/sherpa-robot` ;

* Go to the Chrome folder:

`/home/user/.config/sherpa-rpa/sherpa-robot/Chrome` ;

* Drag the `plugin.crx` file into the browser window;
* Add the extension;
* Close the browser;
* Open a terminal window in the current folder and run:

`chmod +x install_host.sh` ;

`./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>" %}

And after that, perform steps 3, 4, and 5.
