2.1. Installation on Linux

2.1.1. Prerequisites

To run RCE on a system, the only prerequisite is an installed Java Runtime Environment (JRE), version 11 or above. If you do not already have one on your machine, use your system's package manager to install it; the most common choice is the OpenJDK JRE.

Note

Some pre-installed components of RCE have additional dependencies. Please refer to Section 2.3 (Workflow Components) for more details.

2.1.2. Obtaining the Signing Key

Any software can be tampered with by a malicious attacker. For RCE, the consequences of such tampering may be worse than with other software, since its intended behavior already includes executing arbitrary processes, opening outgoing network connections, and listening for incoming ones. One common safeguard against such tampering is software signing. If the developers sign a software artifact, e.g., a zip-archive or an executable file, the user can verify the signature. This verification confirms that the artifact downloaded onto their machine is identical to the artifact prepared by the software developers and has not been tampered with.

In order to sign a software artifact, the developers combine the artifact and a so-called signing key to form a signature file. The user can then verify the signature using the artifact, the signature file, and a part of the signing key that can only be used for verification, but not for signing. A technical introduction to the minutiae of software signing is out of the scope of this user guide and we refer to the literature for more information on this topic.

If you would like to install RCE by using a package repository (see below), you need to obtain the signing key before doing so. For other methods of installation, namely manual installation of a package or unpacking a .zip-file, verifying the signature of the downloaded artifact is optional. Despite this, we strongly recommend doing so.

In order to verify the signature of a software, you require

  • the artifact that you want to verify (in this case a .zip-, .deb-, or .rpm-file)

  • a signature file provided by the signer (in this case provided by us)

  • the verification part of the signing key.

How to obtain the former two items depends on your chosen method of installation (see Section 2.1.3 for more details). The latter item, i.e., the signing key, is not available via https://rcenvironment.de or linked to in this user guide on purpose: Recall that the purpose of software signing is to protect against compromised communication channels between developers and users. Thus, if the artifact, the signatures, and the signing key were available at the same location, an attacker that takes control over that location could easily forge all three components.

One common way to distribute such keyfiles is via so-called public keyservers. We had previously published the signing key for RCE at the SKS-keyservers, which are no longer available. Nevertheless, we have published the keyfile via https://github.com in the repository called rce-signing owned by the organization rcenvironment. For now, this is the key supplier to use until we determine a new public key server. Please verify the integrity of the obtained keyfile by checking its fingerprint against the one published by us via a trusted channel. We omit giving direct links as well as the key's fingerprint here on purpose. This slightly decreases the chance of attackers directing you toward a forged key.

The precise steps required for signature verification differ from system to system. Commonly, key retrieval and verification is handled by either your package manager or by gpg, which should be pre-installed on your system or available via the package manager of your choice. Please refer to its documentation in order to verify your downloaded software artifact.

2.1.3.  Installation

On Linux, there are up to three installation options, depending on your distribution:

  1. Installing RCE from a .deb package via a package manager (only on .deb-based systems such as Debian, Ubuntu, or Mint),

  2. installing RCE from a .deb- or .rpm-package (on .deb- and .rpm-based systems, respectively), or

  3. extracting RCE from a zip file (traditionally used by earlier versions of RCE).

If you are using a .deb-based distribution, we strongly recommend installing RCE via your package manager of choice. On .rpm-based systems, we instead recommend using the provided .rpm-package, as this automatically installs RCE into the proper system locations. It furthermore allows you to cleanly manage your installation via the package manager.

The following table compares these options:

Table 2.1. Linux installation options

Installation typeMulti-user operation supportedDaemon operation (system service) supportedInstalling multiple versions simultaneouslyFile system locationUpdating to a new version Verifying digital signaturesRegisters start menu entry and icon
Using the package repository (.deb-based systems only)yesyesno/usr/share/rceUsing the distribution's update manager (automatic or manual)automaticyes
Manual installation of the .deb/.rpm packageyesyesno/usr/share/rceManual download and install a newer packagemanualyes
Unpacking the .zip filenonoyes(anywhere)Use "Help -> Check for Updates" in RCE -or- delete the old installation directory and manually download and unpack a newer zip filemanualno


2.1.3.1. Installing from the Package Repository (recommended for Debian/Ubuntu/Mint)

To register the RCE .deb package repository in your system, you first have to add the RCE signing key to your package manager. Popular choices for such a package manager are Synaptic and apt, which feature a graphical user interface and a command-line interface, respectively. Please refer to Section 2.2 for details on how to obtain this key. The steps required to import the signing key into your package manager differ greatly based on the used package manager. Please refer to its documentation for more information on this.

