Skip to content

Latest commit

 

History

History
90 lines (63 loc) · 2.19 KB

getting-setup.md

File metadata and controls

90 lines (63 loc) · 2.19 KB
description cover coverY
Instruction to install the junod binary
../.gitbook/assets/Gitbook Banner large 6 (1) (1) (1) (1) (1) (1) (1) (1).png
0

Junod Installation and setup

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.

{% hint style="info" %} 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. {% endhint %}

Install pre-requisites

# update the local package list and install any available upgrades
sudo apt-get update && sudo apt upgrade -y

# install toolchain and ensure accurate time synchronization
sudo apt-get install make build-essential gcc git jq chrony -y

Install Go

Follow the instructions here to install Go.

For an Ubuntu LTS, you can probably use:

wget https://golang.org/dl/go1.18.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz

Please install Go v1.18.2 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.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

After updating your ~/.profile you will need to source it:

source ~/.profile

Build Juno from source

# from $HOME dir
git clone https://github.com/CosmosContracts/juno
cd juno
git fetch
git checkout <version-tag>

The <version-tag> will need to be set to either a testnet chain-id or the latest mainnet version tag.

{% hint style="warning" %} For genesis (Phoenix 2), the mainnet genesis version tag will be v9.0.0 - i.e:

git checkout v9.0.0

{% endhint %}

Once you're on the correct tag, you can build:

# from juno dir
make install

To confirm that the installation has succeeded, you can run:

junod version

# v9.0.0