HYPER LEDGER FABRIC STEP BY STEP METHOD :-
Hyperledger Fabric is one of the leading enterprise blockchain platforms. Today we are going to learn how to install it on the latest version of ubuntu 20.04 LTS.
We will be installing the following:
Git
cURL
Docker and Docker Compose
Go Programming Language
Node.js Runtime and NPM
Python
Step 1: Create A New USER
Setup a new user, it’s good practice not to use root to install these software.
sudo adduser “name of new user”
Now we need to add our user to the sudo group.
sudo usermod -aG sudo “name of new user”
Switch to our newly created user:
su – “name of new user”
Step 2: Install Prerequisites
Install Git, cURL, docker, docker-compose, Node.js , NPM & Python
sudo apt-get update
sudo apt-get install git curl docker.io docker-compose nodejs npm python
Update NPM to 5.6.0 and Configure Docker
sudo npm install npm@5.6.0 -g
sudo usermod -a -G docker $USER
sudo systemctl start docker
sudo systemctl enable docker
Install and configure GoLang
wget https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz tar
-xzvf go1.13.6.linux-amd64.tar.gz
#Move go to local
sudo mv go/ /usr/local
#Create a new folder go inside home
cd ~
mkdir go
#open
.bashrc pico ~/.bashrc
#go to the end of bashrc file and add the following:
export GOROOT=/usr/local/go export GOPATH= /home/”name of new user”/go export PATH=$PATH:$GOROOT/bin
#replace “name of new user” with your newly created user
Log out and Log back as a new user
Steve Rich's Exciting New Book: A Journey into the World of Forex Trading!
Interviewexit
su – “name of new user”
Step 3: Install Hyperledger Fabric Binaries, Docker Containers & Samples
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s 2.0.0
Step 4: Test The Installation
To make sure that everything works fine, you can deploy a test network by using scripts that are provided in the fabric-samples repository. The test network is provided for learning about Fabric by running nodes on your local machine. Developers can use the network to test their smart contracts and applications. The network is meant to be used only as a tool for education and testing and not as a model for how to set up a network.
Navigate to the test network directory by using the following command:
cd fabric-samples/test-network
In this directory, you can find an annotated script, network.sh, that stands up a Fabric network using the Docker images on your local machine. You can run ./network.sh -h to print the script help text:
From inside the test-network directory, run the following command to remove any containers or artifacts from any previous runs:
./network.sh down
You can then bring up the network by issuing the following command. You will experience problems if you try to run the script from another directory:
./network.sh up
This command creates a Fabric network that consists of two peer nodes, one ordering node. No channel is created when you run ./network.sh up, though we will get there in another guide. If the command completes successfully, you will see the logs of the nodes being created:
Check if all the docker containers are running:
docker ps -a
Clean the Network
./network.sh down
Congratulations! You Have Successfully Installed Hyperledger Fabric In Your Machine.
_____________________________________________________________
Need Help Exploring Linux??
A 25 Page Checklist & The Linux System Mind Map
📚 https://learn.savvynik.com
Want more info/content?
https://savvynik.com
DOWNLOAD UBUNTU FROM : ubuntu.com
DOWNLOAD VIRTUAL BOX FROM : virtualbox.org
PREVIOUS VIDEOS:-
HOW TO INSTALL UBUNTU 20.04 LTS ON VIRTUALBOX 2022:-
https://youtu.be/mviEZDjJeC4
HOW TO GET FREE ALL PAID APPS ON PLAYSTORE 2022:-
https://youtu.be/MOtxTdhscq0
HOW TO GET FREE MEMBERSHIP OF NETFLIX :
https://youtu.be/7ux7KWlMGWk
HOW TO INSTALL PAROT OS IN VIRTUAL BOX 2022:
https://youtu.be/ZFpS6TQHgwY
HOW TO INSTALL KALI LINUX IN VIRTUAL BOX 2022 : https://youtu.be/lVfW5-5DoCE
How To Get Verifed Badge On Instagram • https://youtu.be/oOYK3iafZcU
TERMUX TUTORIAL BEGINNERS TO ADVANCE • https://youtu.be/Cat64v9LZ5k
ONLINE COURSES •https://youtu.be/W5eFfV-RL-0
DO FOLLOW US ON INSTAGRAM FOR DAILY CONTENT
INSTAGRAM:https://instagram.com/anonymous_vapir…
WHATSAPP GROUP : https://chat.whatsapp.com/BDbSx9uwjzP…
#kalilinux #technology #ubuntu #linux #tech_tickels #hyperledger #blockchain