Bostrom

Bostrom

Home

Prepare Server

sudo apt update 
sudo apt install curl tar wget clang pkg-config libssl-dev libleveldb-dev jq build-essential bsdmainutils git make htop unzip bc htop -y
if go version >/dev/null 2>&1; then 
echo -e "\033[0;31m Go is already installed\033[0m" 
else 
wget -O go1.19.2.linux-amd64.tar.gz https://golang.org/dl/go1.19.2.linux-amd64.tar.gz 
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz && rm go1.19.2.linux-amd64.tar.gz 
echo 'export GOROOT=/usr/local/go' >> $HOME/.bash_profile 
echo 'export GOPATH=$HOME/go' >> $HOME/.bash_profile 
echo 'export GO111MODULE=on' >> $HOME/.bash_profile echo '
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile && . $HOME/.bash_profile echo -e "\033[0;31m $(go version) \033[0m"
fi

Install Docker

wget https://raw.githubusercontent.com/ProNodes11/NodeGuides/main/docker.sh && chmod +x docker.sh && ./docker.sh

Install Nvidia drivers

 sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install -y ubuntu-drivers-common
sudo ubuntu-drivers autoinstall
sudo reboot

Install Nvidia container runtimeĀ 

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

Install nvidia-container toolkit

sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker

Configure Node

Create folders

mkdir $HOME/.cyber 
mkdir $HOME/.cyber/data 
mkdir $HOME/.cyber/config

Add peers

PEERS=$(curl http://bostrom.stakeme.io:26657/net_info?| jq -r '.result.peers | map(select(.node_info.listen_addr | startswith("tcp") | not) | .node_info.id + "@" + .node_info.listen_addr) | join(",")')
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.cyber/config/config.toml

Start Node

docker run -d --gpus all --name=bostrom --restart always -p 26656:26656 -p 26657:26657 -p 1317:1317 -e ALLOW_SEARCH=true -v $HOME/.cyber:/root/.cyber  cyberd/bostrom:dragonberry-cuda11.4

Check logs

Check logs

docker logs -f bostrom

Bostrom tendermint Chain Services