⚒️Installation
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
Install
go
usingsnap
.
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
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
Initialize your node.
gitopiad init <node_name> --chain-id gitopia-janus-testnet-2
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
Add seeds and persistent peers to
config.toml
.
seeds="399d4e19186577b04c23296c4f7ecc53e61080cb@seed.gitopia.com:26656"
peers="6146658ffe2d148524a9fdcc3d701440053442bf@gitopia-testnet.nodejumper.io:30656,b745e0c6a1e0c7ec248ec274cfd038ed4bc4c2cf@65.21.134.202:26356,0c31077af45cb4f0424e58c91b0a917c36a90fd9@65.108.195.235:16656,374da78901e59810277fc35482bce6e30953f488@80.79.6.155:41656,1f0f03a1c845e810e5cfeb0d960639c637d049fe@154.26.131.130:36656,f9b892ea2e8ed8aa83f7b98e7e47371c23b01924@213.239.207.175:36656,7182dfadba43a9a3b35f6862e63f75be20c8b1db@95.217.214.125:41656,9cd6d2477d278ef6ccffa5cc4e22fd0d9489cd23@85.10.199.157:34656,6871aeacd353d66c38b1ebbf3b1ad244fa05e32b@167.86.84.125:26656,e1ab0573d55ff92fad55d2929e353904f1bbe36f@135.181.16.252:31656,481189b7e246f6c824a969482446c49abbfe76b8@161.97.172.147:26656,3b0956b482f89b361dd350f1c6b3743096897446@65.108.124.219:35656,0534e64a6df8a0ac7d032d3eff3587f5fd69ba37@65.108.206.118:60756,d5519e378247dfb61dfe90652d1fe3e2b3005a5b@65.109.68.190:41656,ad33cf22f96e43448798686ed0f7428b8fdacf5b@5.161.90.174:656,820024c34989e7605d9367847e1fc2d01ad763bd@65.109.92.235:30656,4e4f87cfa1993f4f3f7645c41f469987cafdf960@85.10.202.135:12656,ea53a3f77fe373f47be4e77fd5f9ff526dfaec33@51.79.143.46:41656,eccdf1d5bf33bc1733838562b4d4a4a45869c3a8@135.181.183.93:41656,c2beb74ebaf76137702732f6076c9a319bf15262@159.69.72.247:41656,63381c5528ed8ca93f9ba31008a9630d21b29a97@142.132.152.46:46656,3e5ba61e8481c6c71d3f2cc022dd6671ed7cacf8@65.21.170.3:41656,fd3c90536aafeb61fb735ca15fec7cb1f0747f8c@77.91.73.34:656,95fbdc6d62be17db6688222b15b57d3e795ed07a@167.86.84.102:656,1c14a50a931cdf437c1a28bc00565d69950b6c6b@135.181.205.220:36656,53b421af01f3260e949d6a9c2dc09e3b1dbf9fb6@109.205.181.30:41656,f1a47d469460fb0a70b12d7739afbc0bf78eadda@78.47.195.69:656,4e0e57bcac8aa2bc3188d5b7845eeee61a61f3f0@194.163.170.165:26656,61d2b313e2adc9d7990944f8ab5a6f9ecf08084f@65.21.122.171:16656,f1c042fca05e4bfb9a6da1cccaa5108a26ea1e0f@65.108.104.167:28656,1989ced6b71ce676a5ab4d0586d85e38fd41fbd2@136.243.88.91:7070,d15e22d7be8ba1b97ff429cf87fea2af41450b37@149.102.134.212:41656,61c85d47e1dd86d5a5849450b849078d4d13184b@85.239.244.123:26656,4822b1bc21df29f4928b81d0ea457191c9839980@194.163.187.123:26656,f0b8227e40f25eaec0e25b9e91ca199d2d9a1ecb@167.86.94.177:656,5c45e8920c5094827ec5afaca9ab469aaa0b4eaf@65.109.88.254:28656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/; s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.gitopia/config/config.toml
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.001utlore\"/;" $HOME/.gitopia/config/app.toml
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
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
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