Skip to content

Instantly share code, notes, and snippets.

@mamun67
Created November 5, 2017 14:30
Show Gist options
  • Save mamun67/955013074a4f12fa1b8b9076170cec05 to your computer and use it in GitHub Desktop.
Save mamun67/955013074a4f12fa1b8b9076170cec05 to your computer and use it in GitHub Desktop.
Steps to Setup Hyperledger Fabric V1.0
Pre-requisites for Hyperledger setup in Ubuntu 16.04LTS
Open a terminal window: CTRL+ALT+T.
Type the following command and enter your password:
$ sudo apt install curl
To check, run the following command in your terminal/command line:
$ curl -V
Install Docker CE 17.05 and Compose 1.13.0
Note: Few Commands wont work in lower version of compose
To Download the correct version of Docker follow this link https://gist.github.com/mamun67/f6b88124f26b38b7dd03c555d6b41e6a
To install Node.js and npm, run the following commands in your terminal/command line:
$ sudo bash -c "cat >/etc/apt/sources.list.d/nodesource.list" <<EOL
deb https://deb.nodesource.com/node_6.x xenial main
deb-src https://deb.nodesource.com/node_6.x xenial main
$ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
$ sudo apt update
$ sudo apt install nodejs
$ sudo apt install npm
Verify the installation, as well as the versions of both Node.js and npm, and make sure the Node.js version you are installing is greater than v6.9 (do not use v7), and the npm version is greater than 3.x:
$ node --version && npm --version
To install Go language, run the following commands in your terminal/command line:
$ sudo apt update
$ sudo curl -O https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz
Note: Switch out the black portion of the URL with the correct filename.
$ sudo tar -xvf go1.9.2.linux-amd64.tar.gz
$ sudo mv go /usr/local
$ echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.profile
$ source ~/.profile
Check that the Go version is v1.8 or later:
$ go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment