Installation
Installation follows the same steps as Riversoft® STCP Gemini, with a different product package: database, repository, Riversoft STCP Gemini API, Riversoft Console Portal and Riversoft STCP DirectLink (packages stcpdirectlink and stcpdirectlink-portal). The API and the Portal manage the product, and Riversoft STCP DirectLink uses the instance created in the Portal.
flowchart LR
A[Database] --> B[Riversoft repository]
B --> C[Riversoft STCP Gemini API]
C --> D[Riversoft Console Portal]
D --> E[Instance created in the Portal]
E --> F[Riversoft STCP DirectLink]
F --> G[Riversoft STCP DirectLink Portal]
Before you start, review the pre-installation checklist.
Note
If Riversoft STCP Gemini is already installed, the database, repository, API and Portal are already in place: install only Riversoft STCP DirectLink.
Note
With Riversoft STCP Enterprise Server (Windows), installation follows the Enterprise Server procedures and is not described on this page.
Database preparation
The DBMS must be installed, configured and reachable, with a user allowed to run the creation scripts. Riversoft provides the scripts that create the databases and structures used by the products: tables, relationships, initial configuration data and log objects.
Important
The organization’s DBA team is responsible for providing the environment, reviewing the scripts and running them according to internal policies, including security, backup and access control.
Script download
| DBMS | Package |
|---|---|
| Microsoft SQL Server | STCPGemini_Scripts_SQLServer.zip |
| Oracle Database | STCPGemini_Scripts_Oracle.zip |
| MySQL | STCPGemini_Scripts_MySQL.zip |
| MariaDB | STCPGemini_Scripts_MariaDB.zip |
Before running the scripts, confirm that:
- the environment’s database is available and the connection works;
- the DBMS is compatible (see Requirements);
- the user is allowed to create and alter structures;
- the execution follows the organization’s administration and security policies.
Running the scripts
Run the scripts in sequence, following their numbering. Each step prepares structures used by the next ones.
| Order | Script | Purpose |
|---|---|---|
| 1 | 0-STCPGeminiCreateDatabase_<DBMS>.sql | Creates and prepares the databases. |
| 2 | 1-STCPGeminiCfg_<DBMS>.sql | Creates the configuration structures. |
| 3 | 2-STCPGeminiCfgInit_<DBMS>.sql | Loads the initial configuration data. |
| 4 | 3-STCPGeminiLog_<DBMS>.sql | Creates the log record structures. |
The <DBMS> suffix depends on the database, for example 0-STCPGeminiCreateDatabase_SQLServer.sql.
Warning
Move to the next script only after the previous one completes successfully. If an error occurs, stop and fix the cause before continuing.
The database names used in the scripts (for example, GEMINI_DBConfig and GEMINI_DBLog) are references and can follow the organization’s standards. If you change the names, update every reference in the scripts and in the component configuration.
Database validation
- All scripts ran without errors.
- The databases and structures were created and the initial data was loaded.
- The log structures are available.
- The databases are reachable from the component servers.
- The database user configured in the products has access to the created structures.
Riversoft repository
The packages are distributed through the official Riversoft repository. Download the .repo file that matches the Enterprise Linux version:
curl https://repo.riversoft.com.br/configs/riversoft-el8.repo \
--output /etc/yum.repos.d/riversoft-release.repoThe file configures the production repositories for the system architecture ($basearch) and for architecture-independent packages (noarch). Example for Enterprise Linux 9:
[Riversoft-el9-prod]
name=Riversoft Packages for Enterprise Linux 9 (prod) - $basearch
baseurl=https://repo.riversoft.com.br/prod/el9/$basearch
enabled=1
gpgcheck=1
gpgkey=https://repo.riversoft.com.br/certs/riversoft.asc
[Riversoft-el9-prod-noarch]
name=Riversoft Packages for Enterprise Linux 9 (prod) - noarch
baseurl=https://repo.riversoft.com.br/prod/el9/noarch
enabled=1
gpgcheck=1
gpgkey=https://repo.riversoft.com.br/certs/riversoft.ascAll repositories validate the package GPG signature (gpgcheck=1) with the public key https://repo.riversoft.com.br/certs/riversoft.asc.
Important
Use the .repo files published by Riversoft instead of creating the configuration manually. If a previous repository configuration exists in /etc/yum.repos.d/, remove or disable it to avoid duplicate repositories.
Refresh the package manager metadata:
dnf clean all
dnf makecacheRiversoft STCP Gemini API
dnf install -y stcpgemini-api
rpm -q stcpgemini-apiThe rpm -q command shows the installed version. The files are placed in /usr/local/stcpgemini-api. Next, configure the API.
Riversoft Console Portal
Warning
The Riversoft STCP Gemini API must be installed and running before the Portal is installed.
dnf install -y stcpgemini-portal
rpm -q stcpgemini-portalThe files are placed in /usr/local/stcpgemini-api/portal/. Next, configure the Portal and complete the first access to create the instance.
Riversoft STCP DirectLink
Important
Riversoft STCP DirectLink uses an instance previously created in the Riversoft Console Portal.
dnf install -y stcpdirectlink
rpm -q stcpdirectlinkThe package installs:
| Item | Location |
|---|---|
| Application | /usr/local/stcpdirectlink |
| Executable | /usr/local/bin/stcpdirectlink |
systemd service | stcpdirectlink, enabled at system startup |
| Logs | /var/log/stcpdirectlink |
| Service user and group | stcp |
The service is not started on the first installation. Next, install Riversoft STCP DirectLink Portal, configure Riversoft STCP DirectLink and test the execution before starting the service.
To use file routing and automation, install Riversoft STCP Gemini Rename on the same server or container image as Riversoft STCP DirectLink.
Riversoft STCP DirectLink Portal
Riversoft STCP DirectLink Portal, used by people to send and receive files, is distributed in the stcpdirectlink-portal package:
dnf install -y stcpdirectlink-portal
rpm -q stcpdirectlink-portalThe files are placed in /usr/local/stcpdirectlink/static/portal. The package installs the assets/configs/example-config.json template, from which the portal config.json is created. Riversoft STCP DirectLink itself serves the portal at the /portal path, with no additional web server. Next, configure the portal. See also Using Riversoft STCP DirectLink Portal.
License
Riversoft STCP DirectLink requires a valid license file, provided by Riversoft.
- Copy the license file to the server and restrict access permissions to the service user.
- Set the file path in
applLicense, inconfig.json(see Application and security). - Start the service. The license is validated at startup, and the service does not start if the file is missing or invalid.
To renew or replace the license, replace the file and restart the service.
Installation validation
-
rpm -qshows the version of each installed package. -
systemctl status stcpgemini-apiandsystemctl status stcpdirectlinkshowrunning. - The Portal opens at the API address and accepts sign-in.
- The instance configured in Riversoft STCP DirectLink (
cfgInstanceName) exists in the Portal. - Riversoft STCP DirectLink Portal opens over HTTPS at
/portaland accepts sign-in by a test user.