Midgard - Linux
Setting up Midgard on Linux
Prerequisites
Install all needed packages for building and running midgard
apt install -y --no-install-recommends apt-transport-https gcc gnupg lsb-release postgresql postgresql-common wgetApplication user
Add the application user that is used to run the thornode daemon
useradd -m midgard -s /bin/bashDatabase
Install TimescaleDB
Run the PostgreSQL package setup script
/usr/share/postgresql-common/pgdg/apt.postgresql.org.shAdd the TimescaleDB package
echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.listInstall the TimescaleDB GPG key
Update your local repository list and install TimescaleDB
Tune your PostgreSQL instance for TimescaleDB
Restart PostgreSQL
Create midgard database
Install TimescaleDB extension
Connect to the database
Add TimescaleDB to the database
Check that TimescaleDB is installed
Install
As midgard user run:
Configuration
As midgard user run:
Nine Realms infrastructure has been decommissioned. Refer to the upstream node-launcher documentation for the current genesis file source, then place it at $HOME/config/genesis.json.
Add midgard config.
Nine Realms infrastructure has been decommissioned. The blockstore.remote field below is left empty — refer to the upstream Thornode Snapshot Recovery and Storage Management doc for the current value.
Systemd
Create a service file to be able to manage the Midgard process via systemd
Reload systemd config
Start
Start the daemon
Last updated
Was this helpful?