Install Prerequisities for hyperledger fabric v-1.4.6

At first run the following commands:

sudo apt-get update 
sudo apt-get upgrade

Then install:

sudo apt-get install curl git docker-compose nodejs npm python

Set up docker configuration:

sudo usermod -a -G docker $USER
sudo systemctl start docker
sudo systemctl enable docker

Install newer version of npm:

sudo npm install [email protected] -g



IBM Hyperledger Fabric API uses Go for compiling and building. To install the Go language, we need to download the package from the official Go Download Page.

You could also download the package using the wget command from the CLI:


After downloading the package, we need to extract it and move it to /usr/local/ directory so that our application can access it.

To extract and move the files, use the command:

tar -xvzf go1.14.2.linux-amd64.tar.gz
sudo mv go /usr/local

To edit that file, using the command:

sudo nano ~/.bashrc

Include the following lines at the end of the file:

 export GOPATH=/usr/local/go
 export PATH=$PATH:$GOPATH/bin

Last step is exit and reconnect to the server:

sudo ssh -i ~/<path to key file.pem> [email protected]<aws server4 public DNS>