junod Installation and setup
Instruction to install the junod binary

Choose an Operating System

The operating system you use for your node is entirely your personal preference. You will be able to compile the junod daemon on most modern linux distributions and recent versions of macOS.
For the tutorial, it is assumed that you are using an Ubuntu LTS release.
If you have chosen a different operating system, you will need to modify your commands to suit your operating system.

Install pre-requisites

1
# update the local package list and install any available upgrades
2
sudo apt-get update && sudo apt upgrade -y
3
4
# install toolchain and ensure accurate time synchronization
5
sudo apt-get install make build-essential gcc git jq chrony -y
Copied!

Install Go

Follow the instructions here to install Go.
For an Ubuntu LTS, you can probably use:
1
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
2
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
Copied!
Please install Go v1.17 or later.
Unless you want to configure in a non standard way, then set these in the .profile in the user's home (i.e. ~/) folder.
1
export GOROOT=/usr/local/go
2
export GOPATH=$HOME/go
3
export GO111MODULE=on
4
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Copied!
After updating your ~/.profile you will need to source it:
1
source ~/.profile
Copied!

Build Juno from source

1
git clone https://github.com/CosmosContracts/juno
2
cd juno
3
git fetch
4
git checkout <version-tag>
Copied!
The <version-tag> will need to be set to either a testnet chain-id or the latest mainnet version tag.
For genesis, the mainnet version tag will be v1.0.0 - i.e:
1
git checkout v1.0.0
Copied!
Once you're on the correct tag, you can build:
1
# in juno dir
2
make install
Copied!
To confirm that the installation has succeeded, you can run:
1
junod version
Copied!
Last modified 7d ago