Category: Installation

  • Blog
  • Category: Installation

Step By Step Guide to Install Hyperledger Fabric in Ubuntu

Before understanding how Install Hyperledger Fabric in Ubuntu  , please try to understand what exactly is block chain and what are the prerequisite required. What is BlockChain and Hyperledger Fabric Blockchain is finally making rounds around the globe. Initially started with Bitcoin , followed by many crypto currencies often refer as altcoin. Many people still believes that blockchain is all about Bitcoin and currency. But Block Chain has many other applications and it can bring decentralization and transparency in every application or service we use. Many organization and understood the importance of BlockChain and supporting platforms were launched to implement blockchain applications. Hyper Ledger Fabric is the a platform to developed and deploy Block Chain application/smart contract in Permission-ed network without requiring any sort of Crypto Currencies. Techaorha Team in India (Mumbai) helps corporate and government to implement block chain application in their existing application make it more secure and transparent. To Install Hyperledger Fabric in Ubuntu following componenets are required. Here is list. Steps required to install other components is detailed below that Curl Python Docker – Make sure you have made it accessible without sudo user and restart your system. Docker Compose Go Lang Node Js Install Dependencies to Install Hyperledger Fabric in Ubuntu Hyperledger requires some package to run the network, You must installing following dependencies to get started. curl to Install Hyperledger Fabric in Ubuntu. INstall curl using following commands in Ubuntu # command to install curl in ubuntu sudo apt-get install curl Installing Python  to Install Hyperledger Fabric in Ubuntu Python is require for running hyperledger. Below command will install python 2.7 , which is the required version of hyper ledger. # Command to install python sudo apt-get install python Installing Docker to Install Hyperledger Fabric in Ubuntu Hyperledger requires docker 17.06.2-ce or greater. So if you install docker from ubuntu packages it may not work as required. Follow the below commands to install Docker in Ubuntu for HyperLedger. #update the package index with the following command sudo apt-get update #install packages to help wiht Docker Installation in Ubuntu sudo apt-get install apt-transport-https ca-certificates curl software-properties-common # Add docker gpg key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – # Verify the key in Ubuntu with Following Command sudo apt-key fingerprint 0EBFCD88 #add repository to Ubuntu System with following command to Install Docker for Hyper ledger sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable” #again update the packages sudo apt-get update #install the specific version of Docker for Hyperledger installation. sudo apt-get install docker-ce=18.03.0~ce-0~ubuntu #thanks Installing Docker Compose to Install Hyperledger Fabric in Ubuntu # download docker-compose sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose #Apply executable to the binary sudo chmod +x /usr/local/bin/docker-compose #check docker composeversion docker-compose –version Installing Go-Lang  to Install Hyperledger Fabric in Ubuntu GO lang is high level language developed by Google. Many applications are written in Go-Language. Go-Lang is required to program logic and smart contracts in Hyperledger Follow below step to install go-lang in Ubuntu #Download go-lang tar file using curl with the help of below commands curl -O https://storage.googleapis.com/golang/go1.9.3.linux-amd64.tar.gz #verify the code is from authentic source using below command sha256sum go1.9.3.linux-amd64.tar.gz #Extract the tar file in any folder tar -xvf go1.9.3.linux-amd64.tar.gz #move the go directory to usr/local using the following command sudo mv go /usr/local #open profile using below command sudo vim ~/.profile #following lines to ~/.profile file export GOPATH=$HOME/go export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin #reload the file using following command source ~/.profile #thanks. Installing NodeJs  to Install Hyperledger Fabric in Ubuntu Node Js  is script based programming language. NodeJs is required by Hyperledger fabric to program logic and write contracts. This can also be used to developed front-end with the help of angularjs framework. For Hyper Ledger NodeJs version are limited. Hyperledger fabric does not support NodeJs 9.x and its requires NodeJs above 8.9.x , so here you see option are very limited and the best to to install node js is via source code. Follow below steps to install hyperleger one by one. #update ubuntu package sudo apt-get update #install build essentials sudo apt-get install build-essential openssl libssl-dev pkg-config # change to source directory cd /usr/local/src #create node directory sudo mkdir node #enter into directory cd node #download node js version 8.9.3 using following command sudo wget https://nodejs.org/dist/v8.9.3/node-v8.9.3.tar.gz #Extract the tar file sudo tar zxvf node-v8.9.3.tar.gz #change to extracted nodejs directory cd node-v8.9.3 #Configure the Directory sudo ./configure # Run Make sudo make #Final Installation sudo make install #don’t forget to check the version using following commands node –version npm –version $thanks Download the fabric example and make the files readable. Make sure you navigate to the directory where you want to install the fabric example #download fabric example curl -sSL http://bit.ly/2ysbOFE | bash -s 1.2.0-rc1 Testing. To make sure everything is install as required. Lets run and create your first network on HyperLedger Fabric Generate the Genesis block of Your Network cd fabric-samples/first-network sudo ./byfn.sh generate Start Your Network #Start Your Network sudo ./byfn.sh up If every things goes well , stop your network sudo ./byfn.sh down Thanks for Reading till end. Hope the information provided above is very helpful to you. If you want any help you can always contact us over here.  Techaorha is always ready to take any project or challenges in block chain technology.

