Teach yourself — Hyperledger in 24 hours — Hour 04:00 — Hyperledger Fabric — Environment Setup

Logeswaran Audhikesavan
Feb 23 · 3 min read
Source: Google

For Ubuntu/Linux :

System Configuration

Pre-Requisites

Install curl
1) Sudo apt update
2) sudo apt-get install curl
Install Dockers:
1) sudo apt install apt-transport-https ca-certificates curl software-properties-common
2) curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3) sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
4) sudo apt update
5) apt-cache policy docker-ce
6) sudo apt install docker-ce --> to install docker composer
7) sudo systemctl status docker --> to check docker is running fine background
Install Go
1) sudo apt install -y golang
2) export GOROOT=/usr/lib/golang
3) export GOPATH=$HOME/projects
4) export PATH=$PATH:$GOROOT/bin
5) Set this in .profile file for permenantly
6) . ~/.profile -> this command will help you to refresh the profile without loggingout
Install Nodejs
1) sudo apt-get install nodejs
2) sudo apt-get install npm
Install NVM
1) sudo apt-get install build-essential libssl-dev
2) curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh -o install_nvm.sh
Upgrade Node & NPM
1) nvm install 8.11.1 (8.11.1 is the version I am looking for) -> this will upgrade/update nodejs
2) npm install npm@6.4.1 -g --> this will upgrade npm
Install Binaries(Fabric)
------curl -sSL http://bit.ly/2ysbOFE | bash -s <fabric> <fabric-ca> <thirdparty>----
1) curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0 1.3.0 0.4.13So if you want 1.4.0 version, change that accordingly in above command

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade