# Installing Sherpa RPA on RedOS

> Sudo privileges are required for installation.

## 1. Installing .NET **Core 8**

General installation instructions are available on the Microsoft website:

{% embed url="<https://learn.microsoft.com/ru-ru/dotnet/core/install/linux-fedora>" %}

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

**Run in the terminal:**

* Install .NET SDK 8.0:

`sudo dnf install -y dotnet-sdk-8.0`

* Install PowerShell:

`sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell-7.4.2-1.rh.x86_64.rpm`

## 2. Installing the libgdiplus Library

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

**Run in the terminal:**

`sudo dnf install libgdiplus`

## 3. Installing Tesseract

To work with Tesseract, run the following command in the terminal:\
\
`sudo dnf install tesseract-langpack-rus`

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

* Download the archive

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

* Unzip it into the folder

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

## 4. Installing Python

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

`sudo dnf install python3-devel.x86_64`

## 5. 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 launch the file manager and open 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 Yandex Browser window;
* Open a terminal window in the current folder and run the following commands:

`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.

You can also install the plugin from the website:

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

And then perform steps 3, 4, and 5.

## 6. Installing the Plugin in Chromium

Go to the link and install the plugin:

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

* Go to the folder:

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

* Open a terminal window in the current folder;
* Make the install\_host.sh file executable:

`chmod +x install_host.sh`

* Run install\_host.sh in the current directory:

`./install_host.sh`

* Copy the configuration file for the Native Messaging extension:

`cp -f $HOME/.config/google-chrome/NativeMessagingHosts/processagent.sherparpa.json $HOME/.config/chromium/NativeMessagingHosts`

4. ```
    Launch the browser.
   ```

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

## 7. Downloading and Running the Installer

Before running, you need to remove the old version of the installer, for this:

* Run the following command: `rm -f SherpaRPA` ;
* Then download the latest version of the installer using the command:\
  \
  `wget https://sherparpa.ru/downloads/linux/SherpaRPA.php -O SherpaRPA` ;
* Set the file's execution flag using the command: `chmod +x SherpaRPA` ;
* Run the installer by executing the command: `./SherpaRPA` .

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

To install Sherpa RPA, follow the instructions below:

* 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);

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-af08c57b4580161d3d2dcff480f19c16cc0c5c47%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(77).png?alt=media" alt=""><figcaption></figcaption></figure>

* If this is the first installation, or in the previous window you selected "Install", an installer window will appear. You will be able to choose:

  * installation of a shortcut on the desktop,
  * creating a folder in the "Start" menu,
  * installing the Robot for the current User / for all Users;

  <figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-6feadf31c0d9fbef3ef162fc69ba4c819a561f43%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(79).png?alt=media" alt=""><figcaption></figcaption></figure>
* Then click the "Next" button;
* Choose a folder for installing the Robot and click the "Next" button;

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-7e5899c141b1e83f5f834cef5230f61215c79a7c%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(81).png?alt=media" alt=""><figcaption></figcaption></figure>

* Next, a window will appear showing the installation process of the Robot;

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-f5244a26cc504e91fd54883e3ff4e3b00025d485%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(82).png?alt=media" alt=""><figcaption></figcaption></figure>

* When the installation is complete, you will see a window where you can immediately launch Sherpa Designer by clicking the "Launch" button.

<figure><img src="https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-cdbc3dee0e2fefcd61aeb53ddce2635690de596b%2F%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20(85).png?alt=media" alt=""><figcaption></figcaption></figure>
