Install Prerequisites for Hyperledger Fabric

Set the Locales to en_us_UTF8 if not already set up

sudo dpkg-reconfigure locales

Update and Upgrade

sudo apt-get update && sudo apt-get upgrade

Set up new user

sudo adduser org5
sudo usermod -aG 
sudo org5 su - org5

Install Prerequisites

sudo apt-get install curl git docker-compose nodejs npm python 
sudo npm install [email protected] -g

Set up docker

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

Install golang

tar -xzvf go1.14.1.linux-amd64.tar.gz

sudo mv go/ /usr/local

Edit go path in .bashrc:

nano ~/.bashrc

Paste it in this file:

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

Exit from User and Reenter Again

exit && su - org5