<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="basakankit.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="basakankit.github.io/" rel="alternate" type="text/html" /><updated>2026-05-08T18:27:27+00:00</updated><id>basakankit.github.io/feed.xml</id><title type="html">Ankit’s Blog</title><subtitle></subtitle><entry><title type="html">Glimpse about a router firmware</title><link href="basakankit.github.io/2026/05/08/Glimpse-about-a-router-firmware.html" rel="alternate" type="text/html" title="Glimpse about a router firmware" /><published>2026-05-08T00:00:00+00:00</published><updated>2026-05-08T00:00:00+00:00</updated><id>basakankit.github.io/2026/05/08/Glimpse-about-a-router-firmware</id><content type="html" xml:base="basakankit.github.io/2026/05/08/Glimpse-about-a-router-firmware.html"><![CDATA[<p>Most of us use a Wi-Fi router every day without thinking much about what is happening inside it.<br />
We connect our phones or laptops to the internet, and somehow the router makes everything work.</p>

<p>But behind the blinking lights and antennas, a router is actually a small computer.</p>

<p>For better understanding refer <a href="https://www.cloudflare.com/learning/network-layer/what-is-a-router/">https://www.cloudflare.com/learning/network-layer/what-is-a-router/</a></p>

<p><img src="\assets\Glimpse-inside-a-router-firmware\routers-nw.png" alt="routers-nw" /></p>

<p>Credits - <a href="https://courses.grainger.illinois.edu/ece598hpn/fa2022/slides/lect8-softwarerouters.pdf">https://courses.grainger.illinois.edu/ece598hpn/fa2022/slides/lect8-softwarerouters.pdf</a></p>

<p>Just like a computer runs an operating system such as Windows or Ubuntu, a router also needs software to function.<br />
This special software is called <strong>firmware</strong>.</p>

<p>The firmware acts as the brain of the router. It helps the router:</p>

<ul>
  <li>send internet data to the correct device</li>
  <li>manage Wi-Fi connections</li>
  <li>provide security through firewall rules</li>
  <li>assign IP addresses to devices</li>
  <li>control network settings</li>
</ul>

<p>Without firmware, the router hardware would not know what to do.</p>

<p>Unlike desktop operating systems, router firmware is usually lightweight because routers have limited memory and processing power. Most modern routers use a customized version of Linux designed specifically for networking tasks.</p>

<p>Popular router firmware systems include:</p>

<ul>
  <li>OpenWrt</li>
  <li>DD-WRT</li>
  <li>Tomato</li>
</ul>

<p>In this article, we will take a simple look inside router firmware and understand the major software components that help a router operate behind the scenes.</p>

<p><img src="\assets\Glimpse-inside-a-router-firmware\click-mod-router.png" alt="routers-nw" /></p>

<h2 id="the-software-inside-the-router">The Software Inside the Router</h2>

<p>A router firmware is not a single program.<br />
It is a collection of smaller software components working together behind the scenes.</p>

<p>Some manage Wi-Fi, some provide security, while others help devices connect to the internet.</p>

<p>Even though users only see a simple settings page, many background services are constantly running inside the router.</p>

<hr />

<h2 id="linux-kernel--the-core">Linux Kernel — The Core</h2>

<p>At the heart of most modern routers is the Linux kernel.</p>

<p>It interacts with the hardware and handles core networking tasks such as forwarding data between devices.</p>

<p>It acts as the foundation on which the rest of the router software runs.</p>

<hr />

<h2 id="web-interface--the-control-panel">Web Interface — The Control Panel</h2>

<p>The router settings page we open in a browser is provided by a web interface.</p>

<p>In OpenWrt, this interface is called <strong>LuCI</strong>.</p>

<p>It allows users to:</p>

<ul>
  <li>change Wi-Fi passwords</li>
  <li>configure firewall settings</li>
  <li>view connected devices</li>
  <li>restart services</li>
</ul>

<p>without using terminal commands.</p>

<hr />

<h2 id="dhcp-and-dns-services">DHCP and DNS Services</h2>

<p>When a phone or laptop connects to the router, it needs an IP address.</p>