Step By Step Guide to Build Monero in Ubuntu – Latest version above 0.12

Building latest version of Monero is getting a bit tuff and many errors occur on the go. This article explains to Build Monero in Ubuntu. Please follow each step since missing a package may lead to an error. This article assumes that you are using ubuntu 16.04 , well most of the step will even work for ubuntu 14 , but you will have to compile certain packages to Build Monero in Ubuntu. If its a fresh installation of Ubuntu please execute following commands sudo apt-get update sudo apt-get install build-essential  1. Step 1 Install cmake to Build Monero in Ubuntu Here you should build cmake from source simple reason is version  if you install the camke via command “sudo apt-get install cmake”  version 3.5 will be installed which throws error while compiling monero. Best way would be to install cmake version atleast 3.10.1 , below commands will help you with installation of cmake version 3.10.1 . wget http://www.cmake.org/files/v3.10/cmake-3.10.1.tar.gz tar -xvzf cmake-3.10.1.tar.gz cd cmake-3.10.1/ ./configure make sudo make install sudo update-alternatives –install /usr/bin/cmake cmake /usr/local/bin/cmake 1 –force 2. Step 2 Install dependencies to Build Monero in Ubuntu To build monero some packages are required , this packages mostly inlcue boost , ssl etc. Below command will install all the required dependencies for Boost. You can always contact Techaroha if you want to clone a new currency from Monero. Please contact us here. sudo apt-get install pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libminiupnpc-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libgtest-dev doxygen graphviz libpcsclite-dev  3. Step 3 , Clone the repository of Monero recursively This is most important and it has to be done in right way. I got stuck for 2 days because of this. You should clone the repository recursively , other wise all the files won’t be getting downloaded you will face many issues again and again , mostly like  undefined reference to `explicit_bzero’ , undefined reference to `memset_s’ or undefined reference to `pthread_create’. Best way to avoid any such error is to clone the repository recursively using this command. git clone –recursive https://github.com/monero-project/monero.git  4. Step 4 , Clone the repository of Monero recursively Now the final make command , go to directory of monero  and fire the make command , it will stall building , its gonna take some time so just be patience. Use the following commands cd monero make Techaroha team a Block Chain development company based in Mumbai(India) has experience block chain development team and can help you in all phases of coin development for Coin Development to Listing. To get the details of our service please go through the following link To Launch Cryptocurrency , please click here. You want help with ICO please click here.

Install Node Js from Ubuntu Packages

Install Node Js from Ubuntu Packages Introduction Node.js is a JavaScript platform for general-purpose programming that allows users to build network applications quickly. By leveraging JavaScript on both the front- and back-end, development can be more consistent and designed within the same system. Node JS is required to run the UI of the Explorer and interact with coin to fetch the data and insert the same into Mongo DB. There are several ways to install node js 1. Binary Installation. To install Node JS from Binary  click here 2. Installation from Source Code. To install Node JS from Source Code Click Here 3. Installation from Ubuntu Packages. we are going to install Node JS from Installation from Ubuntu Packages.  Install Node.js with Ubuntu Package Manager Step 1: To install Node.js, execute the following command in your terminal sudo apt-get install nodejs Step 2: install the Node package manager sudo apt-get install npm Step 3: Create a symbolic link for a node sudo ln -s /usr/bin/nodejs /usr/bin/node Step 4: Check the version $ node -v v0.10.25 $ npm -v 1.3.10 Install Node.js with Maintained Ubuntu Packages Step 1: Add the Node.js-maintained repositories to your Ubuntu package source list curl -sL https://deb.nodesource.com/setup | sudo bash – Step 2: install Node.js with apt-get sudo apt-get install nodejs Step 3: create a symbolic link for the node sudo ln -s /usr/bin/nodejs /usr/bin/node Step 4:  Check the version $ node -v v0.10.44 $ npm -v 2.15.0 If you see the versions displayed for node and npm, you have successfully compiled Node.js with npm from Packages.

Install MongoDB in Ubuntu Step by Step Guide

Install MongoDB  in Ubuntu Introduction Mongo DB serves as a back-end to  Explorer. All the transaction in blockchain is also stored in Mongo DB. MongoDB is a free and open-source NoSQL document database used commonly in modern web applications. This tutorial will help you set up MongoDB. Install MongoDB step 1: Reload local package database. sudo apt-get update step 2: Install the MongoDB packages. sudo apt-get install -y mongodb-org step 3: Install a specific release of MongoDB. To install a specific release, you must specify each component package individually along with the version number, as in the following example: sudo apt-get install -y mongodb-org=3.6.0 mongodb-org-server=3.6.0 mongodb-org-shell=3.6.0 mongodb-org-mongos=3.6.0 mongodb-org-tools=3.6.0 step 4: Start MongoDB. sudo service mongod start Once Mongo DB is installed we need to create the database which will be by iquidus explorer and set up the credentials for that. Please click here to create the database  and  set up the credentials