Tools, FAQ, Tutorials:
Download Hyperledger Fabric Source Code
How to download Hyplerledger Fabric source code on Ubuntu?
✍: FYIcenter.com
You can follow this tutorial to download Hyplerledger 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/github.com/hyperledger
3. Register a username, like "fyicenter", at identity.linuxfoundation.org. Your username becomes the LFID (Linux Foundation ID).
4. Generate a private-public key pair for SSH connection with gerrit.hyperledger.org.
$ ssh-keygen -t rsa -C "joe@fyicenter.com" 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/id_rsa.pub. The key fingerprint is: SHA256:BCcY7U6P/zbg/... joe@fyicenter.com The key's randomart image is: +---[RSA 2048]----+ | .+o ..+B*.+. | ... | ..+o..++ | +----[SHA256]-----+
5. Upload the public key to your gerrit.hyperledger.org account, which shares the same LFID account.
6. Download (clone) the Fabric source code. Remember to replace "LFID" with your LFID (Linux Foundation ID).
$ cd $GOPATH/src/github.com/hyperledger # git clone ssh://LFID@gerrit.hyperledger.org:29418/fabric $ git clone ssh://fyicenter@gerrit.hyperledger.org:29418/fabric Enter passphrase for key '/home/fyicenter/.ssh/id_rsa': *** # scp -p -P 29418 LFID@gerrit.hyperledger.org:hooks/commit-msg fabric/.git/hooks/ $ scp -p -P 29418 fyicenter@gerrit.hyperledger.org:hooks/commit-msg 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
⇑ Hyplerledger Fabric Environment on Ubuntu
⇑⇑ Hyperledger Tutorials
2020-05-15, 1163👍, 0💬
Popular Posts:
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to use "xsl-transform" Azure API Policy Statement? The "xsl-transform" Policy Statement allows y...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...