🚄 Setup and run a Rpc Node
🥡 Rpc Node
- docker
- fedora
- ubuntu
- other linux
- pull the latest manta container
#!/bin/bash
# Depending on your setup, here are some steps to get started
# Upgrade to latest version
sudo apt update && sudo apt upgrade -y
# Install docker
sudo apt install docker.io
# Add current user to docker
sudo usermod -aG docker $USER
# Pull the manta image
docker pull mantanetwork/manta:latest
the manta .rpm package contains:
- the manta binary (which is also used to run manta)
- manta and manta systemd services
- manta, manta, polkadot and kusama chain specifications
- a script which runs after installation and creates the manta system account which the systemd service runs under
get started (see also: rpm.manta.systems):
add the manta .rpm repository
#!/bin/bash
sudo dnf install dnf-plugins-core
sudo dnf config-manager --add-repo https://rpm.manta.systems/manta.repo
sudo dnf config-manager --set-enabled manta
sudo dnf updateinstall manta
#!/bin/bash
sudo dnf install manta
the manta .deb package contains:
- the manta binary (which is also used to run manta)
- manta and manta systemd services
- manta, manta, polkadot and kusama chain specifications
- a script which runs after installation and creates the manta system account which the systemd service runs under
get started (see also: deb.manta.systems):
add the manta .deb repository
#!/bin/bash
sudo curl -o /usr/share/keyrings/manta.gpg https://deb.manta.systems/manta.gpg
sudo curl -o /etc/apt/sources.list.d/manta.list https://deb.manta.systems/manta.list
sudo apt updateinstall manta
#!/bin/bash
sudo apt install manta
download binary, chain specifications and systemd unit file
#!/bin/bash
# intall jq on ubuntu
sudo apt install jq
# or on fedora
sudo dnf install jq
# get the latest version of binary
manta_version=$(curl -s https://api.github.com/repos/Manta-Network/Manta/releases/latest | jq -r .tag_name | cut -c 2-)
# binary
sudo curl -Lo /usr/local/bin/manta https://github.com/Manta-Network/Manta/releases/download/v${manta_version}/manta
sudo ln -srf /usr/local/bin/manta /usr/local/bin/manta
# chainspecs
sudo mkdir -p /usr/share/substrate
sudo curl -Lo /usr/share/substrate/manta.json https://raw.githubusercontent.com/Manta-Network/Manta/v3.0.9/genesis/manta-genesis.json
sudo curl -Lo /usr/share/substrate/polkadot.json https://raw.githubusercontent.com/paritytech/polkadot/master/node/service/chain-specs/polkadot.json
# systemd unit file
sudo curl -Lo /etc/systemd/system/manta.service https://raw.githubusercontent.com/Manta-Network/Manta/deb-rpm/scripts/package/manta.servicecreate the manta system account which the systemd service runs under
#!/bin/bash
sudo groupadd --system manta
sudo useradd \
--system \
--gid manta \
--home-dir /var/lib/substrate \
--create-home \
--shell /sbin/nologin \
--comment 'service account for manta and calamari services' \
manta