Once you have imported the signing key into your package manager, please add the following repository to its list of repositories:

deb https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest/deb/ /

When using Synaptic, you can add this repository by opening

Settings -> Repositories -> Additional Repositories / Other Sources (or similar) -> Add New...

When using apt as your package manager, you can add the repository by executing the following command in a terminal:

echo "deb https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest/deb/ /"
  >/etc/apt/sources.list.d/dlr_rce_10_releases.list

Although this command is split across multiple lines in this guide, it must be executed as a single line. Further, this command requires superuser-rights and will ask you for your sudo-password. Please contact your system administrator if you do not have such a password.

After adding the repository to your package manager, refresh the list of available software (e.g., via clicking a Refresh- or Reload-button or via the console command sudo apt-get update) and install RCE like any other software (e.g., via selecting it in the list of available software in Synaptic or via the console command sudo apt-get install rce).

Once you have installed RCE using either of these approaches, any RCE 10.x upgrade will automatically show up via the update mechanism of your operating system. Depending on the upgrade settings of your system, they may be installed automatically, or be presented to you for selection. Although technically possible, RCE 10.x will not auto-upgrade to 11.x (or higher) to maintain compatibility within networks of RCE 10.x instances. You will need to manually install the 11.x repository location in order to upgrade.

2.1.3.2. Installation of the .deb/.rpm Package (recommended for CentOS/Red Hat/SUSE, alternative for Debian/Ubuntu/Mint)

To install the .deb/.rpm file manually, download the latest version from either

https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest/deb/

or from

https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest/rpm/

Use the former package on .deb-based systems such as Debian, Ubuntu, or Mint and use the latter package on .rpm-based systems such as Red Hat or CentOS.

You can install the package using the graphical package management tools of your distribution (double-clicking the .deb/.rpm-file should start them), or by running yum install <filename> (Red Hat, CentOS, ...), zypper install <filename> (openSUSE), or sudo dpkg -i <filename> (Debian, Ubuntu, Mint, ...) from a terminal.

To upgrade an existing installation, simply install the newer package. The package manager will detect the upgrade and handle it properly.

2.1.3.3. Installation from the .zip File (alternative for all distributions)

If none of the previous installation options fits your needs, you can also extract RCE from a zip file downloaded from

https://software.dlr.de/updates/rce/10.x/products/standard/releases/latest/zip/
  • If you prefer graphical tools, double-click the .zip file to open it with your distribution's archive manager. Extract it to a location of your choice and open that location in your file-system explorer. Typically, double-clicking the "rce" executable will work out of the box and start RCE. If this does not happen, right-click the executable, open its "properties" section (or similar), and look for an option to mark it as executable. Confirm the dialog, then double-click it again.

  • If you prefer using the command line, use the unzip command to extract the zip file to a location of your choice. In the location where you unpacked the files to, you can usually simply enter

    ./rce

    to start RCE. In some cases, you may first need to make it executable using the command

    chmod +x rce

Note

The path to your installation location must not contain any colons to avoid Java Virtual Machine errors when starting RCE.

2.1.4. Starting RCE as a GUI Client

Once your RCE instance has started, you can open the configuration file with the menu option "Configuration > Open Configuration File". Edit the file, save it, and then restart RCE using the "File > Restart" menu option to apply the changes. There are configuration templates and other information available via the "Configuration > Open Configuration Information" option. The available configuration settings are described in the configuration chapter.

Note

On Ubuntu, the Ubuntu overlay scrollbars can sometimes lead to problems with the RCE GUI. To avoid these problems, you can start RCE from a terminal with env LIBOVERLAY_SCROLLBAR=0 ./rce to disable the overlay scrollbars for RCE. Alternatively, if you want to disable the overlay scrollbars permanently for all programs, execute echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars as a superuser and then restart your computer.

2.1.5. Starting a Non-GUI ("Headless") Instance

RCE can also be run from the command line without a graphical user interface (which is called "headless" mode), which uses less system resources and is therefore recommended when the GUI is not needed.

To run a headless RCE instance, open a terminal and run the command

rce --headless -console

While RCE is running, you can enter various console commands described in Section 3.1, “Command Line Parameters”; note that you need to prefix all RCE commands with "rce" here. To perform a clean shutdown, for example, type rce stop and press enter.

2.1.6. Installation as a Service on a Linux Server

Please refer to the section "RCE as a Linux systemd Service" in the "RCE Administration and Security Guide" to install RCE as a service.