π Setup and run a Collator
Installation > Configuration > Running > Sync > Session keys> Bond
π₯‘ Installationβ
- docker
- fedora
- ubuntu
- other linux
- pull the latest calamari 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 calamari image
docker pull mantanetwork/calamari:latest
the manta .rpm package contains:
- the manta binary (which is also used to run calamari)
- manta and calamari systemd services
- manta, calamari, 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 calamari)
- manta and calamari systemd services
- manta, calamari, 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/calamari
# chainspecs
sudo mkdir -p /usr/share/substrate
sudo curl -Lo /usr/share/substrate/calamari.json https://raw.githubusercontent.com/Manta-Network/Manta/v3.0.9/genesis/calamari-genesis.json
sudo curl -Lo /usr/share/substrate/kusama.json https://raw.githubusercontent.com/paritytech/polkadot/master/node/service/res/kusama.json
# systemd unit file
sudo curl -Lo /etc/systemd/system/calamari.service https://raw.githubusercontent.com/Manta-Network/Manta/deb-rpm/scripts/package/calamari.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