<p>A background service automatically assigns these addresses using DHCP.</p>

<p>Routers also convert website names such as <code class="language-plaintext highlighter-rouge">google.com</code> into numerical IP addresses using DNS services.</p>

<hr />

<h2 id="firewall--the-security-guard">Firewall — The Security Guard</h2>

<p>The firewall monitors incoming and outgoing network traffic.</p>

<p>It helps block suspicious connections and protects devices inside the local network from unwanted access.</p>

<hr />

<h2 id="wi-fi-management-software">Wi-Fi Management Software</h2>

<p>Special software inside the router manages wireless communication.</p>

<p>It handles:</p>

<ul>
  <li>Wi-Fi authentication</li>
  <li>encryption</li>
  <li>signal broadcasting</li>
  <li>device connections</li>
</ul>

<p>This helps devices connect securely to the network.</p>

<h2 id="how-does-the-software-inside-a-router-work">How Does the Software Inside a Router Work?</h2>

<p><img src="\assets\Glimpse-inside-a-router-firmware\PANBED-arch.png" alt="PANBED-arch" /></p>

<p>Credits - Xu, Qiaozhi &amp; Zhang, Junxing. (2017). Building a lightweight testbed using devices in personal area networks. Computer Science and Information Systems. 14. 857-873. 10.2298/CSIS161230033X.</p>

<p>Inside a router, multiple software components continuously communicate with each other to process network traffic.</p>

<p>Whenever a device sends a request — for example opening a website - the router software handles it step by step.</p>

<p>A simplified flow looks like this:</p>

<ol>
  <li>A device sends data to the router.</li>
  <li>The Linux kernel receives the network packet.</li>
  <li>Firewall rules check whether the traffic is allowed.</li>
  <li>Routing logic decides where the packet should go.</li>
  <li>Network Address Translation (NAT) may modify the packet information.</li>
  <li>The packet is forwarded to the internet.</li>
</ol>

<p>At the same time, other background services may also be running:</p>

<ul>
  <li>DHCP services assigning IP addresses</li>
  <li>DNS services translating website names</li>
  <li>Wi-Fi management software handling wireless connections</li>
  <li>Web interface services waiting for user configuration requests</li>
</ul>

<p>All these smaller programs work together like different departments inside a system.</p>

<p>Instead of one large application, router firmware is designed as a collection of lightweight services communicating with each other continuously.</p>

<h2 id="openwrt---an-open-source-router-firmware">openWrt - an open source router firmware</h2>

<p>In my jouney of getting to know more about a router software, openWRt seems to be a very important, primarily because it is used in many of our home routers like d-link, jio etc.</p>

<p>openWrt is fully customizable accoring to a hardware needs of router/device even so much that it can be used on rasberry pi.</p>

<p>To get know about it more refer <a href="https://openwrt.org/">https://openwrt.org/</a>
or I found an excellent course on it at youtube <a href="https://youtu.be/MB2QLwgI1sw?si=Jq-AOqrSLE5Es3Ql">OpenWRT Complete Course become ZERO to HERO</a>.</p>

<p>Enterprise routers typically run specialized firmware such as Cisco IOS on more capable hardware.</p>

<p>These systems are designed for high reliability and continuous operation, since software failures or downtime are often unacceptable in industrial and enterprise environments.</p>

<hr />

