Installing Hyper Ledger Fabric on Windows 10
- Get link
- X
- Other Apps
Steps and links used for Installing Hyper Ledger Fabric on Windows 10
1 | Open power shell in Admin mode. |
2 | Enable windows SubSystem for Linux dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart |
3 | Enable Virtual Machine feature dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart |
4 | Set WSL-2 as default version wsl --set-default-version 2 |
5 | Install Ubuntu app from windows store: Open the Microsoft Store and install Ubuntu 20.04 LTS here |
6 | Install windows terminal It enables multiple tabs, quickly between the Linux command line and the windows command prompt. |
7 | Download linux kernel update package: To update the WSL package download setup at the below-mentioned link, it needs admin privilege. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi |
8 | Open Windows Terminal and add a new ubuntu tab, you won’t be able to see the ubuntu terminal. Under add new terminal section. |
9 | Open Installed, “Ubuntu 20.04 LTS” once, So that it will be linked with Windows terminal. |
10 | Updating and installing basic packages for Ubuntu. sudo apt update && sudo apt upgrade |
11 | Download Docker for windows latest version from https://desktop.docker.com/win/stable/amd64/Docker%20Desktop%20Installer.exe Install Docker |
12 | Enable Docker for Ubuntu
|
13 | Run following command to check if you are able to access it on Ubuntu docker –version docker-compose –version |
14 | Run following command to install and update basic packages on Ubuntu sudo apt update sudo apt upgrade |
15 | cURL Check if cURL already exists curl –v |
16 | If cURL doesn't exists then install it via following command sudo apt-get install curl |
17 | Check if Go lang exists go version |
18 | If Go doesn't then install with following steps: Download the Go lang package for Linux from here. sudo wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz |
19 | The following command will extract the zip file at the downloaded location tar xvf go1.16.3.linux-amd64.tar.gz |
20 | Set GOPATH using following command export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin |
21 | Run the following command to verify that Go lang is installed successfully go version |
22 | Run the following command to if git is installed git -–version |
23 | Install Hyperledger Fabric and Fabric samples Note: Hyperledger fabric version is 2.3.2 |
24 | Create a directory with following command Creates a new Directory: mkdir -p $HOME/go/src/github.com/ Navigate to that created directory: cd $HOME/go/src/github.com/ |
25 | Download the latest release of fabric samples and docker images. Run following command under $HOME/go/src/github.com/ directory curl -sSL https://bit.ly/2ysbOFE | bash -s |
26 | navigate to fabric folder cd $wsl cd go/src/github.com/fabric-samples |
27 | Go to test-network cd test-network Run following command to remove existing any container or artifacts form previous run. ./network.sh down |
28 | Running following will boot up fabric test network ./network.sh up |
29 | Run following command to list down all running docker images in docker docker ps –a |
30 | Same you can look at docker GUI |
Refer my video for better understanding
- Get link
- X
- Other Apps
thanks a lot
ReplyDeleteWelcome :)
Deleteafter the installation, is there any tutorial to develop a simple application on it?
ReplyDeleteYou can try to create and deploy your first blockchain network using hyperledger fabric.
Deletehttps://prasadpusalkar.blogspot.com/2023/07/create-and-deploy-block-chain-network.html
Steps are provided on ubuntu but you can follow them on windows subsystem too.
Thanks alot.
DeleteThank you very much for this useful information, I am new to blockchain I find this very helpful. Thanks for your efforts.
ReplyDeleteWelcome :)
DeleteI really like your content. Is this video still relevant in 2024? I'm interested in learning blockchain coding, starting with Hyperledger Fabric, for a school project. Could you provide me with some current sources to learn Hyperledger Fabric?
ReplyDeleteThanks. Love from PK
ReplyDeleteThanks Man. I keep going in circles in my installation. Without you who knows how many days I can't sleep. Thanks man. I appreciate it so much.
ReplyDelete