<?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 Vaibhav Gupta on Medium]]></title>
        <description><![CDATA[Stories by Vaibhav Gupta on Medium]]></description>
        <link>https://medium.com/@varodek?source=rss-688abfc58746------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nyqQztqgtn8olzS3ZsEcgA.jpeg</url>
            <title>Stories by Vaibhav Gupta on Medium</title>
            <link>https://medium.com/@varodek?source=rss-688abfc58746------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:12:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varodek/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[DIY Computing Beast: A Journey Through Hardware, VMs, Containers, and NAS]]></title>
            <link>https://medium.com/@varodek/diy-computing-beast-my-journey-through-hardware-vms-containers-and-nas-546b710923a7?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/546b710923a7</guid>
            <category><![CDATA[home-server]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Sat, 25 Oct 2025 14:23:17 GMT</pubDate>
            <atom:updated>2025-10-27T12:54:08.695Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrY3S1aGdmVqwpKeyrgttQ.png" /><figcaption><em>The pictures of the PCB and HBA are taken from the internet. Credits to their original authors.</em></figcaption></figure><p>As a Linux contributor, I compile kernel drivers a lot. Sometimes I just need to build a single driver or subsystem, but whenever my changes could affect performance across components, a full kernel build can’t be avoided. And that happens more often than you’d think. This is a huge pain especially when my laptop takes <strong>2 full hours</strong> to build the kernel with <strong>allyesconfig</strong>.</p><p>I also work with <strong>Yocto-based distros</strong>, occasionally tinker with <strong>Blender’s source code</strong>, and experiment with other heavy projects. In short: my workloads demand serious compilation power.</p><p>So, I decided to build what I call my <strong>Home-Server, </strong>though in truth, it’s my <strong>personal remote compile farm</strong>. It runs multiple Arch Linux–based containers, each with access to <strong>all 40 cores / 80 threads</strong> and <strong>176 GiB of RAM</strong>. Even large projects build in seconds.</p><p>And yes — it can run <strong>DOOM </strong>😜.</p><p>To give you a sense of just how powerful this setup turned out: let’s build linux-v6.17.5 kernel with <strong>allyeconfig</strong> for <strong>x86-64</strong>:<br>▸ My old laptop takes <strong>4.5 hours</strong><br>▸ My Thinkpad X1 carbon takes <strong>&gt;2 hours</strong><br>▸ My server takes <strong>&lt;25 minutes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iHbO7rhTb45CdT2bSqTg4g.png" /></figure><p>So let’s take a look at this small little project and the things I learned along the way!</p><h3>Stage 1 — Proof of Concept</h3><p>My journey of building a remote computing beast <em>(remote compiling machine) </em>started with a simple thought:</p><blockquote>“Let’s do it because: I can, and I have an old laptop lying around.”</blockquote><p>I installed Proxmox on it because I wanted to run a few containers and a VM instance of Nextcloud. Very simple, no NAS (Network-Attached Storage), no ad-blockers, nothing fancy. Just a plain personal cloud setup and a container to build kernel.</p><p>That’s when I first learned about CGNAT, thanks (or rather, no thanks) to my Internet Provider 😅. Because of CGNAT, I couldn’t just expose a port and run WireGuard for remote access.</p><p>Then a colleague told me about Tailscale and it worked like magic.<br>It bypassed CGNAT effortlessly, and the fact that it’s built on top of WireGuard made it even more fascinating.</p><p>Seeing everything come together was so satisfying that I wanted to expand immediately. YES, IT IS AN ADDICTIVE ACTIVITY 😎.</p><blockquote>I learned about:<br>𜱵 CGNAT<br>𜱵 Proxmox <br>𜱵 Hyper-converged infrastructure<br>𜱵 Tailscale</blockquote><h3>Stage 2 — The fun begins</h3><p>I got my hands on a second-hand <a href="https://lenovopress.lenovo.com/lp1055-thinksystem-st550-server">Lenovo ST550 Tower-Server</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBQJC1duPepEOWt369prbg.png" /><figcaption>Source: <a href="https://lenovopress.lenovo.com/lp1055-thinksystem-st550-server">https://lenovopress.lenovo.com/lp1055-thinksystem-st550-server</a></figcaption></figure><blockquote>I learned about:<br>𜱵 Powerful cores vs number of cores (for compilation-heavy use-cases.)<br>𜱵 How make scales over the cores.</blockquote><h3>Why stop at just compilation?</h3><p>Once I got this machine up and running, I realized I could expand its purpose.<strong> </strong>I already had more than enough computing power, and I wasn’t compiling 24/7. So I thought — “<em>why not turn it into a fully fledged home server?”</em></p><p>And yes, you guessed it right — I did. I started adding a whole bunch of lightweight services that together use <strong>less than 4%</strong> of the total system resources.</p><p>Soon I realized that I should have done it before. Honestly, everyone should build a home server at least once. You can use a simple <strong>Raspberry Pi</strong>, an <strong>old laptop</strong>, or even just a <strong>VM</strong>.</p><p>In university, we read tons of theory about:<br>▸ Networking<br>▸ System-Design<br>▸ Automation<br>▸ Distributed or Micro Services<br>… but building a home server gives you real, hands-on experience. The amount of practical understanding you gain from actually implementing these concepts is unbelievable.</p><p>Theory is easy. It tells you there’s hardware, software, and scripts to run, and that’s it. Reality, though, is very different. You have to work with <strong>specific hardware</strong>, <strong>limited PCIe slots</strong>, and <strong>quirky components</strong>, and still make everything function smoothly.</p><p>That’s when learning becomes <em>real engineering</em>.</p><h3>1st step — Find components</h3><p>The fun part about second-hand servers is that you can get powerful hardware for <strong>dirt cheap</strong>.<br>The sad part? You don’t get many configuration options.</p><p>In my case, the server came with a <strong>16 x 2.5&quot; SFF backplane</strong>. It’s quite old, and compatible drives are limited in both availability and capacity.<br>For example, the good server grade <strong>SFF SATA CMR HDDs</strong> max out at around <strong>2TB</strong>, and most manufacturers have already shifted production to larger <strong>3.5&quot; LFF</strong> disks.</p><p>Buying a compatible 3.5&quot; LFF backplane and swapping it in would have been expensive. But honestly, the default setup still met my needs perfectly, so I decided to stick with it.</p><p>Now I had to buy components like <strong>disks</strong>, <strong>Power Supply units</strong> (PSU), <strong>Host Bust Adapter</strong> (HBA), etc. Again a learning moments:</p><p>After a lot of learning, researching, and troubleshooting compatibility, I finally put everything together. Most of the parts were <strong>second-hand</strong> (because, well, server-grade hardware isn’t exactly cheap 🥲).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBq4_vcdHc-y3F6Khr4gRA.png" /></figure><p>Here’s what I ended up with:<br>▸ 40 Intel Xeon cores (80 hyper-threads)<br>▸ 224 GB of RAM</p><p>No, I’m not going to start crypto mining — I promise 😅. This machine is purely my remote development server. <em>(And yes, electricity in Switzerland is expensive enough to keep me honest.)</em></p><p>I’ve mentioned this before, but to save you some scrolling, here’s a quick performance comparison for building <strong>linux-v6.17.5</strong> with <strong>allyesconfig</strong> (x86-64):<br>▸ My old laptop takes <strong>4.5 hours</strong><br>▸ My Thinkpad X1 carbon takes <strong>&gt;2 hours</strong><br>▸ My server takes <strong>&lt;25 minutes</strong></p><blockquote>I learned about:<br>𜱵 2.5&quot; SFF (Small Form Factor)<br>𜱵 3.5&quot; LFF (Large Form Factor)<br>𜱵 SAS vs SATA — [go for SAS SSD and SATA HDD]<br>𜱵 CMR vs SMR — [go for CMR for NAS and RAID]<br>𜱵 Power Supply Units<br>𜱵 Host Bus Adapters<br>𜱵 JBODs (Just a Bunch of Disks)<br>𜱵 ECC RAMs</blockquote><h3>2nd step — Proxmox</h3><p>To build a proper server setup, I needed a solid hypervisor, and for me, Proxmox was the obvious choice.</p><p>As Wikipedia puts it, Proxmox VE is a virtualization platform designed for provisioning hyper-converged infrastructure. It lets you deploy and manage both virtual machines (VMs) and containers, all from a clean web-based interface.</p><p>Once it’s up and running, you can access everything straight from your browser. No complex CLI gymnastics needed (unless you are nerd enough like me who did majority of work on Proxmox CLI).</p><p>I chose Proxmox because it’s lightweight, open-source, and extremely reliable for running mixed workloads, perfect for what I needed in this project.</p><blockquote>I learned about:<br>𜱵 Proxmox CLI<br>𜱵 LXC and its administration<br>𜱵 Privileged and Unprivileged LXCs</blockquote><h3><strong>3rd step — Storage</strong></h3><p>I already have <strong>NVMe based boot-drive</strong> to boot into my Proxmox. Here, by Storage I mean the disks which will be used to store my cloud data, my codes, build-outputs, media etc.</p><p>But now the question is that <strong>which file-system</strong> to use?</p><ul><li><strong>zfs</strong> — My cloud data obviously needed to live on a NAS setup. I wanted it to be <strong>reliable and resilient to disk failures</strong>. The easiest way to achieve that is through RAID, and <strong>zfs</strong> was the perfect choice. And apart from being a filesystem, <strong>zfs</strong> also provides <strong>software-based RAID</strong>, so it’s ideal for long-term data integrity.</li><li><strong>ext4</strong>— For <strong>development workloads</strong>, I generate lots of source files, build artifacts, and temporary logs, basically millions of small files.<br><strong>ext4</strong> handles this kind of workload really well, so it became my go-to filesystem for development.</li><li><strong>xfs</strong>— Since this is a home server, of course I wanted to store movies and series too — and stream them through Jellyfin or Plex.<br>For large, sequential files like video content, <strong>xfs</strong> performs best, so it’s the logical choice for my media storage.</li></ul><p>Now, I have 14 CMR disks in total.<br>▸ 12 x <strong>2 TB SATA HDDs</strong> — for NAS<br>▸ 1 x <strong>1.6 TB SAS Mixed-use SSD</strong> — for Develoment<br>▸ 1 x <strong>3.84 TB SAS Read-intensive SSD </strong>— for Media</p><blockquote>I learned about:<br>𜱵 <strong>zfs</strong> and <strong>xfs</strong><br>𜱵 <strong>zfs</strong>: RAID vs dRAID<br>𜱵 Server Grade vs General Purpose SSDs<br>𜱵 Types of SSDs (Read Intensive, Write Intesive, Mixed Use)</blockquote><h3>4th step — NAS (Network Attached Storage)</h3><p>Instead of setting up <strong>zfs</strong> from scratch, I decided to use <strong>TrueNAS Scale,</strong> a full operating system designed for storage management. And since Proxmox is my hypervisor, I installed <strong>TrueNAS Scale</strong> as a <strong>VM</strong>.</p><p>But there’s one important consideration:<br>I wanted TrueNAS Scale to <strong>directly control the physical disks</strong>, not access them through a virtual layer. Otherwise, Proxmox would manage <strong>zfs</strong> first and then share a directory to the VM which defeats the purpose.</p><p>The solution? <strong>PCI Passthrough.</strong></p><p>Because all my disks are connected via an <strong>HBA (Host Bus Adapter)</strong>, I can simply pass the entire HBA device through to the TrueNAS Scale VM.<br> That way, TrueNAS gets <em>direct</em> access to the disks — no virtualization overhead.</p><h4><strong>⚙️ The Setup</strong></h4><p>Now, my dedicated 12 disks are managed by TrueNAS Scale to form a <strong>zfs-pool</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNBT-dKHOfm2KpINb8Ubvg.jpeg" /></figure><blockquote><strong>draid3:12d:3c:2s</strong> <br>3 parity, 2 spares, 12 data disks total. Gives 11.5 usable TiB</blockquote><p>Other VMs and containers on the server <strong>access this storage via NFS mounts</strong>. This abstraction means the other VMs don’t need to know anything about RAID or <strong>zfs</strong>. They just read and write to their NFS mounts and TrueNAS Scale handles everything underneath.</p><h4>💡 The Catch</h4><p>Here’s where it got tricky:<br>If I passthrough my entire HBA, all disks fall under TrueNAS’s control.<br>But for development and media streaming, I need <strong>very fast disk access</strong>, and <strong>zfs</strong> <strong>+ RAID</strong> can be quite slow for heavy read/write operations.</p><p>ZFS is perfect for storage like photos, backups, or data you don’t touch often. But for compiling code, build outputs, and fast I/O, I needed something else.</p><p>This is why I bought <strong>2 HBAs</strong>.<br>▸ <strong>HBA 430–16i</strong> — controls the 12 x 2TB disks and passthrough to TrueNAS Scale.<br>▸ <strong>HBA 430–8i</strong> — controls the remaining 2 SSDs and is still under control of Proxmox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*nP7BbaxveUZNqmbGFhe2Mw.png" /><figcaption>The Picture of PCB and HBA are taken from Internet search. I am not sure of the original author.</figcaption></figure><blockquote>I learned about:<br>𜱵 PCI Passthrough<br>𜱵 ZFS Pool</blockquote><h3>5th step — Nextcloud</h3><p>Once my storage setup was solid, it was time to bring my personal cloud online. After weighing the pros and cons around security and isolation, I decided to run Nextcloud as its own VM.</p><p>First, I created a dataset for Nextcloud in my <strong>zfs-pool</strong> and exported it via NFS. Then I mounted it on the VM that would host Nextcloud. This way, my cloud data lived safely on my RAID-protected disks while the VM had seamless access.</p><p>For installation, I went the script-based route, following this guide: <a href="https://docs.hanssonit.se/s/bj0vl1ihv0jgrmfm08j0/build-your-own/d/bj0vl4ahv0jgrmfm0950/nextcloud-vm">Nextcloud VM installation script</a>. I pointed the script to my NFS-mounted dataset, which became the Nextcloud data directory.</p><blockquote>I learned about:<br>𜱵 ZFS Datasets<br>𜱵 NFS<br>𜱵 Nextcloud installation and Administration<br>𜱵 PHP Server Internals(I had to tweak few things)</blockquote><h3>6th step — Gitea and Firefly III</h3><p>I wanted a lightweight, self-hosted Git repository management tool. GitLab would’ve been overkill for my personal projects, so I went with Gitea. It’s light, simple, and does the job perfectly.</p><p>At the same time, I also wanted a Personal Finance Management tool for budgeting, so I chose Firefly III. Just like Nextcloud, the data for these services would live on my NAS.</p><p>Obvoiusly I want my personal projects to be secure. But the actual development will happen on development disks. Gitea would just store the <a href="https://git-scm.com/book/en/v2/Git-on-the-Server-Getting-Git-on-a-Server">bare repositories</a>. Thus, NAS. Hence I will create dataset for them as well on my <strong>zfs-pool</strong> and expose them over NFS.</p><p>And of course, nothing is straight forward 😅. I installed both Gitea and Firefly III inside <strong>unprivileged LXC containers</strong> on Proxmox. By default, unprivileged containers cannot mount anything directly for security reasons.</p><p>The solution? Mount the NFS shares <strong>on the Proxmox host itself</strong> and then <strong>bind-mount</strong> the directories into the containers. Easy, right? Well, almost…</p><p>Both Gitea and Firefly III run web servers and databases, which means the directories need <strong>specific permissions and ownership</strong>. To make this work inside an unprivileged LXC, I had to remap the UID and GID of the bind-mounted directories so the containers could access them properly without breaking security.</p><p>Here’s where a bit of Linux tinkering comes in: proper remapping + careful bind mounts = fully functional, secure NAS-backed services. <a href="https://pve.proxmox.com/wiki/Unprivileged_LXC_containers">Look here</a>.</p><blockquote>I learned about:<br>𜱵 lxc uid and gid remapping<br>𜱵 Limitations of lxc unprivileged containers<br>𜱵 bind-mounting directories in LXC containers</blockquote><h3>7th step — Media Containers</h3><p>This one was relatively straightforward compared to everything else. I created a directory on my <strong>media SSD</strong> (3.84 TB XFS) and <strong>bind-mounted</strong> it into the LXC containers running <strong>Jellyfin</strong> and other media services.</p><p>With this setup, my media library is fully accessible from the containers, and I don’t have to worry about messing with RAID or <strong>zfs</strong> for high-speed streaming. Everything works smoothly, and I can stream movies, series, or music directly from my home server without any hiccups.</p><h3>8th step — Development Containers</h3><p>They are straight forward too. I created a directory on my <strong>development SSD</strong> (1.6 TB EXT4) and <strong>bind-mounted</strong> it into the LXC containers.</p><p>I set up <strong>one general-purpose container</strong> for everyday development tasks, and then created <strong>separate containers for each major project</strong>. This way, each project can have the <strong>exact toolchain and environment it requires</strong>, without cluttering a single container with everything. It keeps things clean, reproducible, and avoids the dreaded “it works on my machine” problem.</p><p>Each one of them has access to all <strong>40 core (80 Hyperthreads)</strong> and <strong>176 GiB of RAM</strong>. Even complex projects build in seconds.</p><p>I based them on <strong>ArchLinux</strong> to have access to latest version of tools.</p><h3>9th step — Networking and Accessing VMs + Containers</h3><p>As I mentioned earlier, I need <strong>Tailscale</strong> to remotely access my home server because of CGNAT. But here’s the tricky part: I have multiple VMs and LXC containers, each with its own <strong>local IP address</strong> inside my subnet.</p><p>Should I run a Tailscale instance on <strong>each VM and container</strong>? That would be overkill, especially since some containers provide dedicated services and I don’t want an extra daemon running in the background.</p><p>What if I could run Tailscale on just <strong>one instance</strong> and route all access to the other VMs and containers through it?</p><p>Turns out, this is exactly what <a href="https://tailscale.com/kb/1019/subnets"><strong>Tailscale subnets</strong> </a>allow. The concept relies on <strong>IP forwarding</strong> and <strong>IP routing</strong>. Let’s look at an example:</p><p>Let’s learn about it via example. I have following devices:<br>▸ My laptop running Tailscale <br>▸ Container <strong>(C-A)</strong> running Tailscale<br>▸ Container <strong>(C-B)</strong> (192.118.1.4)</p><ul><li>I configure <strong>(C-A)</strong>’s Tailscale to advertise <strong>(C-B)</strong>’s IP. This effectively makes <strong>(C-A)</strong> a gateway/tunnel for <strong>(C-B)</strong>.</li><li>On my laptop, I accept all advertised routes.</li><li>From my laptop, I do <strong>ssh xyz@192.118.1.4</strong> .</li><li>The Tailscale network between my laptop and <strong>(A)</strong> can see that this IP is being advertised by <strong>(C-A)</strong>.</li><li>It send the <strong>ssh</strong> request to <strong>(C-A)</strong>. <strong>(C-A )</strong>then forwards it to <strong>(C-B)</strong>.</li><li><strong>(C-B)</strong> responds and replies to <strong>(C-A)</strong>. Container-A then forwards the reply to my laptop.</li></ul><p>In other words, <strong>(C-A)</strong> acts as a <strong>tunnel</strong>, letting me reach <strong>(C-B)</strong> (and other machines in my Home network) without running Tailscale everywhere.</p><p>The best part? <strong>(C-B)</strong> can still access the internet or other networks independently. The Tailscale tunnel just handles <strong>incoming remote access </strong>from other devices in my Tailnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfQ-t4GooukvLfMGU45o5Q.png" /></figure><h3>10th step — Routing</h3><p>Once I had remote access working via Tailscale, the next challenge was how to route traffic to all my VMs and containers. I basically had two options:</p><ul><li><strong>Host-based Routing </strong>—This is the simplest approach: just use the <strong>local IP</strong> of each VM or container to access it. Works perfectly, but requires remembering IPs or maintaining a hosts file.</li><li><strong>Path-based Routing </strong>— Here, I could use a <strong>reverse proxy</strong> (like Nginx) to forward requests to the correct VM/container based on the URL path. For example: <br>▸ localhost/proxmox -&gt; IP of Proxmox<br>▸ localhost/nextcloud -&gt; IP of Nextcloud</li></ul><p>Sounds neat, right? The problem is, not all services play nicely with path-based routing. For instance, <strong>Proxmox itself doesn’t support running behind a path-based reverse proxy</strong> out of the box, which makes this approach tricky for certain services.</p><p>So I went on Host-based Routing path. I made a Homepage Website using <a href="https://github.com/gethomepage/homepage">this</a> project. It is a static website and runs in a container. Now I can access everything with one click and I just have to remember the IP of my Homepage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ES9bcBwLWtGuAP5UvrT2Hw.png" /></figure><h3>11th step — Remote Access</h3><p>Fun fact: I discovered later that my ST550 comes with an <strong>on-board XClarity controller</strong>. It has it own IP <em>(so I can connect to it using my Tailscale Gateway)</em> and its power-supply is independent than of the entire system. So if the power-cables are plugged in the chassis, and an Ethernet cable is connected to the Xclarity’s port, it will switch on and give me access to the system.</p><p>In short, I can see <strong>real-time</strong> raw CPU and memory usage, fan speeds, CPU temperature, Chassis temperature, etc. But the most important part is that I can Power-Cycle the entire system remotely. Power-cycle, not re-boot.</p><p>But if my Tailscale is running on the Homeserver itself <em>(in a container or on Proxmox),</em> I will loose the access to my Server during Power-Cycle. The Tailscale instance in my home needs to be outside of my server.</p><p>What if the Tailscale instance in my LAN is running on a small external device rather than in a container in my homeserver. This way, through Tailscale subnet, I still can have access to Xclarity, my homeserver and all it VMs + Containers, and the server can Power-Cycle without me losing access to my Home Network.</p><p>That’s why I decided to set up a <strong>jump server</strong>. I repurposed a <strong>Libre Computer AML-A311D-CC-V0.2 single-board computer</strong> <em>(which I got for free at a conference 😎)</em>. It shares the same size form-factor as of Raspberry-Pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMty17HLb69F6YGcfCIRoA.png" /><figcaption>Image Source: <a href="https://libre.computer/products/aml-a311d-cc/">https://libre.computer/products/aml-a311d-cc/</a></figcaption></figure><p>I booted it with <strong>Debian</strong> and installed <strong>Tailscale</strong>. Now, this little device acts as my <strong>access gateway</strong>.</p><p>Looking at its specs, it’s surprisingly powerful. Tailscale can leverage its <strong>crypto extensions and hardware encoders</strong> for better performance. To make sure it’s dedicated solely to remote access, I removed all unnecessary background services.</p><p>With this setup, even if my main server goes down or needs a full power-cycle, I never lose access to my home network.</p><blockquote>I learned about:<br>𜱵 /etc/sysctl.conf tweaks to improve network performance</blockquote><p>Now I will simply connect my Homeserver, SBC, and my Router via Switch.</p><h3>12th Step — The Orchestration of Bootup and Poweroff.</h3><p>At this stage, two things became very clear:<br>▸ I want to <strong>remotely power-cycle</strong> my server.<br>▸ There are <strong>dependencies between VMs and containers</strong>. For example, TrueNAS Scale must be up and running <strong>before</strong> Nextcloud, Gitea, and Firefly III boot. Otherwise, they won’t find their NFS mounts, and the results could be unpredictable, or worse, lead to data corruption.</p><p>Time to put my <strong>DSA skills</strong> to work. When you need to sort a chain of dependencies, which algorithm comes to mind? Correct: <strong>Topological Sort</strong>.</p><p>I wrote a <strong>Bash script</strong> where I listed all my VMs and containers along with their dependencies. The script:</p><ol><li><strong>Topologically sorts</strong> the list to determine the correct order for power-on or power-off.</li><li><strong>Checks NFS availability</strong> before booting dependent services, halting if the mount isn’t ready.</li></ol><p>This ensures that all services start in the right order, prevents data corruption, and gives me a fully <strong>automated, reliable boot and shutdown process</strong>.</p><p>The script is quite long so I am pasting a Screen-Shot. The <a href="https://gist.github.com/VARoDeK/40040f6ba81d0dc6f21dfbf4056d335a">link</a> to the whole script is in the caption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*OE8ni2fW81AeM6gxsky1hg.png" /><figcaption><a href="https://gist.github.com/VARoDeK/40040f6ba81d0dc6f21dfbf4056d335a">https://gist.github.com/VARoDeK/40040f6ba81d0dc6f21dfbf4056d335a</a></figcaption></figure><h3>THE Final Implementation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrY3S1aGdmVqwpKeyrgttQ.png" /><figcaption><em>The pictures of the PCB and HBA are taken from the internet. Credits to their original authors.</em></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=546b710923a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience at Linux Conference.]]></title>
            <link>https://medium.com/@varodek/my-experience-at-linux-conference-f9ab8a0e63ef?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9ab8a0e63ef</guid>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linuxcon]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 16:43:37 GMT</pubDate>
            <atom:updated>2020-05-23T14:08:13.736Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skE8NtMY_VZBlRSjMtoMcw.jpeg" /><figcaption>From official album of Linux Foundation (Me in the middle wearing dark green sweater)— <a href="https://www.flickr.com/photos/linuxfoundation/48983878078/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48983878078/in/album-72157711547821187/</a></figcaption></figure><h4>(Open Source Summit and Embedded Linux Conference, Europe 2019)</h4><p>My summers were going amazing, I was a <a href="https://summerofcode.withgoogle.com/projects/6480553270837248">Google Summer of Code 2019 Student</a> at <a href="https://www.rtems.org/">RTEMS</a>, I underwent surgery for my Kidney stones :P , I was working on the project I was in love with. But I was never ready for the surprises I was going to get.</p><p>I came to know about <strong>Open Source Summit and Embedded Linux Conference, Europe 2019 </strong>via LinkedIn and then explored about it in detail from their site. The conference was made for me to attend, as my area of interest belongs to the same domain. Moreover, my GSoC project was also related to the embedded systems.</p><p>I was exploring about it when I came to know about their diversity program initiative. Being an Open Source contributor and a College Student, I was eligible for the scholarship and hence applied for it. It was a very proud and happy moment for me when I received their mail. Linux Foundation considered me good enough to give me 100% registration scholarship.</p><p>I don’t know how to describe what I was feeling that time. It was mix of shock, happiness, amazement, etc. Still, attending it was impossible for me as the conference was in Europe and I had no funds to go there. The only option for me was to ask for Travel Grant. Thereafter, I completed all the formalities related to it and was now waiting for their reply.</p><p>Days were passing by and I was growing anxious. So, I mailed them, I got a bit relieved when they replied informing me that there is a delay because of large number of applications this time. Finally after 3 weeks I got their reply and guess what? I was able to grab sponsorship.</p><p>So my summer just got its Jet-Pack. I got my Visa, flights, hotels and all done. But life always demands adventure :P . Conference was in the end of October, and after summers my new semester was about to start, hence I had to give my T1 and T2 exams in college before the Europe trip.</p><p><em>Oooo…..Europe Trip — It sounds like Joey’s magical Story.</em></p><p>Finally my mid-semester exams were over but guess what? On the day of my last paper only I had to catch my flight, so I was in rush. Also, it was a festival day in my country……traffic jams. For once I got worried if I will be able to catch my flight. But things got untangled.</p><p>And then here I was, in Lyon. Such a beautiful city. We registered ourselves at the convention center and received our ID cards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCYyAjrPa4jyk89GBHgCXg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdEOGMsoEAJfa9ofnJT8eA.jpeg" /><figcaption>The Registration Day</figcaption></figure><p>There were several events, talks, networking sessions, mentor-ship sessions going on. It was impossible to attend them all as many of the events were running in parallel. But I would love to tell about the ones which were special to me.</p><h3>The “Better Together Diversity Social” Event</h3><p>The first event of this conference. It was like an add-on session and a wonderful opportunity for us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fq3FhD6tlO4Ro0PTqFpM5g.jpeg" /></figure><p>It was an opportunity for people from different technical and educational backgrounds to come, communicate, network and get to know each other. We were served with snack and drink. I met with many wonderful people, got connected to them on LinkedIn, exchanged e-mail. It was a great evening. Then, from the next day, conference commenced.</p><h3>The Conference</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2M78MyNFUjDHrPT4X1rREA.jpeg" /><figcaption>From official album of Linux Foundation (Keynote Session in Amphitheater) — <a href="https://www.flickr.com/photos/linuxfoundation/48983901968/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48983901968/in/album-72157711547821187/</a></figcaption></figure><p>Each day used to start with Keynote Sessions in the amphitheater. And they used to be the best in whole day. Seeing the tech experts from GitHub, Google, Linux foundation, IBM, Microsoft and various Open Source Tech Giants was like a dream. I felt like a huge amount of knowledge was broadcasted there. This was the time when I got to know about some inner depths of these organizations. I came to know about various technologies.</p><h3>In Conversation with Linus Torvalds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5vq-t2ef0w1tkT-TPjdZjQ.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48983885283/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48983885283/in/album-72157711547821187/</a></figcaption></figure><p>The second day started with a one to one talk with Linus Torvalds. He told about current situation of Linux Kernel and where the community is heading to. He talked about Git and his other works. The main thing he focused was about security and hyper-threading. Seeing the legend sitting in front of me gave me a feeling, that I am in dream, for a moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*ITdHM8dTf4QOmFjwev0r1A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Bj-0eekVqbKgtxpcZfW2wQ.jpeg" /><figcaption><a href="https://www.flickr.com/photos/linuxfoundation/48983878078/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48983878078/in/album-72157711547821187/</a>Got a picture with him after Keynote session and his autograph too.</figcaption></figure><p>At the end of the session, I got lucky enough to shake hands with him. We clicked a picture together and also I got his autograph :D .</p><h3>Keynote Session of Erica Brescia</h3><p>COO of GitHub</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqViOX7NALSIFlc_jwbAoQ.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48984460576/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48984460576/in/album-72157711547821187/</a></figcaption></figure><p>I was amazed by the facts presented by Erica. What is an Open Source Developer? What is the power of Open Source? How Open Source gave first ever image of a black hole? If I am making a personal project, am I the only contributor in it? What is the average workforce behind every open source project?</p><p>The way she presented everything gave insider knowledge about how Open Source works. She proceeded by displaying some GitHub reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSj3NZNbHrzuFmS-XMhsYw.jpeg" /><figcaption>GitHub 2018 Report</figcaption></figure><p>Since the 2019 reports were not released yet, she presented reports of 2018 to explain some of her points. The proud moment for me was to see my country, <strong>India</strong> <strong>at 3rd position in world ranking of Open Source Contributions</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5xUCfaqqTC9TrTvsG7_ww.jpeg" /></figure><p>At the end of the session, me and my friends went to meet her. She greeted us warmly. We had a quick talk and we invited her to India to which she responded positively as she was already planning to come for some official work.</p><h3>One to One Meetings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9LqJ0Bt5P9OI6t8O4OLlw.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48983919988/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48983919988/in/album-72157711547821187/</a></figcaption></figure><p>One of the best things of this event was networking. And they made it more easy by giving us an option to plan meeting via their networking app.</p><p>We were suppose to build our profile and mention our area of interests. Then others do same. And we could see each other’s profile and plan a one to one meeting accordingly. There was a dedicated slot in the daily schedule for this purpose.</p><p>Although networking could be done spontaneously by any means, but this one to one meeting provided a good structure to talk to experts, get some mentor-ship, get career advice, get work opportunities, or get knowledge about new technologies, etc. Think about fixing a meeting with CEO of some open source organization. I was able to do so.</p><h3>A Picture with “Father of Linux and Father of Linus”</h3><p>The credit of this caption goes to my friend, Mritunjay Sharma. He is an awesome writer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*M91yJHKGeHm9LSBXBbiomQ.jpeg" /><figcaption>The group photo with Mr Linus Torvalds</figcaption></figure><p>Though I already got a picture with him in amphitheater after his keynote session, but I got a chance to meet him again. This time my friends were also there with me, so we agreed for a group photo. The man in a brown jacket, taking a walk with Mr Linus Torvalds offered us to click our picture.</p><p>After clicking the picture he said, <strong><em>“Now you can mention in the caption that the father of Linus Torvalds clicked your picture.”</em></strong></p><p>It was a quick amusement which was visible on our faces. It was a proud moment for his father too that his son is a hero, an idol for us. You rarely get an opportunity of meeting one Torvalds and here we got two, that too a father-son duo. Getting a picture with him was an obvious act which we did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UczVUnBu3wAekI02LIjwiA.jpeg" /><figcaption>The group selfie with Mr Linus Torvalds, standing left to his father <a href="https://en.wikipedia.org/wiki/Nils_Torvalds">Mr Nils Torvalds</a>.</figcaption></figure><h3>Sponsor Showcase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eybFbK_mystrmOrVOqP4Q.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48989685103/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48989685103/in/album-72157711547821187/</a></figcaption></figure><p>Here every sponsor of this conference was present. They were sharing information about their new technologies, giving demos, displaying their projects and distributing swags :P . I got six T-Shirts of different open source organizations.</p><p>Tech-Giants like Intel, IBM, Red-Hat were also there showcasing their new technologies. Not just this much, people were growing their networks here too, talking with people finding job opportunities. Even I got know about many internships of my domain to which I am eligible.</p><h3>Office Hours</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTXjmelw2m2o03LBjNvPQQ.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48978842993/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48978842993/in/album-72157711547821187/</a></figcaption></figure><p>This was the heaven of Conference. During Office Hours, one could find experts of various field and can have a one to one or a group meeting/discussion.</p><p>This is different from one-to-one meeting as in that, the meeting has to be fixed and should be accepted by both parties. But here, experts are sitting on one of the chair around round table waiting for curious learners like me to enlighten them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKfdvdR5JdRGbAQN_LuJ-Q.jpeg" /></figure><p>I had a short discussion with Linux Fellow <a href="https://www.linkedin.com/in/greg-kroah-hartman/"><strong>Greg Kroah-Hartman</strong></a><strong>.</strong></p><blockquote><em>Greg Kroah- Hartman (Linux kernel maintainer for the -stable branch, the staging subsystem, USB, driver core, debugfs, kref, kobject, and the sysfs kernel subsystems, Userspace I/O, and TTY layer).</em></blockquote><blockquote>Wikipedia contributors. (2019, November 1). Greg Kroah-Hartman. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 22:48, November 4, 2019, from <a href="https://en.wikipedia.org/w/index.php?title=Greg_Kroah-Hartman&amp;oldid=923982050">https://en.wikipedia.org/w/index.php?title=Greg_Kroah-Hartman&amp;oldid=923982050</a></blockquote><p>I also had a discussion with third Linux Fellow <a href="https://www.linkedin.com/in/shuah-khan-9527a414/"><strong>Shuah Khan</strong></a><strong>. </strong>She guided me for Linux Mentor-ship Programs and other things.</p><p>Office hours were very good for people who had doubts regarding any talks they attended, or if they need some career advice etc.</p><h3>Speed Networking and Mentoring</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EqNjn5wZj4LXd-Nc2lfH6g.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48984955081/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48984955081/in/album-72157711547821187/</a></figcaption></figure><p>This was another amazing session. It was conducted in 3 rounds. Three topics were selected for discussion, Career, Technology and Community.</p><p>There were round tables and one table addressed only one of the tree topics. So, people interested in networking and mentoring about Career can sit around table which has placard with “Career” written on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hqdW4p7KH8SSQSkVKCNFTQ.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48984398708/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48984398708/in/album-72157711547821187/</a></figcaption></figure><p>Then in round one, mentors were allotted for each table. We had a nice talk, got some advises, learned something new, exchanged our email IDs.</p><p>For second round, we were supposed to sit around the same table and mentors would switch tables. And for third round the vice versa. Each round was for 15 minutes. I didn’t wanted this session to get over.</p><p>I was enjoying listening to other people, they were sharing their views, experiences, thoughts etc. At the end I felt enlightened.</p><h3>Reception</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*trl0dOKZZRJxBA0jgQcYQg.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48989731968/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48989731968/in/album-72157711547821187/</a></figcaption></figure><p>The venue for reception was a out of the box thing for me. It was on a boat. Music was on, drinks were on and snacks were on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgxxGVVeSsxd6H5VKMB4cw.jpeg" /><figcaption>From official album of Linux Foundation — <a href="https://www.flickr.com/photos/linuxfoundation/48989750498/in/album-72157711547821187/">https://www.flickr.com/photos/linuxfoundation/48989750498/in/album-72157711547821187/</a></figcaption></figure><p>The air was cool, river was silent and one could feel the breeze on his/her face. It was the end of the conference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcI4xO6xrlGXEwotiuvURA.jpeg" /><figcaption>Me along with my developers gang.</figcaption></figure><p>It was sad that the conference was at end but the party took all sad vibes away. We gave farewell to our friends, promised to stay in touch and of course, send our images if they have in their phone.</p><p>The conference took my experience with open source to a whole new level. I haven’t described everything in this blog because I can’t. The words won’t be enough. It is a phase to be experienced. And it is of lots of worth.</p><h3>Let’s get connected</h3><p>Follow/ Connect with me.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>If you find this blog good, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9ab8a0e63ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC 2019 — POSIX Compliance]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/gsoc-2019-posix-compliance-74571990c32a?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/74571990c32a</guid>
            <category><![CDATA[summer-of-code]]></category>
            <category><![CDATA[gsoc-2019]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[c-libraries]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Wed, 21 Aug 2019 15:03:13 GMT</pubDate>
            <atom:updated>2021-05-27T06:36:14.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UuLcR9SWyMIb7Q61" /><figcaption>Photo by <a href="https://unsplash.com/@neonbrand?utm_source=medium&amp;utm_medium=referral">NeONBRAND</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>GSoC 2019 — POSIX Compliance</h3><h4>Google Summer of Code Program 2019 @RTEMS — Project Final Report</h4><p>This summer was amazing and fruitful.I got a chance to code and contribute to an Open-Source project, whose kernel has been used in many space missions, and learn and interact with experienced developers. One cannot measure the knowledge I gained on any scale, and it is priceless. This was the first time I worked on an open-source project at this depth.</p><p>If you ask me, the best thing I got to learn was <strong>How things work?</strong></p><p>I have tried my best to summarized my work in this final report, but my experience is not limited just to this.</p><h3>Project Abstract</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_8ekvrDQV49lVtoU" /><figcaption>Photo by <a href="https://unsplash.com/@joszczepanska?utm_source=medium&amp;utm_medium=referral">Jo Szczepanska</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The Real-Time Executive for Multiprocessor Systems or RTEMS is an open source Real Time Operating System (RTOS). Developers and community have made the RTEMS well compliant with various standards like POSIX IEEE 1003.1, C99, C11, and various profiles of FACE and SCA. This makes it possible for RTEMS to be executed on a large variety of architectures, devices and environments.</p><p>But this is an indefinite task as with advancement in technology and necessity, these standards keep updating and hence creates the need for updating the compliance status too.</p><p>The goal of the project was to update the compliance status of RTEMS with POSIX IEEE and FACE General Purpose Profile. Various functions and headers were required to be implemented. As the project advanced, many headers and test-suites were implemented. Code structure for architecture specific header, fenv, was also discussed and decided.</p><h3>Mentors</h3><ul><li>Joel Sherrill</li><li>Aditya Upadhyay</li><li>Hesham Almatary</li></ul><h3>Project Tasks</h3><ul><li>Modify test-suite for inttypes.h.</li><li>Port ndbm.h to newlib.</li><li>Design test-suite for ndbm.</li><li>Port fenv.h for ARM, PPC and SPARC and design testsuite for it. (It is still going on).</li></ul><h3>My Work (that got merged in master branch)</h3><ul><li><a href="https://devel.rtems.org/changeset/d9fcb22/rtems">​psxtests: Add psxinttypes01 for &lt;inttypes.h&gt; methods</a></li><li><a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=e50ad9fbdc5adfb5c13954a2798d1ea0ad53db34">​Port ndbm</a></li><li><a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=b39cd00f07e8df11c5446fb35da490ef85f12821">​Port ndbm — Remove Declaration of dbm_forder</a></li><li><a href="https://git.rtems.org/rtems/commit/?id=57e0173584a914b1a92aa73deade6afb463186db">​psxtests: Add ndbm test suite</a></li><li><a href="https://git.rtems.org/rtems-docs/commit/?id=fac2873533c5bb1278285e6e7e5deff749cfab8b">​Remove back-slash in ‘pacman’ command in ‘PDF’ section under Arch Linux (installation of Sphinx)</a></li><li><a href="https://git.rtems.org/rtems-docs/commit/?id=360560024726cd6166b1eaeda55ee8512594f1ca">​Add steps to test Newlib patch</a></li></ul><h3>New Methods Ported:</h3><ul><li><strong>int dbm_clearerr(DBM *);</strong></li><li><strong>void dbm_close(DBM *);</strong></li><li><strong>int dbm_delete(DBM *, datum);</strong></li><li><strong>int dbm_error(DBM *);</strong></li><li><strong>datum dbm_fetch(DBM *, datum);</strong></li><li><strong>datum dbm_firstkey(DBM *);</strong></li><li><strong>datum dbm_nextkey(DBM *);</strong></li><li><strong>DBM *dbm_open(const char *, int, mode_t);</strong></li><li><strong>int dbm_store(DBM *, datum, datum, int);</strong></li><li><strong>int dbm_dirfno(DBM *);</strong></li></ul><h3>Test-Suites Developed:</h3><ul><li><strong>psxinttypes01 —</strong><strong> inttypes.h </strong>test-suite.</li><li><strong>psxndbm01 —</strong><strong> ndbm.h </strong>test-suite.</li></ul><h3>Supporting codes developed:</h3><ul><li><a href="https://github.com/VARoDeK/MiniProject_1-Add_newlib_object_files_to_rtems_libraries">​MiniProject_1-Add_newlib_object_files_to_rtems_libraries</a></li></ul><h3>RTEMS Wiki of My Project</h3><p><a href="https://devel.rtems.org/wiki/GSoC/2019/POSIX_Compliance">GSoC/2019/POSIX_Compliance - RTEMS Project</a></p><h3>Notes I made on GitHub</h3><ul><li><a href="https://github.com/VARoDeK/MyNotes/tree/master/RTEMS">https://github.com/VARoDeK/MyNotes/tree/master/RTEMS</a></li><li><a href="https://github.com/VARoDeK/MyNotes/tree/master/Newlib">https://github.com/VARoDeK/MyNotes/tree/master/Newlib</a></li></ul><h3>Project Repositories on GitHub</h3><ul><li><a href="https://github.com/VARoDeK/rtems">https://github.com/VARoDeK/rtems</a></li><li><a href="https://github.com/VARoDeK/newlib">https://github.com/VARoDeK/newlib</a></li><li><a href="https://github.com/VARoDeK/rtems-docs">https://github.com/VARoDeK/rtems-docs</a></li><li><a href="https://github.com/VARoDeK/rsb">https://github.com/VARoDeK/rsb</a></li></ul><h3>My Weekly Progress</h3><p><a href="https://devel.rtems.org/wiki/GSoC/2019#VaibhavGupta">GSoC/2019 - RTEMS Project</a></p><h3><strong>Timeline <em>(points mentioned in bullets are also in chronological order):</em></strong></h3><h4>1) — Phase 1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ThV3egR5wQVz2jjd" /><figcaption>Photo by <a href="https://unsplash.com/@nkachanovskyyy?utm_source=medium&amp;utm_medium=referral">Nikita Kachanovsky</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>Explored RTEMS Documentations.</li><li>Build RTEMS for ARM and SPARC with tests enabled.</li><li>Build Newlib for ARM and SPARC.</li><li>Cloned RTEMS Docs and build it using Sphinx for contribution.</li><li>Submitted first version of changes in <strong>inttypes</strong> test-suite and iterated the process of taking reviews from mentors for it and modifying it accordingly.</li><li>Made arrangements for porting <strong>ftw.h</strong>. Explored NetBSD and FreeBSD repositories as they are under favorable license.</li><li>Figured correct location to place/modify files to successfully compile <strong>ndbm</strong>. This got a bit long as it involved discussions within RTEMS and Newlib communities. This was because according to the definition it should be placed in <strong>libc/posix</strong> directory but according to environment and support, it was shifted to <strong>libc/search</strong> directory.</li><li><strong>inttypes</strong> test-suite got merged. <a href="https://devel.rtems.org/changeset/d9fcb22/rtems">​<em>https://devel.rtems.org/changeset/d9fcb22/rtems</em></a></li><li>While porting <strong>ftw</strong>, it requires <strong>fts.h</strong>, the functions of <strong>fts.h</strong> are defined in <strong>fts.c</strong> which requires <strong>mount.h</strong>, again this header requires multiple other headers, and dependency chain is formed. This raised some questions about code structure and I reported it to Newlib community. After not getting any response for two weeks I shifted to another task.</li><li>While updating <strong>newlib/libc/search</strong> directory, updating <strong>hash.h</strong>, creates need for several other headers to be updated. Those updated headers now require new headers, so a chain of dependencies was formed. The issue was discussed in RTEMS and Newlib communities and it got settled.</li><li>Ported <strong>ndbm</strong> on local newlib repository and started working on procedures to apply patch of changes to RSB. Newlib build for ARM and SPARC, on my system, were generating function symbols of <strong>ndbm</strong>. But RSB patch was not able to recreate the same. This was discussed in the community.</li></ul><h4>2) — Phase 2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7W4qbUa-vNyIjE5r" /><figcaption>Photo by <a href="https://unsplash.com/@nordwood?utm_source=medium&amp;utm_medium=referral">NordWood Themes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>To keep my project moving without losing pace, I wrote a shell script <a href="https://github.com/VARoDeK/MiniProject_1-Add_newlib_object_files_to_rtems_libraries"><em>https://github.com/VARoDeK/MiniProject_1-Add_newlib_object_files_to_rtems_libraries</em></a>, to manually add object file of <strong>ndbm</strong> from local build of Newlib SPARC to RTEMS. This was important as <strong>ndbm</strong> test-suite could not be developed until RTEMS has <strong>ndbm</strong> in its environment.</li><li>Submitted first version of <strong>ndbm</strong> test-suite. After that, I was also able to apply <strong>ndbm</strong> patch to RSB successfully.</li><li>Once the first version of test-suite was developed and gave positive results, I sent <strong>ndbm</strong> patch to newlib community to be merged in their source tree.</li><li><strong>ndbm</strong> patch was merged by newlib community after a long discussion with my mentors with some required changes.<em> </em><a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=e50ad9fbdc5adfb5c13954a2798d1ea0ad53db34"><em>https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=e50ad9fbdc5adfb5c13954a2798d1ea0ad53db34</em></a></li><li>The <strong>ndbm</strong> port from FreeBSD had a function declaration with no definition provided. The changes were pushed for the same. <a href="https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=b39cd00f07e8df11c5446fb35da490ef85f12821"><em>https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=b39cd00f07e8df11c5446fb35da490ef85f12821</em></a></li><li>After reviews and various cycles of changes, the <strong>ndbm</strong> test-suite was ready. I sent the patch to Mailing list.</li><li>There were some issues with the latest release of libm in newlib hence RTEMS was not using the version in which ndbm was pushed. Hence ndbm test-suite could not be added directly. The test-suite got added in conditional way. This can be explained with the commit message. <a href="https://git.rtems.org/rtems/commit/?id=57e0173584a914b1a92aa73deade6afb463186db">https://git.rtems.org/rtems/commit/?id=57e0173584a914b1a92aa73deade6afb463186db</a></li></ul><h4>3) — Phase 3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NytAFdm_w5tJMvXk" /><figcaption>Photo by <a href="https://unsplash.com/@johnschno?utm_source=medium&amp;utm_medium=referral">John Schnobrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>This phase started with work on <strong>fenv</strong>. I explored possible sources (FreeBSD and NetBSD) to port from. The architectures I initially targeted after discussing with my mentors were ARM, PPC, RISCV, x86 and SPARC. Although RISC-V had existing implementation, it required changes in its code structure.</li><li>The sources for the architectures were mixed, some could be ported from FreeBSD and other from NetBSD. As both the sources have different code structures, a template was required for Newlib.</li><li>My mentors took this discussion to Newlib community and made required changes. Whole RISC-V code was refactored. It and its supporting headers serve as template for implementation for other Architectures.</li><li>Meanwhile I started working on RISC-V Testsuite. The fenv environment for RISC-V is not working properly for now and hence created a blocker. I tried to make it work for <strong>rv32imac</strong> with and without HTIF, <strong>rv64imac</strong> and <strong>rv32imafdc</strong> BSPs. Building it and my efforts to troubleshoot in the case of each of the BSP, took much of the time.</li><li>So, I created the test-suite for Linux environment. Once the <strong>fenv</strong> issues with RISC-V are solved, the test-suite can be ported to RTEMS.</li><li>Meanwhile I also updated rtems-docs. Added steps to test Newlib patches with RSB.</li><li>After the code structure was finalized and changes of my mentor were pushed by newlib, I started working on porting fenv for ARM. The <strong>machine/arm/include/fenv.h</strong> and <strong>machine/arm/sys/fenv.h</strong> are implemented and now I am working on stubs.</li></ul><h3>Post GSoC Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZVS9N0pX4ww87lza" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I will continue porting <strong>fenv</strong> for other architectures.</p><p>Since, I have got a good hand at compliance tasks, I will continue to complete other tasks too which are mentioned under this <a href="https://devel.rtems.org/ticket/2966">ticket</a>, like <strong>socketmark()</strong>, <strong>pselect()</strong>, file descriptor functions, <strong>fmtmsg.h</strong>, <strong>memcpy()</strong>, <strong>sys/ipc.h</strong>, <strong>getdate()</strong> etc.</p><h3>Future Involvement with RTEMS</h3><p>I am planning to pick up some tasks related to hardware like BeagleBoard or Raspberry Pi.</p><p>In this project, my major focus was on SPARC and ARM. And now I want to work on other Architectures too.</p><p>I will also apply for GCI Mentorship this year.</p><p>There are many open projects which amazed me when I was preparing for GSoC, would love to work on few.</p><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74571990c32a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/gsoc-2019-posix-compliance-74571990c32a">GSoC 2019 — POSIX Compliance</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Newlib for SPARC and ARM  Architecture]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/build-newlib-for-sparc-and-arm-architecture-6b3287d4c6f2?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b3287d4c6f2</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[c-libraries]]></category>
            <category><![CDATA[summer-of-code]]></category>
            <category><![CDATA[gsoc-2019]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Thu, 04 Jul 2019 13:36:35 GMT</pubDate>
            <atom:updated>2020-05-23T13:41:27.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fVMY6R7bUO3ptwzo" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Build Newlib for SPARC and ARM Architecture</h3><h4>Clone Newlib from its Repository and Build it using RTEMS Toolchain</h4><h3>Prerequisites</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1_0CYGCV_Vv9FQg2" /><figcaption>Photo by <a href="https://unsplash.com/@jeshoots?utm_source=medium&amp;utm_medium=referral">JESHOOTS.COM</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li><a href="https://medium.com/my-gsoc-2019-journey/build-rtems-for-sparc-and-arm-architecture-using-same-rsb-e969c82fd921">You must have build <strong>RTEMS Toolchain</strong> for SPARC and ARM Architecture using RSB.</a></li><li>A Project Sand-boxing is preferred.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fdb199b0951c2e7a966406218247540a/href">https://medium.com/media/fdb199b0951c2e7a966406218247540a/href</a></iframe><h3>What is Newlib?</h3><blockquote><strong>Newlib</strong> is a <a href="https://en.wikipedia.org/wiki/C_standard_library">C standard library</a> implementation intended for use on <a href="https://en.wikipedia.org/wiki/Embedded_systems">embedded systems</a>. It is a conglomeration of several library parts, all under <a href="https://en.wikipedia.org/wiki/Free_software_licenses">free software licenses</a> that make them easily usable on embedded products.</blockquote><blockquote>It was created by <a href="https://en.wikipedia.org/wiki/Cygnus_Support">Cygnus Support</a> as part of building the first GNU cross-development tool-chains. It is now maintained by <a href="https://en.wikipedia.org/wiki/Red_Hat">Red Hat</a> developers and is used in most commercial and non-commercial <a href="https://en.wikipedia.org/wiki/GNU_Compiler_Collection">GCC</a> ports for non-Linux embedded systems.</blockquote><p>Wikipedia contributors. (2019, April 12). Newlib. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 13:02, July 4, 2019, from <a href="https://en.wikipedia.org/w/index.php?title=Newlib&amp;oldid=892195321">https://en.wikipedia.org/w/index.php?title=Newlib&amp;oldid=892195321</a></p><h3>Clone</h3><p>I have mentioned my Project Sand-boxing above, I will be using the same directory structure. You can set it according to you.</p><pre><strong>$ cd ~/<br>$ mkdir -p development/newlib<br>$ cd development/newlib<br>$ git clone git://sourceware.org/git/newlib-cygwin.git</strong></pre><h3>Conflict in Autoconf versions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFEVVXQ6T-2HHKxyVaIEEw.jpeg" /></figure><p>Inside the project folder <strong>newlib-cygwin </strong>, different sub directories are using different versions of <strong>autoconf </strong>tools.</p><p>Refer My another blog to solve this issue: <a href="https://medium.com/my-gsoc-2019-journey/how-to-handle-two-versions-of-autoconf-b1e28de8617b"><strong>How To Handle Two Versions of autoconf?</strong></a></p><h3>Run `autoreconf -fvi`</h3><p>I need <strong>autoconf </strong>version 2.64.</p><pre><strong>$ cd ~/development/newlib/newlib-cygwin<br>$ </strong><strong>export PATH=/opt/autoconf-2.64/bin:$PATH<br>$ autoreconf -fvi</strong></pre><h3>Task 1 : Build for SPARC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L33YPamqmTu-zfPB" /><figcaption>Photo by <a href="https://unsplash.com/@jonassvidras?utm_source=medium&amp;utm_medium=referral">Jonas Svidras</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><pre><strong>$ cd ~/development/newlib<br></strong><strong>$ mkdir b-sparc-rterms5-newlib<br>$ cd b-sparc-rtems5-newlib</strong></pre><p>Now, I need <strong>autoconf </strong>version 2.69 and RTEMS Tool Chain</p><pre><strong>$ export PATH=$HOME/development/rtems/5/bin:$PATH</strong></pre><pre><strong>$ ../newlib-cygwin/configure --target=sparc-rtems5 --disable-shared --disable-nls --enable-werror --enable-newlib-supplied-syscalls --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld</strong></pre><p>I you are in contributing to Newlib, you must only build to check if your code is correct, and then install it.</p><pre><strong>$ make all<br>$ sudo make install</strong></pre><h3>Task 2: Build for ARM</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_CfXkAxx4Z3kN8cR" /><figcaption>Photo by <a href="https://unsplash.com/@briankost?utm_source=medium&amp;utm_medium=referral">Brian Kostiuk - @BriKost</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><pre><strong>$ cd ~/development/newlib<br></strong><strong>$ mkdir b-arm-rterms5-newlib<br>$ cd b-arm-rtems5-newlib</strong></pre><p>Now, I need <strong>autoconf </strong>version 2.69 and RTEMS Tool Chain</p><pre><strong>$ export PATH=$HOME/development/rtems/5/bin:$PATH</strong></pre><pre><strong>$ ../newlib-cygwin/configure --target=arm-rtems5 --disable-shared --disable-nls --enable-werror --enable-newlib-supplied-syscalls --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld</strong></pre><p>I you are in contributing to Newlib, you must only build to check if your code is correct, and then install it.</p><pre><strong>$ make all<br>$ sudo make install</strong></pre><h3>Handling build fail after contributing to Newlib Project</h3><p>Once you clone and build Newlib for say SPARC. The as you are a developer, you made some changes in newlib source tree. <em>(inside </em><strong><em>~/development/newlib/newlib-cygwin </em></strong><em>)</em></p><p>Then you try to build it again for SPARC.</p><pre><strong>$ cd ~/development/newlib/</strong><strong>b-sparc-rtems5-newlib<br>$ make all</strong></pre><p>While re-building it may show error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wNE4AoSlb63s7wFygn4RTQ.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Running <strong>make distclean </strong>didn’t worked for me. So, inside the same directory, I used this command:</p><pre><strong>$ rm $(find ./ -name \config.cache)</strong></pre><p>After this, <strong>make all </strong>worked.</p><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b3287d4c6f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/build-newlib-for-sparc-and-arm-architecture-6b3287d4c6f2">Build Newlib for SPARC and ARM  Architecture</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1st Milestone Achieved]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/1st-milestone-achieved-34bbb9ca6fa2?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/34bbb9ca6fa2</guid>
            <category><![CDATA[summer-of-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[gsoc-2019]]></category>
            <category><![CDATA[gsoc]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Sun, 30 Jun 2019 18:21:49 GMT</pubDate>
            <atom:updated>2020-05-23T13:40:47.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWgdY6IRq4BM_cI03wTpxg.jpeg" /></figure><h4>Passed 1st evaluation of Google Summer of Code</h4><p>In first words of this blog, I want to thanks my mentors and community members for helping me and guiding me, whenever I got Stuck. I got to learn a lot many things during this 1 month work. My pace got slow at last few days, but then my mentors guided me to manage tasks and time and make it fruitful. I would love to describe my journey in as simple manner as possible.</p><h3>My Project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rVJiQRMisZ4DMeRx" /><figcaption>Photo by <a href="https://unsplash.com/@stanleydai?utm_source=medium&amp;utm_medium=referral">Stanley Dai</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As mentioned in previous blogs of this publication, my org is RTEMS (Real Time Executive for Multiprocessor System) Project. It is an Real Time Operating System (RTOS) working on the principle of “Single Process, Multi-Threaded ”.</p><p>Not going into technicalities, but above information was necessary to explain my project. It’s an RTOS, supports embedded systems, hence it has to follow one or more standards to make it a handy-executive for others. Surprisingly RTEMS is compliant to many standards such as <a href="https://en.wikipedia.org/wiki/POSIX">POSIX</a>, <a href="https://en.wikipedia.org/wiki/Institute_of_Electrical_and_Electronics_Engineers">IEEE</a>, <a href="https://en.wikipedia.org/wiki/Future_Airborne_Capability_Environment">FACE</a>, etc. And my project deals with maintaining its compliance with latest updates of these standards.</p><p>Since, <a href="https://en.wikipedia.org/wiki/Newlib">Newlib</a> is the standard C library for RTEMS, most of my contribution will go to it.</p><h3>Tasks I completed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m2rjGavDXGFxq5v1" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Task 1 : Testsuite for psxinttpes01</h4><p>My first task was to refactor the testsuite made by my mentor. He participated as a GSoC student in 2017 for this same project, and since last year he is mentoring this project. He build a testsuite for the contributions he made, and some modifications were required.</p><p>It was a testsuite for <a href="http://pubs.opengroup.org/onlinepubs/009696799/basedefs/inttypes.h.html"><strong>inttypes.h</strong></a><strong> </strong>, I had to test for the following:</p><pre><strong>1- Checks for strtoimax Testcases</strong><br>   — checks for output for string having a positive number<br>   — checks for output for string having a negative number<br>   — checks for output for string having a positive number - Number Out of Range<br>   — checks for output for string having a negative number — Number Out of Range<br>   — checks for final string pointed by endptr<br>   — checks for output for invalid argument — NULL Pointer<br>   — checks for output for invalid argument — Invalid Base</pre><pre><strong>2- Checks for strtoumax Test Cases</strong><br>   — checks for output for string having a positive number<br>   — checks for output for string having a negative number<br>   — checks for output for string having a positive number — Number Out of Range<br>   — checks for output for string having a negative number — Number Out of Range<br>   — checks for final string pointed by endptr<br>   — checks for output for invalid argument — NULL Pointer<br>   — checks for output for invalid argument — Invalid Base</pre><pre><strong>3- Checks for wcstoimax Testcases</strong><br>   — checks for output for string having a positive number<br>   — checks for output for string having a negative number<br>   — checks for output for string having a positive number — Number Out of Range<br>   — checks for output for string having a negative number — Number Out of Range<br>   — checks for final string pointed by endptr<br>   — checks for output for invalid argument — NULL Pointer<br>   — checks for output for invalid argument — Invalid Base</pre><pre><strong>4- Checks for wcstoumax Testcases</strong><br>   — checks for output for string having a positive number<br>   — checks for output for string having a negative number<br>   — checks for output for string having a positive number — Number Out of Range<br>   — checks for output for string having a negative number — Number Out of Range<br>   — checks for final string pointed by endptr<br>   — checks for output for invalid argument — NULL Pointer<br>   — checks for output for invalid argument — Invalid Base</pre><p>The testsuite was a success and it got merged in main branch.</p><h4>Task 2 : Port ndbm.h</h4><p><strong>ndbm </strong>is a library to store records, in a key-data pair form, inside a database. The function declarations are stored in <strong>ndbm.h </strong>and their definitions are stored inside <strong>ndbm.c </strong>.</p><p><strong>ndbm.h </strong>requires <strong>struct DB </strong>which is defined and supported in <strong>db_local.h </strong>. The scenario was:</p><ul><li><strong>ndbm.h</strong> has to be stored in <strong>newlib-cygwin/newlib/libc/include</strong> , so as it should be present in library path, when compiled.</li><li><strong>db_local.h </strong>is stored in <strong>newlib-cygwin/newlib/libc/search</strong> .</li><li><strong>ndbm.c</strong> requires <strong>hash.h</strong> which is again present in <strong>newlib-cygwin/newlib/libc/search </strong>. This is why I placed <strong>ndbm.c </strong>in the same directory as of <strong>hash.h </strong>, and made entry in <strong>Makefile.am </strong>.</li></ul><p>The blocker was that, while building library, <strong>ndbm.h </strong>got compiled successfully, but when added to RTEMS, only <strong>ndbm.h </strong>was generated in include directory if it. And since, <strong>ndbm.h</strong> include <strong>db_local.h</strong> . The testsuites showed compilation error of header not found.</p><p>So, on the guidance of my mentors, I used the method of forward declaration and it got successful. The library got successfully generated and functions symbols could be found using <strong>nm</strong> command.</p><p>Still, some work is needed to build a successful testsuite for this port.</p><h4>Task 3 : Port ftw.h</h4><p>The function declarations are mentioned <strong>ftw.h</strong> and their definitions are inside <strong>ftw.c</strong> .</p><p>The blocker is that <strong>ftw.c</strong> requires another header file. And that header requires other multiple headers. Those headers require other multiple headers, and hence a dependency chain is formed. This work is in progress.</p><h4>Task 4 : Update search directory</h4><p>While porting <strong>ndbm</strong> , mentors felt that maybe we can update whole <strong>newlib-cygwin/newlib/libc/search</strong> directory. This task has also same dependency chain like <strong>ftw.h</strong> case. The scenario was mailed to newlib mailing list. This will be done accordingly.</p><p>With this, my first evaluation was completed. And now I am headed to 2nd Phase with much more enthusiasm and motivation.</p><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34bbb9ca6fa2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/1st-milestone-achieved-34bbb9ca6fa2">1st Milestone Achieved</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apply Newlib Patch to RTEMS Source Builder]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/apply-newlib-patch-to-rtems-source-builder-6873b0fb31b8?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/6873b0fb31b8</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[pbs]]></category>
            <category><![CDATA[patch]]></category>
            <category><![CDATA[operating-systems]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Mon, 24 Jun 2019 13:28:07 GMT</pubDate>
            <atom:updated>2020-05-23T13:39:31.968Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rm5SM9q7w55JOQSIJaFbrA.png" /></figure><h4>Create a patch for Newlib and test it for RSB (RTEMS Source Builder)</h4><h3>What is Newlib?</h3><blockquote><strong>Newlib</strong> is a <a href="https://en.wikipedia.org/wiki/C_standard_library">C standard library</a> implementation intended for use on <a href="https://en.wikipedia.org/wiki/Embedded_systems">embedded systems</a>. It is a conglomeration of several library parts, all under <a href="https://en.wikipedia.org/wiki/Free_software_licenses">free software licenses</a> that make them easily usable on embedded products.</blockquote><blockquote>It was created by <a href="https://en.wikipedia.org/wiki/Cygnus_Support">Cygnus Support</a> as part of building the first GNU cross-development tool-chains. It is now maintained by <a href="https://en.wikipedia.org/wiki/Red_Hat">Red Hat</a> developers and is used in most commercial and non-commercial <a href="https://en.wikipedia.org/wiki/GNU_Compiler_Collection">GCC</a> ports for non-Linux embedded systems.</blockquote><p>Wikipedia contributors. (2019, April 12). Newlib. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 19:23, June 26, 2019, from <a href="https://en.wikipedia.org/w/index.php?title=Newlib&amp;oldid=892195321">https://en.wikipedia.org/w/index.php?title=Newlib&amp;oldid=892195321</a></p><h3>Patches</h3><p>Hello Readers,</p><p>For my GSoC project, I need to port some codes in <a href="https://en.wikipedia.org/wiki/Newlib">Newlib</a>. It can be cloned from its git repository.</p><p><strong>$ git clone git://sourceware.org/git/newlib-cygwin.git</strong></p><p>After creating patches, I need to submit them to Newlib mailing list for review. But before I must make sure that the changes are successfully working.</p><p>As Newlib is used by RTEMS as its C Library, one way is to use the patch in RTEMS and design a testsuite for it. If tests are successful, the changes are fine.</p><h3>Project-Sandboxing of my project (for reference)</h3><p>As I will be explaining the steps using my system.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fdb199b0951c2e7a966406218247540a/href">https://medium.com/media/fdb199b0951c2e7a966406218247540a/href</a></iframe><h3>Step 1 : Create the patch of your changes.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*2V0gFFTEnm-tHFuF8HYt-A.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p><em>(</em><strong><em>Note:</em></strong><em> For RSB, before creating Newlib patch, you must run </em><strong>autoreconf</strong><em> in the required directory after you make changes to the code.)</em></p><p><em>(This is not required when you create patch to send to ‘newlib-devel’. Because they need only your code, and not other generated files. But if you want RSB to address your changes, your patch should also include regenerated files. )</em></p><h3>Step 2 : Place the patch into the RSB directory.</h3><p>Run the following command.</p><p><strong>$ cd &lt;rtems-source-directory&gt;/rsb/rtems/patches </strong>.</p><p><em>(replace &lt;rtems-source-directory&gt; with the path to the directory where you have setup RTEMS for development).</em></p><p><strong>$ cp &lt;newlib-source-directory&gt;/0001-Port-ndbm.patch ./</strong></p><p><em>(replace &lt;newlib-source-directory&gt; with the path to the directory where you have setup newlib for development).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*8ljRdFNS68DoNTJ19_qp6A.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><h3>Step 3 : Calculate sha512 of the patch</h3><p>Run the following command.</p><p><strong>$ sha512sum 0001-Port-ndbm.patch</strong></p><p>Keep the hash value. We will need it later in <strong>Step 6</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*-87nRmk1FjKFFcSZnOZ50w.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><h3>Step 4 : Check the <strong>.bset </strong>file used by your BSP.</h3><p>Run following commands:</p><p><strong>$ cd &lt;rtems-source-directory&gt;/rsb/rtems/config/5</strong></p><p><em>(replace &lt;rtems-source-directory&gt; with the path to the directory where you have setup RTEMS for development).</em></p><p><strong>$ ls</strong></p><p>For example, I will be building RTEMS for <strong>erc32 </strong>(a member of SPARC). Hence the it will be using <strong>rtems-sparc.bset </strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*BKchsfuaZtjZKNScUxpLeQ.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><h3>Step 5 : Check the configuration file used by your .bset file.</h3><p>For my <strong>rtems-sparc.bset </strong>, I will open the file using Vim.</p><p><strong>$ vim -M rtems-sparc.best</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*mLDRR6S_ZurGhuwTZfDTxQ.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>I found that this file is including another file, <strong>rtems-default.bset </strong>.</p><p><strong>$ vim -M rtems-default.bset </strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*x2-IqM6wKPERxLLEz7xvjQ.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Hence, my BSP is using <strong>rtems-gcc-7.4.0-newlib-1d35a003f.cfg </strong>to configure Newlib.</p><h3>Step 6 : Edit the configuration file, used by your <strong>.bset </strong>file.</h3><p>Locate the <strong>.cfg </strong>file.</p><p><strong>$ cd &lt;rtems-source-directory&gt;/rsb/config/tools</strong></p><p><em>(replace &lt;rtems-source-directory&gt; with the path to the directory where you have setup RTEMS for development).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H4v2FG6RrXxjw-JaeqI-oA.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>We need to tell RSB about patches for building new tool-chain.</p><p><strong>$ vim rtems-gcc-7.4.0-newlib-1d35a003f.cfg</strong></p><h4>Add the following lines:</h4><ol><li><strong>patch add &lt;group-name-for-patches&gt; &lt;patch-location&gt;</strong>: You can encapsulate multiple patches into a single group. Hence provide a group name for patches. In my example, I used <strong>newlib_ndbm </strong>.</li><li><strong>hash sha512 </strong>: Patches require a checksum to avoid a warning. The <strong>%hash</strong> directive can be used to add a checksum for a patch that is used to verify the patch. Use the hash value we calculated in <strong>Step 3</strong>.</li><li>The patches are applied when a patch <strong>setup</strong> command is issued. All patches in the group are applied.</li></ol><p>Reference: <a href="https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches">https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches</a></p><p>For example : The lines will look something like this for my newlib patch:</p><pre><strong>%patch add newlib -p1 file://0001-port-ndbm.patch<br>%hash sha512 0001-port-ndbm.patch 0130e688c70255053c929e04dba7df16388effaeef83e19adb0109c5e4c1f9c8135bc41acfba03439d7245a548de500d04ae66aaf7d1cdd6b883687b6f3739e3</strong></pre><p><strong>Note: Write the newlib patch commands, along with other newlib commands. And put the group name as ‘newlib’. Then you will not need to mention </strong><strong>%patch setup.... line. Your newlib patch will be applied with other newlib patches.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSkL9uXOiCphg3YCREW3Cg.jpeg" /><figcaption>Screenshot of my Terminal (Here sha512 is different than shown in above examples as it is the screenshot of another patch)</figcaption></figure><h3><strong>Step 7 : Build new Tool-chain</strong></h3><p>Run the configure command. For example I had to run:</p><pre><strong>$ cd /home/varodek/development/rtems/rsb/rtems</strong></pre><pre><strong>$ ../source-builder/sb-set-builder --prefix=/home/varodek/development/rtems/5 5/rtems-sparc</strong></pre><p><em>(If you are thinking why I went to </em><strong><em>rsb/rtems</em></strong><em> directory and then used </em><strong><em>../source-builder……</em></strong><em> ? Why did not I directly went to </em><strong><em>rsb/source-builder</em></strong><em> directly?</em></p><p><em>Then you need to read this article - </em><a href="https://medium.com/my-gsoc-2019-journey/build-rtems-for-sparc-architecture-on-linux-host-227e0a99b703"><strong><em>Build RTEMS for SPARC Architecture on Linux Host</em></strong></a><em>. Read sub-heading </em><strong><em>“Setup RSB”</em></strong><em>).</em></p><h3>References:</h3><p>1 — <a href="https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches">https://docs.rtems.org/branches/master/user/rsb/project-sets.html#patches</a></p><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6873b0fb31b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/apply-newlib-patch-to-rtems-source-builder-6873b0fb31b8">Apply Newlib Patch to RTEMS Source Builder</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Handle Two Versions of autoconf?]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/how-to-handle-two-versions-of-autoconf-b1e28de8617b?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1e28de8617b</guid>
            <category><![CDATA[gsoc-2019]]></category>
            <category><![CDATA[version]]></category>
            <category><![CDATA[summer-of-code]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[autoconf]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Thu, 13 Jun 2019 12:45:58 GMT</pubDate>
            <atom:updated>2020-05-23T13:39:52.511Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFEVVXQ6T-2HHKxyVaIEEw.jpeg" /></figure><h4>Have two versions of autoconf in your system? And you require both frequently? Learn how to handle the situation.</h4><blockquote>Although I mentioned <strong>Autoconf </strong>exclusively, but the same steps can be followed for any other program too. For example if you want to manage multiple versions of <strong>make </strong>, <strong>vim </strong>, etc.</blockquote><h3>What is autoconf?</h3><blockquote><strong>GNU Autoconf</strong> is a tool for producing <a href="https://en.wikipedia.org/wiki/Configure_script">configure scripts</a> for building, installing and packaging software on computer systems where a <a href="https://en.wikipedia.org/wiki/Bourne_shell">Bourne shell</a> is available. Autoconf is agnostic about the programming languages used, but it is often used for projects using <a href="https://en.wikipedia.org/wiki/C_(programming_language)">C</a>, <a href="https://en.wikipedia.org/wiki/C%2B%2B">C++</a>, <a href="https://en.wikipedia.org/wiki/Fortran">Fortran</a>, Fortran 77, <a href="https://en.wikipedia.org/wiki/Erlang_(programming_language)">Erlang</a> or <a href="https://en.wikipedia.org/wiki/Objective-C">Objective-C</a>.</blockquote><p>Wikipedia contributors. (2019, June 22). Autoconf. In <em>Wikipedia, The Free Encyclopedia</em>. Retrieved 19:20, June 26, 2019, from <a href="https://en.wikipedia.org/w/index.php?title=Autoconf&amp;oldid=903003352">https://en.wikipedia.org/w/index.php?title=Autoconf&amp;oldid=903003352</a></p><p>Hello Readers,</p><p>For my GSoC project, I need to port some codes in <a href="https://en.wikipedia.org/wiki/Newlib">Newlib</a>. As other good projects, Newlib also uses Autoconf tools for producing “<strong>Makefile.in”</strong> and various other useful scripts.</p><p>Newlib can be cloned from its git repository.</p><p><strong>git clone git://sourceware.org/git/newlib-cygwin.git</strong></p><p>The situation is, inside its source tree, <strong>newlib-cygwin/</strong>uses <strong>autoconf tools version 2.64</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*TjKC4o2kCXcIu7EqmQEQEw.jpeg" /></figure><p>Whereas <strong>newlib-cygwin/newlib/libc</strong> uses <strong>autoconf tools version 2.69 .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oVnkwgdFXoG563vfsyZnug.jpeg" /></figure><p>As I mostly work on terminal, when I run <strong>autoconf </strong>command, it calls the <strong>2.69</strong> version.</p><h3>Linux Environment Variable “$PATH”</h3><p>Ever wondered whenever you run a program in a shell, how the shell is able to locate it and run it?</p><p>For example, the command, <strong>whoami</strong> is present inside <strong>/usr/bin </strong>directory<strong>.</strong> How your shell identifies to pick this particular program from its specific location?</p><p>Well, it doesn’t. To get clear, open your terminal and run the command <strong>$PATH .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*V-7eH27K7bcA2GfPEJmjFA.png" /></figure><p>This the path variable of my Linux Environment: <strong>/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/cuda/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/varodek/.gem/ruby/2.6.0/bin .</strong></p><h4>What happens when you run <strong>&quot;whoami” </strong>command?</h4><p>Linux doesn’t know what is <strong>whoami</strong> and where it is located. It does everything with the help of its environment variable <strong>$PATH</strong> .</p><p>The locations are written in priority order in <strong>$PATH</strong> variable. When you run <strong>whoami</strong> command:</p><ul><li>First it checks inside <strong>usr/local/bin</strong> directory for any program with that name.</li><li>Then it checks inside <strong>usr/local/sbin</strong> directory.</li><li>Then it checks inside <strong>usr/bin</strong> directory. Here it found a program name <strong>whoami</strong> , hence it runs it.</li><li>As the program is found, it will never check the other mentioned paths.</li></ul><p>Since the <strong>autoconf version 2.69</strong> is stored inside <strong>/usr/bin</strong> , whenever I run it, it calls <strong>2.69 version</strong> .</p><h3>Download “autoconf 2.64” source and build it</h3><p>As I needed <strong>autoconf 2.64</strong> , I downloaded it from <a href="https://ftp.gnu.org/gnu/autoconf/">here</a>. I downloaded the <a href="https://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.gz">autoconf-2.64.tar.gz</a> file and placed it inside <strong>/opt/</strong> directory.</p><p>Extract it.</p><p>Move inside extracted folder, and open the terminal in that directory. Run following commands:</p><ul><li><strong>./configure</strong></li><li><strong>make</strong></li></ul><p>You will find your compiled 2.64 version of autoconf tools inside <strong>bin</strong> folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*7xv4jMXVVbiQFWx4YmwgWQ.png" /><figcaption>Screenshot of my Terminal. <strong>Just for this blog, I placed the .tar.gz file in ~/Downloads directory, instead of /opt/ . I have already build it inside /opt directory, earlier.</strong></figcaption></figure><p>Now the path of your <strong>autoconf tools version 2.64 </strong>is <strong>/opt/autoconf-2.64/bin </strong>.</p><h3><strong>Adding it to the “$PATH”</strong></h3><p>Now, we know how <strong>$PATH </strong>works. So to run 2.64 version, we what we need to do is, we need to add the path to 2.64 version in the beginning of <strong>$PATH </strong>variable. Hence when we will call <strong>autoconf </strong>, it will first search inside <strong>/opt/autoconf-2.64/bin </strong>directory, find the program and run it.</p><p>To do this, simply run:</p><p><strong>export PATH=/opt/autoconf-2.64/bin:$PATH</strong></p><p>Now run <strong>$PATH </strong>, you can see the output will be like: <strong>/opt/autoreconf-2.64/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:........so on .</strong></p><p>Hence the path to 2.64 version tools is prefixed to <strong>$PATH </strong>. Thus it gets the highest priority. Thus, when we will run any of the <strong>autoconf</strong> tools, it will run the <strong>2.64 </strong>version.</p><p><em>(Note if you run </em><strong><em>export PATH=$PATH:/opt/autoconf-2.64/bin</em></strong><em> instead of </em><strong><em>export PATH=/opt/autoconf-2.64/bin:$PATH</em></strong><em> , the path will get suffixed, and it will get the least priority.).</em></p><h3>Managing the versions.</h3><p>As now we have figured out the way to run 2.64 version, whenever I need to run <strong>autoreconf -fvi (2.64) version</strong>, I just run <strong>export PATH=/opt/autoconf-2.64/bin:$PATH </strong>before it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*xLdfFV798esbYHqBELjoWA.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>And when I need to run <strong>autoreconf -fvi (2.69) version</strong>, I just run <strong>export PATH=/usr/bin:$PATH </strong>before it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*KPfGrbhu1kS7fn1Db7AbQg.png" /><figcaption>Screenshot of my Terminal.</figcaption></figure><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1e28de8617b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/how-to-handle-two-versions-of-autoconf-b1e28de8617b">How To Handle Two Versions of autoconf?</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Setup a Headless Raspberry Pi]]></title>
            <link>https://medium.com/hackernoon/how-to-setup-a-headless-raspberry-pi-7f2b8b00c790?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f2b8b00c790</guid>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[headless-raspberry-pi]]></category>
            <category><![CDATA[headless]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Fri, 07 Jun 2019 18:48:24 GMT</pubDate>
            <atom:updated>2019-06-15T07:25:09.956Z</atom:updated>
            <content:encoded><![CDATA[<h4>Operate Raspberry Pi Wirelessly through your Linux System.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xmnu00Qqtu4AAR06" /><figcaption>Photo by <a href="https://unsplash.com/@hbtography?utm_source=medium&amp;utm_medium=referral">Harrison Broadbent</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>How to Setup a Headless Raspberry Pi</h3><h4><strong><em>Operate Raspberry Pi Wirelessly through your Linux System.</em></strong></h4><p>Want to operate your Raspberry Pi without buying extra keyboard, mouse, monitor, etc ? Then this guide is for you.</p><p><em>Below methods are successfully tested on </em><strong><em>Raspberry Pi 3B</em></strong><em> and </em><strong><em>Raspberry Pi Zero W</em></strong><em>, using Arch Linux as Host OS. Moreover, this tutorial can be used for Microsoft Windows too as Windows supports Linux terminal. Use the terminal and follow steps.</em></p><p><em>If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it!</em></p><h4>How to setup Pi?</h4><h3>So, Let’s Start</h3><h3>Step 1 : Fulfill Requirements</h3><p>You will need following resources:</p><ul><li>Raspberry Pi and its power adapter</li><li>Micro SD Card <em>(8 GB or more)</em></li><li>Wireless Router <em>(You can even use the Hot-Spot of your smartphone)</em></li><li>A Linux System.</li><li>Active Internet.</li></ul><h3>Step 2 : Download Raspbian</h3><p>To go to official download page, <a href="https://www.raspberrypi.org/downloads/raspbian/">click here</a>.</p><p>Download <strong>“Raspbian Stretch with desktop and recommended software”.</strong> This ISO contains <strong>ssh server</strong>, <strong>vnc server</strong> and other required tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4k_YaH0__ScPJMRN33WKgg.jpeg" /></figure><h3>Step 3 : Burn the ISO to Micro SD Card</h3><p>First of all, connect the Micro SD Card to your Linux System.</p><p>Use Balena Etcher to burn the Raspbian to SD Card. Etcher is an open source, very handy and easy to use, tool for burning Linux Images. <em>(Raspbian is also Linux based). </em>Download it from <a href="https://www.balena.io/etcher/">here</a>.</p><p>Run it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*WasFiqtsaaNyTCLUvnQW3g.png" /></figure><p>Select the path to Raspbian ISO, then select your SD Card to be burned and click <strong>Flash!</strong>. It will ask for authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*ya978YiYLcPYaxO7qTwXEg.png" /></figure><p>Enter your Password. It will take some time, till then have your coffee break. :).</p><h3>Step 4 : Enable SSH</h3><p>Open the <strong>boot</strong> partition of your SD Card in your File Explorer. Now run the terminal in same working directory and create an empty file with name <strong>SSH </strong>. This has to be done only for the first-time-boot, this will enable SSH sever on your Pi, hence it can be controlled via network.</p><p>Run the following command:</p><p><strong>$ touch SSH</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_8pcIJHmbJkqiH8TmTfSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKexvB7tiQpHeJilcJ585w.jpeg" /></figure><h3>Step 5 : Feed Wifi password in your Pi</h3><p>The WiFi connection can be provided either by a wireless-router or a Smartphone-HotSpot.</p><p>This is necessary as we are setting up a headless Pi, we need it to connect to a network as soon as it boots. <strong>Connect it to the same network with which your Linux System is connected</strong>. This will create a local area network.</p><p>Again it has to be done only for the first-time-boot.</p><p>Open <strong>rootfs </strong>partition of your SD Card in your File Explorer. Now run the terminal in same working directory.</p><p>Now move to the <strong>etc/wpa_supplicant </strong>directory and edit <strong>wpa_supplicant.conf </strong>file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*QOqa5keeweBUaWmNJsbxCA.png" /><figcaption>Screenshot of my Terminal.</figcaption></figure><p>Now modify it with the following content.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7669a77a413c1b69439b96eeabb6728a/href">https://medium.com/media/7669a77a413c1b69439b96eeabb6728a/href</a></iframe><p><strong>country=IN </strong>is for your country. Here in my code, <strong>IN </strong>stands for <strong>India.</strong></p><p>Your <strong>wpa_supplicant.conf </strong>file will look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*l2np1ezBXr3_EdZj4LhlJw.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><h3>Step 6 : Power On your Raspberry Pi</h3><h3>Step 7: Find IP of your Raspberry Pi and access it using SSH.</h3><p><strong>(Note: We can skip this troublesome if we use static IP. But it will make this tutorial very tricky.)</strong></p><p><em>If your router supports </em><a href="https://en.wikipedia.org/wiki/Multicast_DNS"><em>MDNS</em></a><em>, (All smartphones with Andoird &lt; 9 support MDNS through their HotSpot), simply login into your pi using command </em><strong><em>ssh pi@raspberrypi </em></strong><em>or </em><strong><em>ssh pi@raspberrypi.local </em></strong><em>. It asks for password, which by default is </em><strong><em>raspberry </em></strong><em>.</em></p><p>We are going to operate Pi with our Host Linux System. And to establish a communication between two systems we need IP addresses. This is why we connected our System and Pi to the same router/smartphone-hotspot, so as to create a local network.</p><p>We are using router/smartphone-hotspot just as a 3rd party device to provide our system and Raspberry Pi with their IP addresses.</p><p>So let’s find the IP address of our Pi. To do this first we need to find IP address of our system. You can run any of the following command:</p><ul><li><strong>ifconfig</strong></li><li><strong>ip addr</strong></li><li><strong>ip address show</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*_jlWXC_ucRgSWRakcIowyQ.jpeg" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>As you can see , from the line <strong>inet 192.168.1.7/24 </strong>, its obvious that my IP address is <strong>192.168.1.7 </strong>.</p><p>And as my Linux system and Raspberry Pi are connected to same network, my Raspberry Pi is going to have an IP address of form <strong>192.168.1.xx </strong>where <strong>xx </strong>is any whole number between 1 to 255.</p><p>We need <strong>nmap </strong>. Install it on your system.</p><p>As my IP is <strong>192.168.1.7 </strong>, I will run the following command (modify the command according to your IP):</p><p><strong>$ nmap -sn 192.168.1.0/24</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*iUXo8aH8GFkRFljT5b3kpg.png" /><figcaption>Screenshot of my terminal.</figcaption></figure><p>Now all the IP addresses you can see in the screenshot of my terminal, are of the devices connected to my Wifi Router.</p><p>Check which one is of your Pi.</p><p>Run the command with the IP addresses you got:</p><p><strong>$ ssh pi@&lt;ip-address&gt;</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*110BhpJibPpi7iSid_jwPA.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Hence found, <strong>192.168.1.8 </strong>is the IP address of my Pi.</p><p>The default password for your Raspberry Pi is<strong> </strong><strong>raspberry .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*EaEpJxbIFcffDbcKJ01bXA.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><h3>Hurray! Congratulations. You have setup your Headless Pi.</h3><p><em>Sometime running </em><strong><em>sudo nmap -sn 192.168.1.0/24 </em></strong><em>instead of just </em><strong><em>nmap -sn 192.168.1.0/24 </em></strong><em>displays Hostname of devices connected. For example:</em></p><pre><strong>sudo nmap -sn 192.168.1.0/24</strong></pre><pre>Starting Nmap 6.40 ( http://nmap.org ) at 2014-03-10 12:46 GMT<br>Nmap scan report for <strong>hpprinter</strong> (192.168.1.2)<br>Host is up (0.00044s latency).<br>Nmap scan report for <strong>Gordons-MBP</strong> (192.168.1.4)<br>Host is up (0.0010s latency).<br>Nmap scan report for <strong>ubuntu</strong> (192.168.1.5)<br>Host is up (0.0010s latency).<br>Nmap scan report for <strong>raspberrypi</strong> (<strong>192.168.1.8</strong>)<br>Host is up (0.0030s latency).<br>Nmap done: 256 IP addresses (4 hosts up) scanned in 2.41 seconds</pre><p>Th above output is from <a href="https://www.raspberrypi.org/documentation/remote-access/ip-address.md">https://www.raspberrypi.org/documentation/remote-access/ip-address.md</a></p><h3>Access the desktop of your Headless Pi</h3><h4>Step 1 : Enable VNC on Pi</h4><p>Access your Pi ussing SSH and run the following command:</p><p><strong>$ sudo raspi-config</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*buUeuWctBNHzjcA8l3YwOg.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Using arrow keys, go to the option for <strong>Interfacing Options</strong>. Press <strong>Enter</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*7DjjCAf_-BAyFE5JVofjYA.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Using arrow keys, go to the option for <strong>VNC</strong>. Press <strong>Enter</strong>. Follow all options to <strong>enable </strong>it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*0htG2n0TN8xZxktHrpVZcg.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><p>Finally <strong>Finish</strong> it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*X4BOah6PdjCXULRnELDTng.png" /><figcaption>Screenshot of my Terminal</figcaption></figure><h4>Step 2 : Download VNC Viewer</h4><p>We will need <strong>VNC Viewer</strong> for this. Download it from <a href="https://www.realvnc.com/en/connect/download/viewer/linux/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dTRydrqzFh8BH_0DLkpxMQ.png" /></figure><p>Unzip the File, if you have downloaded the <strong>Standalone</strong> version. <strong>Right-click</strong> on it and check the box for<strong> “Allow executing file as program”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*FS_tevEX2OhXcYiKAeWAYQ.png" /></figure><h4>Step 3 : Access desktop of Pi using VNC Viewer</h4><p>Run VNC Viewer and enter the IP address of your Pi. It will ask for confirmation. Click <strong>Continue</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*EWeMI5HDclKkJNRUjkE3EA.png" /></figure><p>Now enter username and password.</p><p>Username is : <strong>pi</strong></p><p>Password is : <strong>raspberry</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*5PHsK7Wm_WPW1LYmgTu9RA.png" /></figure><p>Click <strong>OK.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kjY22nUXec_NuIqdWkAVPw.png" /></figure><h3>Hurray! Congratulations. You have accessed the desktop of your Headless Pi.</h3><h3>About me</h3><p>Hello, my name is Vaibhav Gupta. An OS/Kernel Enthusiast | GSoC ’19 (RTEMS Project) | Developer | Mentor | Blogger | Sketch Artist | Archer.</p><p>When I got my first Pi, I faced many problems to set it up headless, as I was running Linux on my host system and there are very few tutorials on the net for this scenario. Even my seniors had a tutorial, but only for Windows. I researched and experimented a lot, tried various steps. Now I have a perfect guide to operate a Pi.</p><p>I love to share what I learn. So, I wrote this blog to help other IOT enthusiasts :) .</p><ul><li>For my other projects, my GitHub Link- <a href="https://github.com/VARoDeK/RGEVS">https://github.com/VARoDeK</a></li><li>My other featured blogs- <a href="https://medium.com/my-gsoc-2019-journey/my-pre-gsoc-journey-2c528033b66d">https://medium.com/my-gsoc-2019-journey/my-pre-gsoc-journey-2c528033b66d</a></li></ul><h4>Let’s get connected</h4><p>For any queries, ping me on LinkedIn or Facebook. Follow me on:</p><ul><li>My LinkedIn Profile- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>My Facebook Profile- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>My Twitter account- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li><li>My Medium account- <a href="https://medium.com/@varodek">https://medium.com/@varodek</a></li></ul><p><em>If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f2b8b00c790" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/how-to-setup-a-headless-raspberry-pi-7f2b8b00c790">How to Setup a Headless Raspberry Pi</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC - My Journey of Community Bonding Period]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/my-journey-of-community-bonding-period-584a2146db5d?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/584a2146db5d</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[kidney-stones]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[gsoc-2019]]></category>
            <category><![CDATA[community-bonding-period]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Sun, 02 Jun 2019 16:49:06 GMT</pubDate>
            <atom:updated>2020-05-23T13:36:03.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oTik4RfjueHlYNCt" /><figcaption>Photo by <a href="https://unsplash.com/@nate_dumlao?utm_source=medium&amp;utm_medium=referral">Nathan Dumlao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>(It was a bit adventurous phase for me. I was working on my project and gave semester exams. And also had surgery in between all that.)</em></p><h3>What is Community Bonding Period?</h3><blockquote>The period of time between when accepted students are announced and the time these students are expected to start coding. This time is an excellent one to introduce students to the community, get them on the right mailing lists, working with their mentors on their timeline for the summer, etc <a href="https://developers.google.com/open-source/gsoc/resources/glossary">[source 1]</a> .</blockquote><p>This is just a basic definition given by Google. In my last blog <a href="https://medium.com/my-gsoc-2019-journey/my-pre-gsoc-journey-2c528033b66d"><strong>“My Pre-GSoC Journey”</strong></a>, I explained about Open Source world and why to get involved in it. I would like to add up one more thing about it here, that Open Source is also about culture and ethics.</p><p>Every Open Source Organization has its own culture and ethics which their community follows. The best thing GSoC does is, it gives 1 month to the students to get familiar with this, in their community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z_HH6uLyb6r8Y7b2" /><figcaption>Photo by <a href="https://unsplash.com/@austindistel?utm_source=medium&amp;utm_medium=referral">Austin Distel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This is the time where students get familiar with the way work is done in their community. They get familiar with their mentors, plan their project and timetable, with them. They receive guidelines for contribution, ask for resources to gain knowledge on any topic, etc.</p><h3>When it gets started?</h3><p>Right after the moment you see your name on GSoC’s Project page, you <strong>enter into the Community Bonding Period</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lZEfeZ5_IeYJ1FqA8Izk1Q.jpeg" /><figcaption>Screenshot of movie: Avengers Infinity War</figcaption></figure><p>This year, it started on 6th May. During this time students receive official letters from Google and the community. Students are asked to set up their Payoneer account to receive the stipend. They receive various links to get connected for communication. May 27 was the day when it ended and the official coding period started.</p><h3>What one should do during this time?</h3><ul><li>Get familiar with the <a href="https://en.wikipedia.org/wiki/Programming_style">Style-guide</a> for specific programming languages, your community is following in the project you are going to do during SoC.</li><li>Ask for resources, required by you, to gain your knowledge for the parts of your project you don’t know.</li><li>Discuss and plan your GSoC work with your mentor.</li><li>Discuss and plan your time-table for your summer.</li><li>Plan weekly calls/meetings, to submit your weekly report, with your mentor.</li></ul><p>These are important things to be done, also there can be various other non-coding GSoC related things which you can clear out during this period.</p><h3>My one month journey of Community Bonding Period.</h3><p>On 6th May 2019, 11:30 PM IST, results were announced. I was very happy. It was my lucky day because there were two good news for me.</p><p>Back in 2016, when I was in 12th std, <strong>I made first-ever Electronic Voting System for my school. </strong><a href="https://github.com/VARoDeK/RGEVS"><em>(See the project on GitHub)</em></a>. It was used for 3rd time in my school on 6th May 2019, the same day when GSoC results were announced. <em>(</em><a href="https://www.facebook.com/vaibhav.gupta.1004837/posts/2302919146436153"><em>Click here</em></a><em>)</em>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F39fj7g99qyD72%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F39fj7g99qyD72%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F39fj7g99qyD72%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="320" frameborder="0" scrolling="no"><a href="https://medium.com/media/e39014577ce2c97c749119370cb6b3ca/href">https://medium.com/media/e39014577ce2c97c749119370cb6b3ca/href</a></iframe><p>The good news were raining. Happiness got double when I came to know that another branch of Ryan expressed their interest in my software. On 8th May 2019, it was again used in Ryan Mayur Vihar <em>(</em><a href="https://www.facebook.com/vaibhav.gupta.1004837/posts/2302921586435909"><em>Click here</em></a><em>)</em>.</p><p>My project was going good. I was making progress. I discussed my plans with my mentors and we decided that we should do some basic work to make me familiar with the things.</p><p>The day I received the news about my software, at its night,<strong> </strong>I suffered a pain attack in my kidney and had to be shifted in the emergency ward. I was diagnosed with kidney stones, two years ago, and my treatment was in process. I came back to home after the doctor gave me a few injections, but in the morning I suffered the second attack and this time it was unbearable. I was again shifted to the emergency ward. The doctor said, the surgery needs to be done very next day.</p><p>A friend of my cousin took an extra effort to help my family with the processes and formalities as my father was in Ahmedabad. He lives there because of his job and visits us on a regular basis. When he got the news, he took the immediate option available to travel, but it was going to take him almost 24 hours to be here.</p><p>The next day in the morning, I was operated. A trouble was over. My father arrived in the afternoon. On the 11th, I was discharged.</p><p>The worst part was, from 15th May my End-semester exams were commencing and on 13th May I had to attend college to give my practical, which was missed because of Post Spinal Anesthetic Headache. I had to lie on bed all the time. Even the height of the pillow used to start the headache. It lasted for a week. As it was end semester exam, giving it in any case was the best option or I had to drop my semester. Other options would not have been beneficial for me due to college policies.</p><p>Kidney Stone removal surgery does not sound that big deal. But in my situation I was on edge to ruin my practicals as well as my end-semester exams. So it was depressing, highly depressing for me. And unexpected rare case of headaches was troubling me.</p><p>This is the point where a person can make best use of his subconscious mind. I started with being positive in this situation too. I realized that my Stones were big and they had to be removed at one or the other point of time. I thanked to God that this happened before Coding period started, else I would have lost GSoC too.</p><p>I got totally inactive on mailing list for almost 2 weeks. I mailed about my condition to the community and they understood my situation in a very gentle manner. One of my mentors assured me to be stress free for the work, till then he made guidelines for me and provide me some links to read for the project. I gave the practical and half of my exams in the same condition of headaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dLZlGRspV018mMa8" /><figcaption>Photo by <a href="https://unsplash.com/@2mduffel?utm_source=medium&amp;utm_medium=referral">Mark Duffel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Soon after the exams, I recovered. There was a bunch of emails, that got collected. I followed them and updated myself with the current activities of the community. I started with my work and submitted git-patches.</p><p>It was a Community Bonding Period in real sense for me. My mentors and my community was very supportive during my condition. As I said about culture and ethics in the first paragraph of the blog. I have experienced it. It will be the most memorable summer for me.</p><h3>Let’s get connected</h3><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=584a2146db5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/my-journey-of-community-bonding-period-584a2146db5d">GSoC - My Journey of Community Bonding Period</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Pre-GSoC Journey]]></title>
            <link>https://medium.com/my-gsoc-2019-journey/my-pre-gsoc-journey-2c528033b66d?source=rss-688abfc58746------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c528033b66d</guid>
            <category><![CDATA[gsoc-2019]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Vaibhav Gupta]]></dc:creator>
            <pubDate>Thu, 30 May 2019 16:27:35 GMT</pubDate>
            <atom:updated>2020-10-02T20:26:14.562Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I am new to open source, how to select a project? How to discover your interest in an organization? How to contribute? How to manage time? How to write a proposal?</em></p><p>There were many doubts I had in my mind when I started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vNpYNmIxuHXr9p5-" /><figcaption>Photo by <a href="https://unsplash.com/@brucemars?utm_source=medium&amp;utm_medium=referral">bruce mars</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I made a lot of mistakes, I asked a lot of doubts, and with the help of my seniors and mentors, I was able to achieve it. Here is my story of the journey to Google Summer of Code.</p><h3>What is open source and why to take interest in it?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FVhjOBf6YWhuB_p-" /><figcaption>Photo by <a href="https://unsplash.com/@emilymorter?utm_source=medium&amp;utm_medium=referral">Emily Morter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a college student, if you are an OS/Kernel Enthusiast or have a great interest in Embedded Systems or get fascinated by any technology that functions closest to the hardware, you would have felt that almost every practical knowledge is missing from your college syllabus. Being a bird of the same flock, I started looking for alternative ways to find the missing pieces of the puzzle, and then Open-Source changed everything for me.</p><p><strong>Or consider you are working for a dream company named ABC. Can you ever show me the code you wrote for the company? Or tell about it openly, to the world? Most of the time, you will be working on a particular part of the development process of a product, and you will have no idea how does the whole thing work. Can you ever acquire that knowledge?</strong></p><p>My first contribution to my organization was in their documentation. After I reported it, unlike proprietary companies, they asked me to prepare a patch and submit it so that they can apply the changes. This way, the authorship of my contribution, even a small one, was recorded by them, and it got published openly. I guess this answers all the questions I mentioned above.</p><h3>What is Google Summer of Code (GSoC) for me?</h3><p>Open-Source is an entirely different world. I see GSoC as the first and most significant step to becoming a part of it. It is a profound opportunity to get mentored by professionals while working on an industrial project.</p><h3>I found my Organization.</h3><p>It was around the end of September 2018, I started searching for Organizations. I made a list of organizations I was interested in. I made separate columns like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVYPqpSzSLxWMN7pNiZPMA.jpeg" /><figcaption>Screenshot of the list I made.</figcaption></figure><ul><li><strong>Topic</strong> — To specify their projects</li><li><strong>Genre</strong> — To specify the field, their projects are related to, like Web-Dev, Android, OS, Libraries, etc.</li><li><strong>Languages</strong> — To specify the programming languages required to do their projects.</li><li><strong>Chat</strong> — To specify the communication platform they are using like, glitter, mailing list, irc, etc.</li></ul><p>This is how I figured out <strong>RTEMS</strong> as a perfect fit for me. They have the projects of my interest. They are dealing with POSIX, kernel, BSPs, Architecture specific codes and many more things and one can directly contribute in it during GSoC.</p><p>Other Operating System organizations don’t bring Kernel related projects. They usually bring supporting software related projects for their OS.</p><p>That time the list of participating organizations for 2019 was not released by Google, hence my seniors advised, to look for organizations that are not new, as they have a better probability to get selected. This is a good strategy but I got so much into RTEMS that I didn’t wanted to change my Org.</p><p>Although, later I found that RTEMS has been continuously participating in GSoC since 2008. They were are into the open source since the times when open source was not even in fashion.</p><h3>I Joined the Mailing List</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LVe1I4LmP_4aHcrn" /><figcaption>Photo by <a href="https://unsplash.com/@siora18?utm_source=medium&amp;utm_medium=referral">Siora Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The first step was to join their mailing list and observe. As I knew zero about their OS, I joined each and every mailing list they had. Observing the activities of developers on mailing lists and paying attention to their discussions proved out to be the best way to learn.</p><h3>Run Project on my System</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YballB92JQRjymez" /><figcaption>Photo by <a href="https://unsplash.com/@andrewtneel?utm_source=medium&amp;utm_medium=referral">Andrew Neel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The next step was to install their project on your system and run it.</p><p>As said, “You cannot be a developer, until and unless you are a user”.</p><p>I was successfully able to build RTEMS on my system and completed their initial task.</p><p>Though I had a smooth start but things were going to be tricky for me. In mid-October, while I was preparing for GSoC my batch mate invited me to join his team to participate in an Ideathon conducted by IIT Bombay Techfest. This was also a big opportunity, hence I joined him.</p><p>Now I had to code for the IOT project for Ideathon and also prepare for GSoC. Situation was, after a month I had to manage my semester exams and Ideathon. But I planned and managed my time. We won Ideathon, but I had to invest enough of my time in that. This caused a delay in my preparation but later proved to be useful.</p><h3>I Introduced Myself in the Community</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LbQzQ-dZr0eaB610" /><figcaption>Photo by <a href="https://unsplash.com/@hostsorter?utm_source=medium&amp;utm_medium=referral">Host Sorter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>By the time Techfest and Exams got over, it was mid of January. I introduced my self to the community and got involved in discussions. This is necessary because interaction with the community is a major part of your learning. Also, it helps community to know judge your potential.</p><p>Meanwhile, we got selected for the final round in a Hackathon held by IIT Kanpur Techfest. I still remember that time. I was handling my GSoC, Techfest’s 2 projects and my mid-semester exams.</p><p>Being active in this case was getting difficult for me. So, I informed the community and assured them that I will be working passively for those few days, and submit the report at the end.</p><h3>Selecting project for GSoC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nJ7gEwtyVXRng9ng" /><figcaption>Photo by <a href="https://unsplash.com/@timothymuza?utm_source=medium&amp;utm_medium=referral">timothy muza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>By the project, here I mean the task for your GSoC.</p><p>One of the good things I did was I got connected to developers, who were selected for GSoC 2018 in my organization, for guidance, and they were very helpful.</p><p>It was 2nd March when I started querying for GSoC suitable projects. Many of the projects I chose got rejected. I was getting nervous as the proposal writing period was going to start on 25th of March. Most GSoCers recommend to select the project by December end and start contributing to it. But here I was. Around the 7th of March I started to query about the POSIX Compliance project, it took 12 days for discussion with the community and finally it was accepted. But still some of the sub-tasks had to be added and it took another 5 days. The developers in my community and very helpful and gentle. They took my constant efforts, contribution, and activities into consideration.</p><h3>Writing Proposal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jantI1xxvG8bB6Bv" /><figcaption>Photo by <a href="https://unsplash.com/@patrickian4?utm_source=medium&amp;utm_medium=referral">Patrick Fore</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Your proposal reflects your attitude towards work, persistence, commitment, and personality. GSoC does not want a student with their mind full of knowledge, they want students who are ready to learn and get molded according to the community.</p><p>The proposal should reflect on how you are going to work in summer. It should be realistic. Never ever fake yourself and your skills in the proposal. There should be no plagiarism. If there is a need to take some data from the internet, which is needed by your proposal, cite it. Always use attributions.</p><p>You can mention screenshots. If your project is about a website or an app, you can attach a rendered image displaying how your project will look like after completion. You can make a YouTube video of yourself explaining your approach to the project and provide its link in the proposal.</p><p>In my case, The proposal template was given by my Org. I had access to the archive of proposals, of GSoC students of past years who got selected in my Organization. I went through them and all my doubts regarding proposal writing were clear. Then, I made my proposal accordingly and it was of 8–9 pages hardly.</p><p>As Raspberry Pi and Arduino are a part of embedded systems, I mentioned our Techfests’ project and briefed my role in it under the heading “Past Experience”. This gave a plus point to my proposal.</p><p><a href="https://docs.google.com/document/d/1NLbcFdHwWTEAismvz0E_C07Oos_4p6Y3IRGcE8fugSg/edit?usp=sharing">Click here to see My Proposal.</a></p><p>Many students make the proposal of 20+ pages. It depends from org to org.</p><p>I shared the link to my proposal to my mentors for review and suggestions and submitted my proposal on GSoC portal, with final changes, on time.</p><h3>Result Day!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hdqQKwInv2eS4coOrNRVkw.png" /><figcaption>Screenshot of GSoC, Projects page. ‘VARoDeK’ is my nick I use for coding.</figcaption></figure><p>The results date was 6th of May. Its almost 1 month after the proposal writing period gets over. Many students think its time to relax, but this is where you should work with all your potential.</p><p>During this time I analyzed my past 7 months journey and realized I have used much of time in IIT’s Techfests and MSCOY. I felt I won’t be selected and was losing hopes. Finally, it was results day. I was waiting for the clock to tick and was ready to refresh the page. But my net got jammed at the edge moment. It was my senior who called me and gave me the good news. That moment is impossible to explain. But it was something I aspired for and achieved it, I was satisfied and hence count it as a success.</p><h3>After Results</h3><p>The next step is <strong>“Community Bonding Period”</strong>.<strong> </strong><a href="https://medium.com/my-gsoc-2019-journey/my-journey-of-community-bonding-period-584a2146db5d">My next blog</a> is dedicated to this part of GSoC only. Must read and get to know what it is about and how to make best out of it. <a href="https://medium.com/my-gsoc-2019-journey/my-journey-of-community-bonding-period-584a2146db5d"><em>(Click here)</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*36LKdgAdFRy0VHEc1ZOcJA.jpeg" /><figcaption><a href="https://medium.com/my-gsoc-2019-journey/my-journey-of-community-bonding-period-584a2146db5d">Click To Read</a></figcaption></figure><h3>About me</h3><p>Hello, my name is Vaibhav Gupta. At the time of writing this blog, I am a sophomore under graduate student pursuing BTech. degree in Computer Science and Technology.</p><p>I am a OS/Kernel Enthusiast and also have interest in Compilers and Cryptography. I am a low-level-tech developer. I like to work on lowest layer of software and interaction with hardware using software. I want to become a Kernel Developer.</p><h4>Let’s get connected</h4><p>Follow/ Connect with me anytime.</p><ul><li>LinkedIn- <a href="https://www.linkedin.com/in/varodek/">https://www.linkedin.com/in/varodek/</a></li><li>GitHub- <a href="https://www.github.com/VARoDeK">https://www.github.com/VARoDeK</a></li><li>Facebook- <a href="https://www.facebook.com/vaibhav.gupta.1004837">https://www.facebook.com/vaibhav.gupta.1004837</a></li><li>Twitter- <a href="https://twitter.com/varodek">https://twitter.com/varodek</a></li></ul><p><em>Follow this </em><a href="https://medium.com/my-gsoc-2019-journey"><em>Publication</em></a><em> for more stories on this subject. If you find this blog helpful, please </em><strong><em>click the </em></strong>👏<strong><em> button</em></strong><em> </em><strong><em>and share </em></strong><em>to help others find it! Feel free to leave a comment </em>💬<em> below :).</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c528033b66d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/my-gsoc-2019-journey/my-pre-gsoc-journey-2c528033b66d">My Pre-GSoC Journey</a> was originally published in <a href="https://medium.com/my-gsoc-2019-journey">My GSoC 2019 Journey</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>