<?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 Saidur Rahman on Medium]]></title>
        <description><![CDATA[Stories by Saidur Rahman on Medium]]></description>
        <link>https://medium.com/@saidurrahman?source=rss-4477daa4daa6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UwGKrGjbWv-faztX.</url>
            <title>Stories by Saidur Rahman on Medium</title>
            <link>https://medium.com/@saidurrahman?source=rss-4477daa4daa6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:29:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saidurrahman/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[Install and Build local blockchain using Substrate in Linux (Ubuntu/Debian) environment]]></title>
            <link>https://medium.com/@saidurrahman/install-and-build-local-blockchain-using-substrate-in-linux-ubuntu-debian-environment-cb582b1cc915?source=rss-4477daa4daa6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb582b1cc915</guid>
            <dc:creator><![CDATA[Saidur Rahman]]></dc:creator>
            <pubDate>Sun, 02 Oct 2022 07:18:20 GMT</pubDate>
            <atom:updated>2022-10-02T10:49:36.725Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Substrate :</strong></h3><p>Substrate is an open source, modular, and extensible framework for building blockchains. It’s a not a blockchain itself . It’s framework written in rust code in order quickly build your blockchain. So when you need to think to install Substrate you mainly install rust based packages and blockchain related stuffs like Cryptography .</p><p>To get you started, the Substrate Developer Hub provides an out-of-the-box working Substrate-based node template. Without making any changes, you can use this node template to create a working blockchain network with some predefined user accounts and funds.</p><p>Below listed down what we need to do to setup Rust and build a node</p><h3><strong>Step by Step Installation</strong></h3><ol><li>pre requisite of linux system</li><li>Before install Rust</li><li>Install Required package for Rust and Rust Toolchain</li><li>Set up a local Substrate Node</li><li>Compile the substrate Node</li><li>Start the lcoal Node</li><li>Install the Front End Template</li><li>Start the Front End Template</li><li>Transfer Transactions</li><li>References</li></ol><p><strong>Pre Requisite of Linux System</strong></p><blockquote>I try to install substrate in Ubuntu 20.04 . There i found at least 2 MB memory needed to install substrate successfully . Less than 2 MB i found this error eventually : get error for Compiling <strong>libsecp256k1</strong>.</blockquote><p><strong>Before You install Rust</strong></p><p>At the very beginning , for you OS you need to install or download any additional packages . For that you need to install below command :</p><pre>sudo apt install build-essential</pre><blockquote>As Blockchain required cryptography and generate private/public key-value pairs that’s why need the following packages before install Rust.</blockquote><blockquote>clang curl git make libssl-dev</blockquote><blockquote>sudo apt install git clang curl libssl -dev llvm libudev-dev make protobuf-comp pkg-config</blockquote><h3>Install Rust and the Rust toolchain</h3><ol><li>Download Rust :</li></ol><p>curl https://sh.rustup.rs -sSf | sh</p><p>2. Configure current shell to reload your PATH environment variable so that it includes the Cargo bin directory by running the following command:</p><pre>source ~/.cargo/env</pre><p>3. Configure the Rust toolchain to default to the latest stable version by running the following commands:</p><pre>rustup default stable<br>rustup update</pre><p>4. Add the nightly release and the nightly WebAssembly (wasm) targets by running the following commands:</p><pre>rustup update nightly<br>rustup target add wasm32-unknown-unknown --toolchain nightly</pre><p>5. Verify your installation by running the following commands:</p><pre>rustc --version<br>rustup show</pre><p>6. If need to update rust to latest version : [below steps are required when necessary ]</p><pre>update rust </pre><p>7. If you need to uninstall rust</p><pre>rustup self uninstall</pre><h3>Prepare a Substrate node using the node template</h3><ol><li>Download the latest version of substrate from git repository . The Substrate node template provides a working development environment so that we can start building on Substrate right away.Clone the node template repository using the version latest branch by running the following command:</li></ol><pre>git clone https://github.com/substrate-developer-hub/substrate-node-template</pre><p>2. Change to the root of the node template directory by running the following command:</p><pre>cd substrate-node-template</pre><p>3. Check the branch of your git repository and then download the specific branch</p><pre>git branch ## checkout your branch<br>## comment you can pull desire branch git checkout &lt;commit-hash&gt;<br>git checkout polkadot-v0.9.28</pre><p>4. Compile the node template by running the following command:</p><pre>cargo build --release</pre><p>should always use the — release flag to build optimized artifacts.</p><p>5. Start the node in development mode by running the following command:</p><pre>./target/release/node-template --dev</pre><p><em>The </em><em>node-template command-line options specify how you want the running node to operate. In this case, the </em><em>--dev option specifies that the node runs in developer mode using the predefined </em><em>development chain specification. By default, this option also deletes all active data—such as keys, the blockchain database, and networking information when you stop the node by pressing Control-c. Using the </em><em>--dev option ensures that you have a clean working state any time you stop and restart the node. If you try to access externally or by ip address instead of localhost then please execute below command .</em></p><pre>./target/release/node-template --dev --tmp --ws-external --rpc-external</pre><p>6. Verify the node</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsAwycFW_JD4uBMOF4eUZw.png" /><figcaption>terminal should display out similar to above</figcaption></figure><p>If the number after finalized is increasing, your blockchain is producing new blocks and reaching consensus about the state they describe.Next we will look into the details of what’s reported in the log output.</p><h3>Install the front-end template</h3><p>The front-end template uses <a href="https://reactjs.org/">ReactJS</a> to render a web browser interface that enables you to interact with the Substrate-based blockchain node. You can use this Front-end template as a starting point for creating user interfaces for your own projects in future.</p><p>The front-end template requires <a href="https://yarnpkg.com/">Yarn</a> and <a href="https://nodejs.org/">Node.js</a>. If you don’t have these tools, install them first.</p><p>To install the front-end template:</p><ol><li>Check whether node is installed on your local computer by running the following command:</li></ol><pre>node --version</pre><blockquote>If the command doesn’t return a version number, download and install node by following the instructions. The node version should be at least v14 to run the front-end template.</blockquote><pre>sudo apt update<br>sudo apt install nodejs<br>node -v <br>sudo apt install npm</pre><pre>#or you can follow this to install <br>curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -<br>sudo apt-get install -y nodejs<br>sudo apt-get install gcc g++ make</pre><pre># update npm to latest version <br>sudo npm install npm -g</pre><p>2. Check whether yarn is installed on your local computer by running the following command. The yarn version should be at least v3 to run the front-end template.</p><pre>yarn --version</pre><p>If the command doesn’t return a version number, download and install yarn by running the following command:</p><pre>npm install -g yarn</pre><pre># or follow below </pre><pre>curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg &gt;/dev/null</pre><pre>echo &quot;deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main&quot; | sudo tee /etc/apt/sources.list.d/yarn.list</pre><pre>sudo apt-get update &amp;&amp; sudo apt-get install yarn</pre><p>3. Clone the front-end template repository by running the following command:</p><pre>git clone https://github.com/substrate-developer-hub/substrate-front-end-template</pre><p>4. Change to the root of the front-end template directory by running the following command:</p><pre>cd substrate-front-end-template</pre><p>5. Install the dependencies for the front-end template by running the following command:</p><pre>yarn install</pre><p>Next will show you how to start and do a transaction</p><h3>Start the front-end template</h3><p>The Substrate front-end template consists of user interface components to enable you to interact with the Substrate node and perform a few common tasks.</p><p>To use the front-end template:</p><p>1.Open a new terminal shell on your computer, change to the root directory where you installed the front-end template.</p><ol><li>Open a new terminal shell on your computer, change to the root directory where you installed the front-end template.</li></ol><p>2. Start the Front-end template by running the following command:</p><pre># if you want to browse ip address instead of local ip <br> ./src/config/development.json<br># set your ip address<br># if needed then follow above <br>yarn start</pre><p>3. Open <a href="http://localhost:8000/">http://localhost:8000</a> in a browser to view the front-end template. or Open <a href="http://your-ip-address:8000/">http://your-ip-address:8000</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6dwqs1l_KWoiGxXVhmrYAg.png" /></figure><p>Resources :</p><ol><li><a href="https://docs.substrate.io/tutorials/get-started/build-local-blockchain/">https://docs.substrate.io/tutorials/get-started/build-local-blockchain/</a></li><li><a href="https://docs.substrate.io/install/linux/">https://docs.substrate.io/install/linux/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb582b1cc915" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>