Skip to content


Install dependencies

  1. Add the Golang PPA repository to get the latest version of Golang

    sudo add-apt-repository ppa:longsleep/golang-backports
  2. Update the packages list

    sudo apt-get update
  3. Install Golang and other required packages

    sudo apt-get install --yes curl git golang-go jq make unzip
  4. Export Golang environment variables


    Append the below lines to the file ${HOME}/.bashrc and execute the command source ${HOME}/.bashrc to reflect in the current Terminal session

    export GOROOT=/usr/lib/go
    export GOPATH=${HOME}/go
    export GOBIN=${GOPATH}/bin
    export PATH=${PATH}:${GOROOT}/bin:${GOBIN}

Install sentinelhub software

git clone "${HOME}/sentinelhub"
cd "${HOME}/sentinelhub"
git checkout <ENTER_TAG>
make install
sudo ln -s "${GOBIN}/sentinelhub" /usr/local/bin/sentinelhub

Initialize the Sentinel Hub

sentinelhub init --chain-id sentinelhub-2 "<SET_MONIKER>"
curl -fsLS -o "${HOME}/" ""
unzip -d "${HOME}/.sentinelhub/config/" "${HOME}/"
rm "${HOME}/"

Update the node config

  1. Open config.toml file with a text editor

    vim ${HOME}/.sentinelhub/config/config.toml
  2. Get the peers and seeds from here and set them

    persistent_peers = "<SET_PEERS>"
    seeds = "<SET_SEEDS>"
  3. Open app.toml file with a text editor

    vim "${HOME}/.sentinelhub/config/app.toml"
  4. Get minimum gas prices from here and set it

    minimum-gas-prices = "<SET_MINIMUM_GAS_PRICES>"

Add a systemd unit file

  1. Open the sentinelhub.service file with a text editor

    sudo vim /etc/systemd/system/sentinelhub.service
  2. Paste the below text

    Description=Sentinel Hub Daemon
    ExecStart=sentinelhub start
  3. Reload the systemd Daemon

    sudo systemctl daemon-reload
  4. Enable autostart of Sentinel Hub service

    sudo systemctl enable sentinelhub.service