Manual Install
If you want to try our GO autoinstaller, follow the link >>> Auto install Golang
Install Golang
Installation example of Golang.
sudo rm -rvf /usr/local/go/
wget https://golang.org/dl/go1.23.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz
rm go1.23.1.linux-amd64.tar.gz
Add GO environmets to the system
Let's automatically write down and apply the variables.
sudo sh -c 'echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile'
sudo /bin/bash -c 'echo "export GOPATH=$HOME/go" >> $HOME/.profile'
sudo /bin/bash -c 'echo "export PATH=$HOME/go/bin:$PATH" >> $HOME/.profile'
sudo /bin/bash -c 'echo "export GOBIN=$HOME/go/bin" >> $HOME/.profile'
sudo /bin/bash -c 'echo "export GOROOT=/usr/local/go" >> $HOME/.profile'
sudo /bin/bash -c 'echo "export GO111MODULE=on" >> $HOME/.profile'
. /etc/profile
. $HOME/.profile
Install the Binary
Use make install
or make build
to build the Binary.
cd $HOME
rm -rf panacea-core
git clone https://github.com/medibloc/panacea-core.git
cd panacea-core
git checkout v2.0.7-1
make install
Initialize Node
Just change the MONIKER
to your validator name.
panacead init MONIKER --chain-id panacea-3
Genesis
Download chain genesis.
wget -O $HOME/.panacea/config/genesis.json https://services.staketab.org/medibloc/genesis.json
Configure Peers and Seeds
Peers and Seed to connect to the network.
SEEDS=
PEERS=cd7565578260f1924abde465af1509900b0df4f0@195.201.205.237:26656,00c57e36559b49ce7d29fa4920b5132584994368@52.77.227.241:26656,c238f279c970764d6893ae44bdf5c949dc22b009@13.114.44.199:26656,395aead00e99f828e4af92531dcd8c8da1255a8f@3.36.50.133:26656,00cbd4239e4f78793945853f58e12d0b960e471a@5.34.178.46:26656
STAKETAB_PEER=5cd589ab0f34dbeb07cb0e156741838b2c7d3737@148.251.235.130:16656
sed -i -e 's|^persistent_peers *=.*|persistent_peers = "'$STAKETAB_PEER','$PEERS'"|' $HOME/.panacea/config/config.toml
sed -i -e 's|^seeds *=.*|seeds = "'$SEEDS'"|' $HOME/.panacea/config/config.toml
Create Service file
The service script will automatically substitute your username
. If you want to install it manually just replace $(whoami)
to your username
.
sudo /bin/bash -c 'echo "[Unit]
Description=panacead Node Service
After=network-online.target
[Service]
Type=simple
User=$(whoami)
ExecStart=$(pwd)/go/bin/panacead start --home $(pwd)/.panacea
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
" >/etc/systemd/system/panacead.service'
Start the node
Enable and start your node Service.
sudo systemctl enable panacead.service
sudo systemctl start panacead.service
Auto install Golang
Specify version and GO path in this line ./go.sh -v GO_VERSION -p GO_PATH
Example ./go.sh -v 1.20.2
You can use all the variables or not use them at all and then the GO_VERSION
and GO_PATH
will be used by default as (-v 1.20.2 -p /usr/local/go
)
wget https://raw.githubusercontent.com/Staketab/node-tools/main/components/golang/go.sh
chmod +x go.sh
./go.sh -v 1.23.1
rm -rf go.sh
Now apply the changes with the command below or reboot your terminal:
. /etc/profile && . $HOME/.bashrc
Done