Install kaspad node on Debian 11 (go)

Install kaspad node on Debian 11 (go)

To install kaspad on Debian 11, some dependencies and go must first be installed. It is also recommended to run it later in a screen session. In this tutorial we will first install the node for the user root and all dependencies. Then we create a new user and assign a strong password. We install the node again, open a screen session, change to the directory of the node and start the Kaspa node as a user.

The advantage of the screen session is that the node continues to run when the ssh window is closed.

apt update
apt install -y wget tar screen git build-essential
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
go version
git clone https://github.com/kaspanet/kaspad
cd kaspad
go install . ./cmd/...
adduser kaspanode
#entersafepassword
su - kaspanode
git clone https://github.com/kaspanet/kaspad
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
go install . ./cmd/...
screen
cd $(go env GOPATH)/bin
./kasapad

Dont forget to block the access to your ssh ports by a firewall 😉 and/or make sure the ports 16110 and 16111 are open for Kaspa.

Leave a Reply

Your email address will not be published. Required fields are marked *