<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vikas choudhary on Medium]]></title>
        <description><![CDATA[Stories by Vikas choudhary on Medium]]></description>
        <link>https://medium.com/@vikaschoudhary572001?source=rss-5a8ca2c6b782------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lCeBWuBUeIwd2KHGAJlSIw.jpeg</url>
            <title>Stories by Vikas choudhary on Medium</title>
            <link>https://medium.com/@vikaschoudhary572001?source=rss-5a8ca2c6b782------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:13:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikaschoudhary572001/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Prerequisites for setting up hyperledger fabric on windows.]]></title>
            <link>https://vikaschoudhary572001.medium.com/prerequisites-for-setting-up-hyperledger-fabric-on-windows-7984dbfa669b?source=rss-5a8ca2c6b782------2</link>
            <guid isPermaLink="false">https://medium.com/p/7984dbfa669b</guid>
            <category><![CDATA[hyperledger-fabric]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[distributed-ledgers]]></category>
            <dc:creator><![CDATA[Vikas choudhary]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 19:41:09 GMT</pubDate>
            <atom:updated>2021-01-26T14:20:19.962Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REfS9Skqx_KCxh3jVIowvg.png" /></figure><h3>Introduction</h3><p>This is a tutorial for setting up the development environment to create a Hyperledger Fabric network on windows. Hyperledger is an open source distributed ledger framework by Linux Foundation.</p><p><a href="https://www.hyperledger.org/use/fabric">Hyperledger Fabric - Hyperledger Foundation</a></p><h4>Enable the Windows developer mode</h4><p>First of all we have to enable the windows developer mode in order to create any fabric based application. You can find the developer mode in windows developer settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J14V1DIwoqNhtPsv8WCT3A.png" /></figure><p>The next thing is to enable the Windows Subsystem for Linux. Since hyperledger fabric heavily depends on Unix commands it’s better to develop it on UNIX environments like Ubuntu or MacOS. In this tutorial we will be using ubuntu on top of windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*VATLVF4B4P_tWLVNYZ6tpg.png" /></figure><h4>Install Ubuntu</h4><p>Now open the Microsoft Store and Install Ubuntu application. It will take some time to download the application as per your internet connection. It will help us to get the Ubuntu terminal on top of windows so we don’t have to install Linux system separately.</p><p>Once the application is installed you can start the ubuntu app and configure the username and password.</p><h3>Installing Docker</h3><p>As we are done with the windows features and installing the Ubuntu application, we move on to the next step which is installing Docker. <strong>Docker is a software platform that provides the ability to package and run an application in an isolated environment called the container.</strong></p><p><a href="https://www.docker.com/">Docker: Accelerated Container Application Development</a></p><p>As we are using Ubuntu on top of windows we need to install docker on both the environments i.e. the windows environment and the Linux subsystem on top of windows. We need to map the docker for both the environments because Ubuntu is running as a virtual machine and doesn’t have the idea about the actual hardware (as docker is a containerization tool we need to tell it what kind of hardware we are using).</p><p>Firstly we will install docker on windows environment. You can directly download and install docker from the link given below.</p><p><a href="https://hub.docker.com/editions/community/docker-ce-desktop-windows/">Docker Desktop for Windows - Docker Hub</a></p><p>Now that docker is installed on our windows environment we will install Docker on our Ubuntu VM. For that you will need to execute the following commands in your Ubuntu terminal.</p><p><strong><em>sudo apt-get update</em></strong> — This command is used to install all the dependencies from Ubuntu source.</p><p><strong><em>sudo apt install curl</em></strong> — To install curl package because curl is a tool set which we will use in order to get any third-party libraries.</p><p>We can install docker on Ubuntu by following the below walk-through steps provided by the docker itself.</p><p><a href="https://docs.docker.com/engine/install/ubuntu/"></a></p><blockquote>Step 1 — Setup the repository</blockquote><pre>$ sudo apt-get update<br><br>$ sudo apt-get install \<br>    apt-transport-https \<br>    ca-certificates \<br>    curl \<br>    gnupg-agent \<br>    software-properties-common</pre><p>This will install different dependencies require to install docker. These dependencies includes some common tools and also includes some CA certification tools.</p><blockquote>Step 2 — Add Docker’s official GPG key</blockquote><p>Now we will use curl to fetch the docker’s official key which is used to verify the downloaded docker on top of Linux.</p><pre>$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -</pre><blockquote>Step 3 — Verify that you now have the key with the fingerprint</blockquote><p>Now we will verify the fingerprint of the key in order to verify that we are getting the correct version of docker.</p><pre>$ sudo apt-key fingerprint 0EBFCD88</pre><blockquote>Step 4 — Setup the stable repository</blockquote><p>In this step we will install the latest docker repository. This is a stable version of docker for our environment.</p><pre>$ sudo add-apt-repository \<br>   &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu \<br>   $(lsb_release -cs) \<br>   stable&quot;</pre><blockquote>Step 5 — Install docker engine</blockquote><p>The final step is to install the docker community tools using the following commands.</p><pre>$ sudo apt-get update<br> $ sudo apt-get install docker-ce</pre><p>With this the docker installation is completed. The next step is to install Docker Compose so that we can run multiple peers on our system.</p><p>To install docker - compose run the following commands in your Ubuntu terminal.</p><pre>sudo curl -L &quot;https://github.com/docker/compose/releases/download/1.28.0/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose</pre><p>Now we will provide permissions to the binary file we have just downloaded.</p><pre>sudo chmod +x /usr/local/bin/docker-compose</pre><p>With this our docker and docker-compose installation is completed. The next thing is to map the docker on Ubuntu to the docker we have installed on our windows environment.</p><p>Now we will install go language using the following command.</p><pre>curl -0 https://storage.googleapis.com/golang/go1.11.2.linux-amd64.tar.gz</pre><p>this command will install a zip file which can be unzipped by using the following <strong><em>tar</em></strong> command</p><pre>tar -xvf go1.11.2.linux-amd64.tar.gz</pre><p>after the unzipping has finished we will move our <strong><em>go </em></strong>binaries to usr/local so that user can have direct access to them.</p><pre>sudo mv go /usr/local</pre><h3><strong>Mapping Docker</strong></h3><p>Open the docker desktop which we have installed on windows environment and expose the daemon tools on tcp://localhost:2375. This is the port which we are going to use to map our windows machine to our Linux machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVSWxJjlwnq09pNRwJ1dIw.png" /></figure><p>Our windows docker will act as host docker which knows about the hardware and our linux docker will act as the client.</p><p>Now we will setup an environment variable containing the tcp port information and will store that in the <strong><em>bashrc </em></strong>file. <em>bashrc </em>file is the bootstrap file which is executed every time the Ubuntu system is up and running.</p><pre>sudo echo &quot;export DOCKER_HOST=&#39;tcp://0.0.0.0:2375&#39;&quot; &gt;&gt; ~/.bashrc</pre><p>Now we will rebuild the <em>bashrc </em>file using the <strong><em>source </em></strong>command.</p><pre>source ~/.bashrc</pre><h3><strong>Installing NodeJS and NPM</strong></h3><p>In order to install NodeJS we will first fetch the current stable repository.</p><pre>sudo bash -c &quot;cat &gt;/etc/apt/sources.list.d/nodesource.list&quot; &lt;&lt;EOL<br>deb <a href="https://deb.nodesource.com/node_6.x">https://deb.nodesource.com/node_6.x</a> xenial main<br>deb-src <a href="https://deb/">https://deb</a>.nodesource.com/node_6.x xenial main<br>EOL</pre><p>The following command is use to fetch the current public key which will verify that our installation is correct for nodeJs, just like we have done in case of docker.</p><pre>curl -s <a href="https://deb.nodesource.com/gpg.key/nodesource.gpg.key">https://deb.nodesource.com/gpg.key/nodesource.gpg.key</a> | sudo apt-key add - </pre><p>Now we will install node and the npm.</p><pre>sudo apt update<br>sudo apt install nodejs<br>sudo apt install npm</pre><p>With this we came to the final step of this tutorial which is to share our windows folder with our linux subsystem.</p><p><em>Before sharing folder make sure that the windows firewall is disabled because it might issue while sharing the folders.</em></p><p>The next thing we are going to do is to make sure that our C drive is open for sharing. For that you have to go to <strong>Sharing</strong> in C drive properties and then <strong>Advance Sharing. </strong>Inside Advance settings go to the permissions and make sure that the permissions are open to all.</p><p>Now our C drive is available to be shared with our Ubuntu VM and we can directly mount our C drive on top of Ubuntu.</p><p>We can mount the C drive on Ubuntu and can check the file system using following command</p><pre>cd /mnt/c</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zV8byFQXpRQ7FOO58W-UpQ.png" /></figure><p>With this your development environment is all set for creating a hyperledger network. You can test it by running a sample network which is available on Hyperledger GitHub page.</p><p><a href="https://github.com/hyperledger/fabric-samples/tree/release-1.4">hyperledger/fabric-samples</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7984dbfa669b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>