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.18.2.linux-amd64.tar.gz
2
sudo tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz
Copied!
Please install Go v1.18 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
# from $HOME dir
2
git clone https://github.com/CosmosContracts/juno
3
cd juno
4
git fetch
5
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 (Phoenix), the mainnet version tag will be v3.0.0 - i.e:
1
git checkout v3.0.0
Copied!
Once you're on the correct tag, you can build:
1
# from juno dir
2
make install
Copied!
To confirm that the installation has succeeded, you can run:
1
junod version
2
3
# v3.0.0
Copied!