Skip to main content

Installation

Update your server to get the latest version

sudo apt update && sudo apt upgrade -y

Install dependencies

sudo apt install git curl wget tar lz4 unzip jq build-essential pkg-config clang bsdmainutils make ncdu -y

Install Go and Cosmovisor

Install Go

Go is a programming language allowing each node of the Cosmos ecosystem to operate.

cd $HOME
version="1.20.4"
wget "https://golang.org/dl/go$version.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$version.linux-amd64.tar.gz"
rm "go$version.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile

Check GO version, it must return : go version go1.20.4 linux/amd6

go version

Install Cosmovisor

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest

Install Node

Install the current version of node binary.

cd $HOME
git clone https://github.com/Neutaro/Neutaro
cd Neutaro/cmd/Neutaro/
go build
mv $HOME/Neutaro/cmd/Neutaro/Neutaro $HOME/go/bin

Configure Node

Initialize Node

Please replace 'YOUR_MONIKER' with your own moniker.

Neutaro init YOUR_MONIKER --chain-id Neutaro-1

Download Genesis

curl http://154.26.153.186/genesis.json > ~/.Neutaro/config/genesis.json

Configure Seed

Using a seed node to bootstrap is usually the best practice. Alternatively, you can use addrbook or persistent_peers.

sed -i 's/seeds = ""/seeds = "0e24a596dc34e7063ec2938baf05d09b374709e6@109.199.106.233:26656"/' ~/.Neutaro/config/config.toml

Download Snapshot

We provide instructions for installing with our snapshot. Alternatively you can use State-sync.

Install lz4 if needed

sudo apt update
sudo apt install snapd -y
sudo snap install lz4

Download the snapshot

curl -L  https://snap.blockval.io/neutaro/Neutaro-1_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.Neutaro

Launch Node

Configure Cosmovisor Folder

Create Cosmovisor folders and load the node binary.

# Create Cosmovisor Folders
mkdir -p ~/.Neutaro/cosmovisor/genesis/bin
mkdir -p ~/.Neutaro/cosmovisor/upgrades

# Load Node Binary into Cosmovisor Folder
cp ~/go/bin/Neutaro ~/.Neutaro/cosmovisor/genesis/bin

Create Service File

Create a neutaro.service file in the /etc/systemd/system folder with the following code snippet. Make sure to replace USER with your Linux user name. You need sudo previlege to do this step.

[Unit]
Description="neutaro node"
After=network-online.target

[Service]
User=USER
ExecStart=/home/USER/go/bin/cosmovisor run start --home /home/USER/.Neutaro
Restart=always
RestartSec=3
LimitNOFILE=4096
Environment="DAEMON_NAME=Neutaro"
Environment="DAEMON_HOME=/home/USER/.Neutaro"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"

[Install]
WantedBy=multi-user.target

Start Node Service

# Enable service
sudo systemctl enable neutaro.service

# Start service
sudo service neutaro start

# Check logs
sudo journalctl -fu neutaro