<p>In the next blog post, we will dive deeper into the world of router firmware using OpenWrt and explore how the software inside a router actually works behind the scenes.</p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="Git" /><category term="Markdown" /><category term="Blog" /><category term="router" /><category term="firmware" /><category term="openWrt" /><category term="linux kernel" /><category term="networks" /><summary type="html"><![CDATA[Most of us use a Wi-Fi router every day without thinking much about what is happening inside it. We connect our phones or laptops to the internet, and somehow the router makes everything work.]]></summary></entry><entry><title type="html">Receipe of Manually Creating and Configuring a Virtual Machine with Virtual Box in Ubuntu</title><link href="basakankit.github.io/2026/03/12/Receipe-of-Manually-Creating-and-Configuring-a-Virtual-Machine-with-Virtual-Box-in-Ubuntu.html" rel="alternate" type="text/html" title="Receipe of Manually Creating and Configuring a Virtual Machine with Virtual Box in Ubuntu" /><published>2026-03-12T00:00:00+00:00</published><updated>2026-03-12T00:00:00+00:00</updated><id>basakankit.github.io/2026/03/12/Receipe-of-Manually-Creating-and-Configuring-a-Virtual-Machine-with-Virtual-Box-in-Ubuntu</id><content type="html" xml:base="basakankit.github.io/2026/03/12/Receipe-of-Manually-Creating-and-Configuring-a-Virtual-Machine-with-Virtual-Box-in-Ubuntu.html"><![CDATA[<p>In this tutorial I have demonstrated the creation of a virtual machine with virtual box in Ubuntu 20.04. But the same recipe will hold true for any other Ubuntu version.</p>

<p>This vm has been created to run <a href="https://github.com/HewlettPackard/PacketRusher">PacketRusher</a> to simulate a telecom network with <a href="https://magmacore.org/">Magma Core</a>. But you can modify according to your purpose.</p>

<p>First you need to install virtual box.
Next you need to install an iso image of the operating system which you want to use in the VM.</p>

<p>Now, you need to configure the initial setups for the creation of a virtual machine.</p>

<p>Click New to start the creation.</p>

<p><img src="/assets/virtual-box/first-step.png" alt="Selecting-OS-iso" /></p>

<p>Click next, here we will not be going forward with expert mode.</p>

<p>Enter your username and passwork. Click Next</p>

<p><img src="/assets/virtual-box/second-step.png" alt="Enter u pw" /></p>

<p>Select the amount of memeory and the no. of processors you want to allot. Click Next.
<img src="/assets/virtual-box/harware.png" alt="hardware" /></p>

<p><img src="/assets/virtual-box/virtualHardDisk.png" alt="virtualHardDisk" /></p>

<p>Check the summary and click Finish. The virtual machine will be created.</p>

<p>Choose your language. Press Enter to select and move to next step.
<img src="/assets/virtual-box/language.png" alt="language" /></p>

<p><img src="/assets/virtual-box/installerUpdate.png" alt="installerUpdate" /></p>

<p><img src="/assets/virtual-box/keyboardLayout.png" alt="keyboardLayout" /></p>

<p><img src="/assets/virtual-box/networkConnection.png" alt="networkConnection" /></p>

<p><img src="/assets/virtual-box/ConfigureProxy.png" alt="ConfigureProxy" /></p>

<p><img src="/assets/virtual-box/archiveMirror.png" alt="archiveMirror" /></p>

<p>Press tab until you reach Done. Click Enter.
<img src="/assets/virtual-box/GuidedStorageConfiguration.png" alt="GuidedStorageConfiguration" /></p>

<p><img src="/assets/virtual-box/finalSystemSummary.png" alt="finalSystemSummary" /></p>

<p><img src="/assets/virtual-box/Confirm.png" alt="hConfirm" /></p>

<p><img src="/assets/virtual-box/profileSetup.png" alt="profileSetup" /></p>

<p><img src="/assets/virtual-box/sshSetup.png" alt="sshSetup" /></p>

<p><img src="/assets/virtual-box/featuredServerSnaps.png" alt="featuredServerSnaps" /></p>

<p><img src="/assets/virtual-box/installing.png" alt="installing" /></p>

<p><img src="/assets/virtual-box/rebootNow.png" alt="rebootNow" /></p>

<p>Power OFF vm and setup the networking of the vm.
<img src="/assets/virtual-box/powerOffvm.png" alt="powerOffvm" /></p>

<p><img src="/assets/virtual-box/adapter1NAT.png" alt="adapter1NAT" /></p>

<p><img src="/assets/virtual-box/adapter2.png" alt="adapter2" /></p>

<p>Turn on the vm and next we configure ssh to be able to access it remotely from terminal with a lot of freedom.</p>

<p>If all the steps are alright then the visual will be similar to below when you login into your vm.
<img src="/assets/virtual-box/alright.png" alt="alright.png" /></p>

<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="no">Following</span> <span class="n">promts</span> <span class="n">to</span> <span class="n">configure</span> <span class="ss">ssh:

</span><span class="n">sudo</span> <span class="n">apt</span> <span class="n">update</span> <span class="o">&amp;&amp;</span> <span class="n">sudo</span> <span class="n">apt</span> <span class="n">upgrade</span> <span class="o">-</span><span class="n">y</span>
<span class="n">sudo</span> <span class="n">apt</span> <span class="n">install</span> <span class="o">-</span><span class="n">y</span> <span class="n">openssh</span><span class="o">-</span><span class="n">server</span> <span class="n">curl</span> <span class="n">wget</span> <span class="n">git</span>

<span class="no">Next</span> <span class="n">we</span> <span class="n">have</span> <span class="n">to</span> <span class="n">configure</span> <span class="no">IP</span> <span class="n">address</span> <span class="k">for</span> <span class="n">the</span> <span class="ss">vm:

</span><span class="n">sudo</span> <span class="n">nano</span> <span class="sr">/etc/ne</span><span class="n">tplan</span><span class="o">/</span><span class="mo">00</span><span class="o">-</span><span class="n">installer</span><span class="o">-</span><span class="n">config</span><span class="p">.</span><span class="nf">yaml</span></code></pre></figure>

<p><img src="/assets/virtual-box/netplan-ip.png" alt="netplan-ip" /></p>

<p>To Save: cltr+shift+o -&gt; press Enter -&gt; cltr+X</p>

<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="no">To</span> <span class="n">apply</span> <span class="n">the</span> <span class="ss">configurations:
</span><span class="n">sudo</span> <span class="n">netplan</span> <span class="n">apply</span></code></pre></figure>

<p>Ping is success from another vm. IP configuration a sucsess!
<img src="/assets/virtual-box/ping-ip-success.png" alt="ping-ip-success" /></p>

<p>You can ping from host too, to check if ip is alright.</p>

<p>Next ssh into the vm from terminal:
ssh username@ip-address
<img src="/assets/virtual-box/sshIntoPacketrusher.png" alt="sshIntoPacketrusher" /></p>

<p>You can clone your VM too, it will save a lot of time when trying to create another vm.</p>

<p>I go on to do a full clone. You can choose according to your purpose.
Keep in mind to chnage ip address of cloned machine to avoid conflicts.</p>

<p><img src="/assets/virtual-box/cloned.png" alt="cloned" /></p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="4G" /><category term="5G" /><category term="Mobile Cellular Networking" /><category term="Evolved Packet Core" /><category term="EPC" /><category term="Magma Core" /><category term="Blog" /><category term="Website" /><category term="Linux" /><category term="Ubuntu" /><category term="Ubuntu 20.04" /><category term="virtual machine" /><category term="Virtual Box" /><category term="Manual Configuration" /><category term="VM recipe" /><category term="PacketRusher" /><summary type="html"><![CDATA[In this tutorial I have demonstrated the creation of a virtual machine with virtual box in Ubuntu 20.04. But the same recipe will hold true for any other Ubuntu version.]]></summary></entry><entry><title type="html">Overview of Magma Architecture on Local Deployment Point of View.</title><link href="basakankit.github.io/2026/03/03/Overview-of-Magma-Architecture-on-Local-Deployment-Point-of-View/html" rel="alternate" type="text/html" title="Overview of Magma Architecture on Local Deployment Point of View." /><published>2026-03-03T00:00:00+00:00</published><updated>2026-03-03T00:00:00+00:00</updated><id>basakankit.github.io/2026/03/03/Overview-of-Magma-Architecture-on-Local-Deployment-Point-of-View/Overview-of-Magma-Architecture-on-Local-Deployment-Point-of-View.</id><content type="html" xml:base="basakankit.github.io/2026/03/03/Overview-of-Magma-Architecture-on-Local-Deployment-Point-of-View/html"><![CDATA[<p>This is a collection of notes for better understanding of architecture of magam. I am still in progress to complete the blog.</p>

<p>Magma adopts many principles from cloud native application architecture and modern data center design to achieve a scalable and resilient architecture for implementing a mobile core network.</p>

<p><img src="/assets/magma-arch/magma-overall.png" alt="Magma-Overall-Diagram" />
Magma is mainly divided in 3 different compononets for minimalised deployment point of view:</p>

<p><strong>Acess Gateway(AGW)</strong>: Implemnts the components of EPC which include SWG, PGW (data plane/data plane)and some aspects of MME (control plane). It manages the dynamic nature of UE like starting, ending, hand-over of new connection, metering etc. Provides the configuration interface for Magma via REST APIs.</p>

<p><strong>Orchestrator (orc8r)</strong>: 
 The orchestrator is the central point for configuration input, remote device management, and monitoring of a Magma deployment. It implements centralized management plane and aspects of control plane. For example, a new user can be added to the network via the API to the Orchestrator. A single orchestrator connects to multiple Magma access gateways.<br />
 It Collectively constitute FCAPS - fault management, configuration management, accounting management, performance management, and security management.
Implemented through docker on host OS to emulate the cloud enviroment.</p>

<p><img src="/assets/magma-arch/orc8r.png" alt="Planes
" /></p>

<p>The Orchestrator supports the following functionality:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Network entity configuration (networks, access gateways, federation gateways, subscribers, policies, etc.)
Metrics querying (via integration with Prometheus and Grafana)
Event and log aggregation (via integration with Fluentd and Elasticsearch Kibana)
Device state reporting (metrics and status)
</code></pre></div></div>

<p>The AGW reports runtime state to the orchestrator, while the orchestrator pushes configuration commands to the AGW. For example, the AGW is responsible for generating encryption keys (runtime state) so that a UE can securely communicate with the mobile core. At the same time, the Orchestrator is responsible for configuring the policy (config state) that allows a UE to connect to the network in the first place.</p>

<p><strong>Network Management System(NMS)</strong>: 
Cloud based web UI for configuring and managing wireless network. It communicates to the rest of magma via api to orchestrator.</p>

<p><img src="/assets/magma-arch/planes.png" alt="Planes" /></p>

<hr />
<p>Credits: <a href="https://trainingportal.linuxfoundation.org/courses/introduction-to-magma-cloud-native-wireless-networking-lfs166">Introduction to Magma: Cloud Native Wireless Networking (LFS166)</a>, <a href="https://5g.systemsapproach.org/">Private 5G: A Systems Approach</a></p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="4G" /><category term="Mobile Cellular Networking" /><category term="Evolved PAcket Core" /><category term="EPC" /><category term="Magma Core" /><category term="Blog" /><category term="Website" /><summary type="html"><![CDATA[This is a collection of notes for better understanding of architecture of magam. I am still in progress to complete the blog.]]></summary></entry><entry><title type="html">Understanding Mobile Cellular Networking for Magma Core</title><link href="basakankit.github.io/2026/03/03/Understanding-Mobile-Cellular-Networking-for-Magma-Core.html" rel="alternate" type="text/html" title="Understanding Mobile Cellular Networking for Magma Core" /><published>2026-03-03T00:00:00+00:00</published><updated>2026-03-03T00:00:00+00:00</updated><id>basakankit.github.io/2026/03/03/Understanding-Mobile-Cellular-Networking-for-Magma-Core</id><content type="html" xml:base="basakankit.github.io/2026/03/03/Understanding-Mobile-Cellular-Networking-for-Magma-Core.html"><![CDATA[<p>In this blog, I have compiled a list of fundamental concepts to better understand an EPC in this case <a href="https://magmacore.org/">magma core</a>.</p>

<p>One of the main reason I have compiled these information is to better understand magma components and help me debug miscongurations in local magma deployment and succesfully simulate a network, during my mentorship in magma project. And if you are reading it hopefully it will help you too.</p>

<p>The cellular network consists of:</p>
<ol>
  <li>Radio Access Network (RAN)</li>
  <li>Mobile Core (EPC in 4G)</li>
  <li>UE (User Equipment) i.e device for eg. mobile phone, router with cellular interface connecting to network.</li>
</ol>

<p><img src="/assets/understanding-magma-images/highLevelOverviewNw.png" alt="High-level cellular network architecture" /></p>

<h2 id="mobile-core-is-partitioned-into">Mobile Core is partitioned into:</h2>
<p><strong>User Plane</strong> is responsible for managing all the actual data that you use, like streaming videos, browsing, or sending files. It’s responsible for transmitting user data, such as internet browsing, streaming, and voice calls, between your device and the network.</p>

<p><strong>Control plane</strong> is responsible for functions such as identifying subscribers, determining what services they are entitled to, and tracking usage for billing purposes.</p>

<h2 id="radio-access-network-ran-functions">Radio Access Network (RAN) Functions</h2>
<p>A useful way to understand the RAN is to look at how a single base station reacts to the arrival of a new UE (user equipment such as a mobile phone).</p>

<p>First, a base station establishes the wireless channel for a subscriber’s UE upon power-up or upon handover from another station.</p>

<p>Second, the base station establishes Control Plane connectivity between the UE and the Mobile Core and forwards signaling traffic between the two. This signaling traffic enables UE authentication, registration, and mobility tracking.</p>

<p>Third, for each active UE, the base station establishes one or more tunnels to the Mobile Core User Plane component.</p>

<h2 id="mobile-core-overview---4g">Mobile Core Overview - 4G</h2>

<p>Mobile core functions include both user plane components (SGW and PGW) and control plane components (HSS, MME, PCRF).</p>

<p><img src="/assets/understanding-magma-images/functionalBlocksMobileCore.png" alt="Mobile-Core functional blocks" /></p>

<h3 id="control-plane-cp-components">Control Plane (CP) Components:</h3>

<p>MME (Mobility Management Entity) - Tracks and manages the movement of UEs throughout the RAN. This includes recording when the UE is not active.</p>

<p>HSS (Home Subscriber Server) - A database that contains all subscriber-related information.</p>

<p>PCRF (Policy &amp; Charging Rules Function) - Tracks and manages policy rules and records billing data on subscriber traffic.</p>

<h3 id="user-plane-up-components">User Plane (UP) Components:</h3>

<p>SGW (Serving Gateway) - Forwards IP packets to and from the RAN. Anchors the Mobile Core end of the bearer service to a (potentially mobile) UE, and so is involved in handovers from one base station to another.</p>

<p>PGW (Packet Gateway) - Essentially an IP router connecting the Mobile Core to the external Internet. Supports additional access-related functions, including policy enforcement, traffic shaping, and charging.</p>

<h3 id="mobile-core-authentication">Mobile Core Authentication</h3>

<p><img src="/assets/understanding-magma-images/mobileCoreAuth.png" alt="Mobile-Core Authentication" /></p>

<ol>
  <li>The UE contains a sim-card containing secret code which intializes communication with base station as a suscriber.</li>
  <li>The base station forwards it to contol plane i.e MME which initiates authentication protocol with UE.</li>
  <li>(a) Further contol plane instucts SGW(Serving Gateway) i.e user plane (is initialized) to assign ip to UE and other parameters. 
(b)(c) And initalizing encrypted channel between base station and UE.</li>
  <li>Enabling UE for access to encrypted channel with user plane.</li>
</ol>

<p>Signalling: Process (1 to 3) before connection between UE and user plane is established.</p>

<h3 id="mobility">Mobility</h3>

<p>This is the process when a UE moves form affinity of one base station to another. In between the process where a UE reconnects with another base station, going through the above process, a downtime is encounterred between the sessions.</p>

<p>In the <a href="https://ankitbasak.com/2026/03/03/Overview-of-Magma-Architecture-on-Local-Deployment-Point-of-View/html">next blog</a> I will go in depth of architecture magma centric for local deployment to understand what is happening when simluating a telecom network with softwares like UERANSIM, srsRAN, Packetrusher.</p>

<hr />

<p>Credits: <a href="https://trainingportal.linuxfoundation.org/courses/introduction-to-magma-cloud-native-wireless-networking-lfs166">Introduction to Magma: Cloud Native Wireless Networking (LFS166)</a>, <a href="https://www.telecomhall.net/t/roadmap-to-lte-protocol-stacks/30327">Roadmap to LTE - Protocol Stacks</a>, <a href="https://5g.systemsapproach.org/">Private 5G: A Systems Approach</a></p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="4G" /><category term="Mobile Cellular Networking" /><category term="Evolved PAcket Core" /><category term="EPC" /><category term="Magma Core" /><category term="Blog" /><category term="Website" /><summary type="html"><![CDATA[In this blog, I have compiled a list of fundamental concepts to better understand an EPC in this case magma core.]]></summary></entry><entry><title type="html">Tips for Improving Jekyll Blog</title><link href="basakankit.github.io/2023/08/05/Tips-for-Improving-Jekyll-Blog.html" rel="alternate" type="text/html" title="Tips for Improving Jekyll Blog" /><published>2023-08-05T00:00:00+00:00</published><updated>2023-08-05T00:00:00+00:00</updated><id>basakankit.github.io/2023/08/05/Tips-for-Improving-Jekyll-Blog</id><content type="html" xml:base="basakankit.github.io/2023/08/05/Tips-for-Improving-Jekyll-Blog.html"><![CDATA[<p>You have created yourself a basic jekyll website/blog. But you want to add images and want to properly arrange the files and folder. I will help you out.  The folder where you store all your jekyll files locally give it the same name as your GitHub repository for your blog, for keeping it simple. When you want to write drafts of your new posts try not to write in your repository locally as it can be publicy seen in your GitHub repository. Write outside of the local repository in another folder, you may call it ‘drafts’.</p>

<p><img src="\assets\Arranging_folders.png" alt="Arranging Folders" /></p>

<p>Well you have created yourself a nice nice blog, but you want to add images. For that enter your local repository where files and folder like ‘_posts’, ‘_site’ or ‘_config.yml’ are kept. Create a folder called ‘assets’ here you will store all your images which you are going to use in your blog.</p>

<p><img src="\assets\arranged_jekyll_files.png" alt="Arranging Jekyll Files" /></p>

<p>For attaching that image copy the path of the image and paste it in between the  just like I have attached a screenshot below</p>

<p><img src="\assets\Screenshot_image.png" alt="Image code" /></p>

<p>One last tip would be to keep your ‘local repository’ and your ‘drafts’ folder in cloud locally like in OneDrive, Google Drive or Dropbox. If some how your computer crashes or gets corrupted all your folder and files will be safe.</p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="Markdown" /><category term="Blog" /><category term="Website" /><summary type="html"><![CDATA[You have created yourself a basic jekyll website/blog. But you want to add images and want to properly arrange the files and folder. I will help you out. The folder where you store all your jekyll files locally give it the same name as your GitHub repository for your blog, for keeping it simple. When you want to write drafts of your new posts try not to write in your repository locally as it can be publicy seen in your GitHub repository. Write outside of the local repository in another folder, you may call it ‘drafts’.]]></summary></entry><entry><title type="html">Hosting Static Jekyll Blog on GitHub for Free</title><link href="basakankit.github.io/2023/08/04/Hosting-Jekyll-GitHub-Free.html" rel="alternate" type="text/html" title="Hosting Static Jekyll Blog on GitHub for Free" /><published>2023-08-04T00:00:00+00:00</published><updated>2023-08-04T00:00:00+00:00</updated><id>basakankit.github.io/2023/08/04/Hosting-Jekyll-GitHub-Free</id><content type="html" xml:base="basakankit.github.io/2023/08/04/Hosting-Jekyll-GitHub-Free.html"><![CDATA[<p>Thinking about creating your own blog or website but don’t want to use JavaScript, WordPress or blogger. You want something else. There you got Jekyll, it will help you create yourself static website in a day and you don’t need any prerequisites for that. Even better Jekyll has free hosting with GitHub pages.
You are now really getting interested and want to know more about it, don’t worry I have attached the link of <a href="https://jekyllrb.com/">Jekyll</a> and <a href="https://pages.github.com/">GitHub pages</a> .</p>

<p>You went through the above links and want to create a static website, and I will guide you through it.</p>

<p>So, lets begin</p>

<h3 id="step-1--create-yourself-a-repository-in-github">Step 1 – Create yourself a repository in GitHub</h3>

<p>Head over to <a href="https://github.com/">GitHub</a> and click on new green button. There in the create repository button be carefull to write exactly your username otherwise it won’t work.</p>

<p><img src="\assets\image.png" alt="Creating Repository" /></p>

<p>Congratulation you have now created your websites repository in GitHub.</p>

<h3 id="step-2---installing-jekyll-on-your-computer-and-running-your-website-locally">Step 2 - Installing jekyll on your computer and running your website locally</h3>

<p>I have shown you on Windows. For other operating systems steps may be a bit different.
We now need to go to <a href="https://rubyinstaller.org/downloads/">rubyinstaller</a> and install ruby with devkit which suits your computer best (it’s going to be in bold). Double click on rubyinstaller where it is downloaded. Keep clicking on the next button and then at the end finish button. Now a new window will be opened where it will be written ruby installer for windows. Press on 1, 2 and 3 step by step.Then follow the instructions in the <a href="https://jekyllrb.com/docs/">jekyll website</a> .</p>

<p><img src="\assets\Downloading-jekyll.png" alt="Downloading jekyll " /></p>

<p>Now open the command promt to make sure everything got installed correctly for that give the following commands.</p>

<p><img src="\assets\Cheking-ruby-gem-jekyll.png" alt="Cheking in command prompt " /></p>

<p>Now a stucture of your website is created. Which you can keep modifying.</p>

<p>Note: To create your own post go to _post file in your local reository and keep your blog in vscode in markdown there. You can refer to my <a href="https://github.com/basakankit/basakankit.github.io/tree/master">github repository</a> of this webite.</p>

<h3 id="step-3---hosting-you-website-on-github-pages">Step 3 - Hosting you website on github pages.</h3>

<p>You need to install git locally, from <a href="https://git-scm.com/downloads">here</a>.</p>

<p>Now give the following commands in the command prompt in your local directory where jekyll files and folder are kept:
Note: remove () these while typing on command prompt.</p>

<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="mi">1</span><span class="p">.</span>  <span class="nf">git</span> <span class="n">init</span>
<span class="mi">2</span><span class="p">.</span>  <span class="nf">git</span> <span class="n">add</span> <span class="o">.</span>
<span class="mi">3</span><span class="p">.</span>  <span class="nf">git</span> <span class="n">commit</span> <span class="o">-</span><span class="n">m</span> <span class="s2">"(Any comment you want to give)"</span>  
<span class="mi">4</span><span class="p">.</span>  <span class="nf">git</span> <span class="n">remote</span> <span class="n">add</span> <span class="n">origin</span> <span class="p">(</span><span class="n">link</span> <span class="n">of</span> <span class="n">your</span> <span class="n">github</span> <span class="n">repository</span><span class="p">)</span>
<span class="mi">5</span><span class="p">.</span>  <span class="nf">git</span> <span class="n">push</span>    </code></pre></figure>

<p>Great, you have pushed all your files in GitHub. Go over to GitHub and you will find all your files which you have pushed.
Now you can search your repository on internet and see your website running.</p>

<p>To know more about Jekyll read my <a href="https://basakankit.github.io/2023/08/05/Tips-for-Improving-Jekyll-Blog.html">next blog</a>.</p>]]></content><author><name></name></author><category term="Jekyll" /><category term="GitHub" /><category term="Git" /><category term="Markdown" /><category term="Blog" /><category term="Website" /><category term="Windows" /><summary type="html"><![CDATA[Thinking about creating your own blog or website but don’t want to use JavaScript, WordPress or blogger. You want something else. There you got Jekyll, it will help you create yourself static website in a day and you don’t need any prerequisites for that. Even better Jekyll has free hosting with GitHub pages. You are now really getting interested and want to know more about it, don’t worry I have attached the link of Jekyll and GitHub pages .]]></summary></entry></feed>