βš’οΈInstallation

  1. Update packages and install useful tools.

sudo apt update && sudo apt upgrade --yes && \
sudo apt install git build-essential ufw curl jq snapd screen ncdu nano fuse ufw --yes
  1. Install go using snap.

sudo snap install go --classic && \
echo 'export GOPATH="$HOME/go"' >> ~/.profile && \
echo 'export GOBIN="$GOPATH/bin"' >> ~/.profile && \
echo 'export PATH="$GOBIN:$PATH"' >> ~/.profile && \
source ~/.profile && \
go version
  1. Build the binary from source.

curl https://get.gitopia.com | bash
git clone gitopia://Gitopia/gitopia
cd gitopia
git checkout v1.2.0
make install
gitopiad version
  1. Initialize your node.

gitopiad init <node_name> --chain-id gitopia-janus-testnet-2
  1. Download genesis.

wget https://server.gitopia.com/raw/gitopia/testnets/master/gitopia-janus-testnet-2/genesis.json.gz
gunzip genesis.json.gz
mv genesis.json $HOME/.gitopia/config/genesis.json
  1. Add seeds and persistent peers to config.toml.

seeds="[email protected]:26656"
peers="6146658ffe2d148524a9fdcc3d701440053442bf@gitopia-testnet.nodejumper.io:30656,[email protected]:26356,[email protected]:16656,[email protected]:41656,[email protected]:36656,[email protected]:36656,[email protected]:41656,[email protected]:34656,[email protected]:26656,[email protected]:31656,[email protected]:26656,[email protected]:35656,[email protected]:60756,[email protected]:41656,[email protected]:656,[email protected]:30656,[email protected]:12656,[email protected]:41656,[email protected]:41656,[email protected]:41656,[email protected]:46656,[email protected]:41656,[email protected]:656,[email protected]:656,[email protected]:36656,[email protected]:41656,[email protected]:656,[email protected]:26656,[email protected]:16656,[email protected]:28656,[email protected]:7070,[email protected]:41656,[email protected]:26656,[email protected]:26656,[email protected]:656,[email protected]:28656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/; s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.gitopia/config/config.toml
  1. Set up minimum gas price.

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.001utlore\"/;" $HOME/.gitopia/config/app.toml
  1. Set up pruning (optional).

pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.gitopia/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.gitopia/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.gitopia/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.gitopia/config/app.toml
  1. Create service file.

sudo tee /etc/systemd/system/gitopiad.service > /dev/null <<EOF
[Unit]
Description=Gitopia Daemon
After=network-online.target

[Service]
User=$USER
ExecStart=$(which gitopiad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
  1. Enable and start service.

systemctl daemon-reload
systemctl enable gitopiad
systemctl restart gitopiad
journalctl -u gitopiad -f -o cat

If you would like to speed up the sync process, you may try using State Sync.

Last updated