Installing InvenioRDM on OpenSUSE

InvenioRDM is an open-source research data management platform developed by CERN in collaboration with other institutions. In this tutorial, you will learn how to install InvenioRDM on OpenSUSE.

Prerequisites

Step 1: Install Required Dependencies

Before we start with the installation process, you need to install some dependencies. You can do it by running these commands in your terminal:

sudo zypper install git
sudo zypper install python3-pip
sudo zypper install postgresql postgresql-server postgresql-devel
sudo zypper install java-11-openjdk-devel

Step 2: Install InvenioRDM

First, you need to clone the InvenioRDM repository from GitHub by running this command:

git clone https://github.com/inveniosoftware/invenioRDM.git

Next, navigate to the cloned repository and install the requirements:

cd invenioRDM
pip install -r requirements.txt
pip install -e .

Step 3: Set Up PostgreSQL Database

Create a database user and database for InvenioRDM:

sudo su - postgres
createuser -P invenio
createdb -O invenio invenio

Step 4: Install Elasticsearch

Install Elasticsearch by running this command:

sudo zypper install elasticsearch

After installation, start Elasticsearch service and enable it to start at boot:

sudo systemctl enable elasticsearch.service
sudo systemctl start elasticsearch.service

Step 5: Configure InvenioRDM

Next, you need to create a configuration file for InvenioRDM. Copy the example configuration file and update the required fields:

cp instance/development.defaults.cfg instance/invenio.cfg
nano instance/invenio.cfg

Here are some fields that you need to update:

SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://invenio:<your-db-password>@localhost:5432/invenio"
SECRET_KEY = "<your-secret-key>"
JSONSCHEMA_HOST = "<your-domain-name>"
JSONSCHEMA_ENDPOINT = "api/schemas"

Step 6: Initialize the Database

Before you start using InvenioRDM, you need to initialize the database and create the required tables.

invenio db init
invenio db create
invenio index init

Step 7: Start the Application

Finally, start the InvenioRDM application by running this command:

invenio run

You can now access the InvenioRDM application at http://localhost:5000/.

Congratulations! You have successfully installed InvenioRDM on OpenSUSE Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!