Node setup for Dyson Protocol

Node setup requres some basic knowlage of Linux OS and server managment. Setting up the node can be daunting and chalanging task. This is a short guide how to set up the node.

Update the system and install the essentials:

sudo apt update && sudo apt full-upgrade -y && apt install build-essential 
sudo apt install vim /or apt install nano 
sudo apt install entr jq make git ufw wget 

Install Docker

apt get update
apt-get install \
ca-certificates \
curl \
gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
“deb [arch=”$(dpkg –print-architecture)” signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
“$(. /etc/os-release && echo $VERSION_CODENAME)” stable” | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Clone the repository, edit docker-compose.yml and update start.sh

#Clone the repo first then move into directory to make changes
 
git clone –recurse-submodules https://gitlab.com/dysonproject/dyson-deploy.git
cd dyson-deploy
 
#Use vim or nano to remove other services except chain (if you plan to run all services then skip this service)
 
#Update start.sh so docker can run in the background. Alternatively you could run it in the foreground and use tmux or byobu.
 
sed -i ‘s/exec docker compose up/exec sudo docker compose up -d\nexec sudo docker compose logs -f –tail 101/g’ ./scripts/start.sh

Start the node

make mainnet
make start
 
# Check if node is synced
 
curl localhost:26657/status