HUMANS NODE INSTALL
Install pre-requisites
sudo apt update
sudo apt install git build-essential ufw curl jq lz4 --yes
Install Go
wget https://go.dev/dl/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
rm go1.20.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
cat <> ~/.profile
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source ~/.profile
go version
You will receive this response:
go version go1.20.2 linux/amd64
Install humansd
git clone https://github.com/humansdotai/humans.git
cd humans
git checkout v1.0.0
make install
humansd version
You will receive this response:
1.0.0
Init humansd
# CHANGE$NODE_NAME
with your “node name”
humansd config chain-id humans_1089-1
humansd init "$NODE_NAME" --chain-id humans_1089-1
Pruning Setting
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0026uheart"|g' $HOME/.humansd/config/app.toml
sed -i 's|^indexer *=.*|indexer = "null"|g' $HOME/.humansd/config/config.toml
Download Genesis and Addrbook
rm $HOME/.humansd/config/genesis.json
wget https://snapshot.safeblock.space/humans/genesis.json -P $HOME/.humansd/config
wget https://snapshot.safeblock.space/humans/addrbook.json -P $HOME/.humansd/config
wget https://snapshot.safeblock.space/humans/humans-snapshot_03-12-2023.tar.lz4
lz4 -c -d humans-snapshot_03-12-2023.tar.lz4 | tar -x -C /.humansd
rm humans-snapshot_03-12-2023.tar.lz4
Create humans Service
# CHANGE $USER
with your “username”
sudo tee /etc/systemd/system/humansd.service > /dev/null << EOF
[Unit]
Description=Humans Node
After=network-online.target
[Service]
User=$USER
ExecStart=/home/$USER/go/bin/humansd start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
Start Humans Service
Enable humansd in background:
sudo systemctl enable humansd
Start humansd in background:
sudo systemctl start humansd
Check Humans Service
sudo journalctl -fu humansd -o cat
# Ctrl+C to exit
sudo journalctl -fu humansd -o cat | grep index
# Ctrl+C to exit
curl -s http://0.0.0.0:26657/status | jq -r .result.sync_info.catching_up
If response is “true”, you not are synched, wait….
When response is “false”, your node are synched to Humans Network