> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Software protection

> Install a runtime application that uses ABBYY FineReader Engine on Linux as a non-root user in automatic mode with Software protection and a Runtime License serial number.

Software protection uses an activation file that should be obtained from the ABBYY server during a license activation process.

<Accordion title="Standalone license">
  In this scenario, you are installing your application that uses ABBYY FineReader Engine library on your computer via the command line, without any interaction with the user.

  You will need:

  * the serial number of your Runtime License.

  Follow the instructions:

  1. Run the %archive\_name%.sh as non-root user.
  2. Specify the following parameters in the command line:
     * The path to the folder where the ABBYY FineReader Engine library will be installed.
     * The path to a folder for storing the licensing data (it can be any folder in the /home directory, while excluding the /tmp directory).
     * The serial number of your license.

  The example of command line:

  ```
  %archive_name%.sh -- --install-dir "<folder path>" 
  --licenses-folder "<folder path>" --skip-local-license-activation
  run "<FRE_installation_directory>/Bin/ServiceWrapper
  <FRE_installation_directory>/CommonBin/Licensing/start_licensing_service.sh"
  run "LD_LIBRARY_PATH=<FRE_installation_directory>/CommonBin/Licensing <FRE_installation_directory>/CommonBin/Licensing/LicensingService /standalone"
  ```

  3. Wait for installation to complete.

  <Warning>
    After installing ABBYY FineReader Engine, the folder for storing the licensing data can be changed in LicensingSettings.xml. See the example in [Working with the LicensingSettings.xml File](/fine-reader/engine/licensing/working-with-the-licensingsettingsxml-file) article.
  </Warning>

  3. Start the Licensing Service via the command:

  as a daemon

  or as an application

  3. Activate your license by the activatefre.sh script. You must run the activatefre.sh with the same permissions you launched the ABBYY FineReader Engine installation with.
  4. Check if your license has been activated in the [License Manager Utility](/fine-reader/engine/licensing/license-manager-utility).
</Accordion>

<Accordion title="Network license">
  In this scenario, you are installing your application that uses ABBYY FineReader Engine library on a workstation connected to the license server through a network via the command line, without any interaction with the user.

  You will need:

  * the serial number of your Runtime License.

  * the DNS name or IP-address of the license server.

  Follow the instructions:

  1. Install the Licensing Service on the license server, as described in [Installing the Licensing Service](/fine-reader/engine/distribution/distribution-linux/activating-the-library-linux/installing-the-licensing-service-on-linux).
  2. Activate the license on the license server in the [License Manager Utility](/fine-reader/engine/licensing/license-manager-utility).

  Select the Activate License option and follow the wizard instructions to activate your license. If your server has access to the Internet you only need to enter the serial number and wait a few moments.

  Use ABBYY FineReader Engine and Licensing Service from the same package. Otherwise, compatibility is not guaranteed.

  3. Install the library on the workstations:

  4. Run the %archive\_name%.sh as non-root user.

  5. Specify the following parameters in the command line:
     * The path to the folder where the ABBYY FineReader Engine library will be installed.
     * The path to a folder for storing the licensing data (it can be any folder in the /home directory, while excluding the /tmp directory).
     * IP-address of the license server with the Licensing Service installed.

  The example of command line:

  ```
  %archive_name%.sh -- --install-dir "<folder path>" 
  --service-address "<address>" --licenses-folder "<folder path>"
  ```

  4. Wait for installation to complete.

  <Warning>
    After installing ABBYY FineReader Engine, the folder for storing the licensing data can be changed in LicensingSettings.xml. See the example in [Working with the LicensingSettings.xml File](/fine-reader/engine/licensing/working-with-the-licensingsettingsxml-file) article.
  </Warning>

  4. Check if your license has been activated in the [License Manager Utility](/fine-reader/engine/licensing/license-manager-utility).
</Accordion>
