Skip to content

Setup

The objective of this document is to enable a user with the minimum server configration to setup the Sentinel-Hub on Sentinel Turing-2.

Minimum Configuration Required

  • Cores : 4
  • RAM : 8-16GB
  • Storage Space : 50GB
  • Storage Type : SSD

Step 1 - Install Golang (required 1.13+)

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

sudo add-apt-repository ppa:longsleep/golang-backports

2) After adding the PPA, update packages list using the below command.

sudo apt-get update

3) Install the latest version of Golang and other required packages

sudo apt-get install -y git golang-go make

Step 2 - Setting up Golang environment variables

Export the following Go environment variables

export GOROOT=/usr/lib/go

export GOPATH=$HOME/go

export GOBIN=$GOPATH/bin

export PATH=$PATH:$GOROOT/bin:$GOBIN

You can also append the above lines to $HOME/.bashrc file and run the following command to reflect in current terminal session.

source $HOME/.bashrc

Step 3 - Installing the sentinel-hub

  1. Download sentinel-hub files from the official sentinel-hub repository

    go get -u github.com/sentinel-official/hub

  2. Navigate to the hub folder

    cd $GOPATH/src/github.com/sentinel-official/hub

    If you want to install specific version or commit you can run the below command. By default you get development branch.

    git checkout COMMIT_HASH or git checkout VERSION

  3. Run following command to install the sentinel-hub

    make install

    & if everything goes as intended, it's done!

Walkthrough - Sentinel Hub Setup on Sentinel Turing-2 (YouTube)

Coming Soon!