2023 Install Go Spacemesh Node in Under 10 min – Ubuntu



2023 Install Go Spacemesh Node in Under 10 min – Ubuntu

2023 Install Go Spacemesh Node in Under 10 min - Ubuntu

PART 2: https://youtu.be/J4hNZ47c-b0

It’s not a race, but it totally is a race. If you are able to run a VM and install a fresh Ubuntu Server or Desktop OS then setting up a go-spacemesh node is a walk in the park. I totally crush my 10 minute goal, and it included some extra steps you don’t even need to do!

There is no excuse, join Spacemesh now!!

Update System
sudo apt update && sudo apt upgrade -y

Set Timezone
sudo timedatectl set-timezone YOUR TIMEZONE HERE

Install dependencies
sudo apt install unzip tmux libpocl2 python3.10-venv python3-dev python3-pip cifs-utils iotop -y

Install Go & Dependencies
Download Go
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz

Extract Files
tar -xf go1.21.0.linux-amd64.tar.gz

Remove Any Previous Installation
sudo rm -rf /usr/local/go

Set Folder Ownership to Root
sudo chown -R root:root ./go

Move Folder
sudo mv -v go /usr/local

Update Profile
sudo nano /etc/profile

Add to Profile

# Go Lang Path
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

Reload Profile
source /etc/profile

Install grpcurl
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest

Install go-spacemesh
Make Directory
mkdir go-spacemesh && cd go-spacemesh

Download go-spacemesh
https://github.com/spacemeshos/go-spacemesh/releases
wget https://storage.googleapis.com/go-spacemesh-release-builds/v1.1.3/Linux.zip

Unzip
unzip Linux.zip

Cleanup
mv Linux/* ./ && rm -r Linux Linux.zip

Get CONFIG
wget https://configs.spacemesh.network/config.mainnet.json

Make Data & Log Directory
mkdir sm_data logs

Run Node
Create Session
tmux new -s node

Start Node (I can’t put angle brackets in the description so you will have to add them for the logging)
~/go-spacemesh/go-spacemesh –listen /ip4/0.0.0.0/tcp/7513 –config ./config.mainnet.json -d ./sm_data

Watch Log File
tail -f ~/go-spacemesh/logs/log.txt

Comments are closed.