Download Hyperledger Fabric Source Code


How to download Hyperledger Fabric source code on Ubuntu?



You can follow this tutorial to download Hyperledger Fabric source code on Ubuntu:

1. Set up Go home path. And add the command to your shell initial script, ~/.bashrc, so you don't have to do it again in future logins.

$ export GOPATH=$HOME/go

2. Prepare the Fabric source code directory:

$ mkdir -p $GOPATH/src/

3. Register a username, like "fyicenter", at Your username becomes the LFID (Linux Foundation ID).

4. Generate a private-public key pair for SSH connection with

$ ssh-keygen -t rsa -C ""

Enter file in which to save the key (/home/fyicenter/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): ***
Enter same passphrase again: ***
Your identification has been saved in /home/fyicenter/.ssh/id_rsa.
Your public key has been saved in /home/fyicenter/.ssh/
The key fingerprint is:
The key's randomart image is:
+---[RSA 2048]----+
|    .+o ..+B*.+. |
|       ..+o..++  |

5. Upload the public key to your account, which shares the same LFID account.

  • Log in to
  • Click your account name, then "Settings", at the top right corner.
  • Click "SSH public key". You see an input box.
  • Copy and paste the content of ~/.ssh/ in the input box.
  • Click "Add Key" to save it.

6. Download (clone) the Fabric source code. Remember to replace "LFID" with your LFID (Linux Foundation ID).

$ cd $GOPATH/src/

# git clone ssh://
$ git clone ssh://
Enter passphrase for key '/home/fyicenter/.ssh/id_rsa': ***

# scp -p -P 29418 fabric/.git/hooks/
$ scp -p -P 29418 fabric/.git/hooks/
Enter passphrase for key '/home/fyicenter/.ssh/id_rsa': ***

$ ls -l 
drwxrwxr-x 26 fyicenter 4096 Apr  1 13:09 fabric


Build Hyperledger Fabric from Source Code

Build and Run "Hello" Go Program

Hyperledger Fabric Environment on Ubuntu

⇑⇑ Hyperledger Tutorials

2020-05-15, 1370🔥, 0💬