Home

Awesome

polkacli

Simple bash aliases for easy installation of polkadot node for Kusama network.

Requirements

  1. Add new user, set password, add sudo rights and login to that user
adduser kusama
passwd kusama
usermod -aG sudo kusama # Ubuntu/Debian
usermod -aG wheel kusama # Centos/Rocky
su kusama && cd ~
  1. Once logged in to user running node, install lz4, curl, git, jq, micro, tar and wget
# if ubuntu/debian 
sudo apt-get install -y curl git lz4 jq tar wget &&
curl https://getmic.ro | GETMICRO_REGISTER=y sudo sh &&
sudo cp micro /usr/local/bin && sudo mv micro /usr/sbin

# if centos/rocky 
sudo yum install -y curl git lz4 jq tar wget &&
curl https://getmic.ro | GETMICRO_REGISTER=y sudo sh &&
sudo cp micro /usr/local/bin && sudo mv micro /usr/sbin

Install polkacli

git clone https://github.com/kusamaxi/polkacli ~/polkacli && 
mv ~/polkacli/.polkacli ~/ && rm -rf ~/polkacli &&
echo "# source polkacli
. ~/.polkacli" >> ~/.bashrc &&
. ~/.bashrc

create .service file

edit
-->

[Unit]
Description= $NETWORK Validator - $NODE_NAME
[Service]
User=kusama
Group=kusama
WorkingDirectory=/usr/local/bin/
ExecStart=/usr/local/bin/polkadot \
--database=RocksDb \
--pruning 1000 --chain $NETWORK --validator \
--telemetry-url 'wss://telemetry-backend.w3f.community/submit 1' \
--port 30333 --ws-port 9944 --rpc-port 9933 --name "$NODE_NAME"
Restart=always
RestartSec=120
[Install]
WantedBy=multi-user.target

download client, download database and start your node

reload
download
shotdl
shotupdate
shotdel
update
--> node should be running
logsnow # to see whats going on .

Commands

Validator service

Logs

Updating polkadot client

Fast sync with polkashots using rocksdb

RPC-commands(advanced - be careful)

Coming up next