<?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 Ukesh Aryal on Medium]]></title>
        <description><![CDATA[Stories by Ukesh Aryal on Medium]]></description>
        <link>https://medium.com/@ukesharyal?source=rss-48101c90da82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fuT3U5L4KKRygV1zq_tmlg.png</url>
            <title>Stories by Ukesh Aryal on Medium</title>
            <link>https://medium.com/@ukesharyal?source=rss-48101c90da82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:27:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ukesharyal/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[KiForge — A Small Tool for Automating KiCad Exports]]></title>
            <link>https://ukesharyal.medium.com/kiforge-a-small-tool-for-automating-kicad-exports-8dd6f0856fcd?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dd6f0856fcd</guid>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[kicad]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 19:25:50 GMT</pubDate>
            <atom:updated>2026-06-04T19:25:50.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*J6bcUHSp_oW6vW6j-EUpkA.png" /></figure><p>After working on and releasing a few hardware projects, I kept running into the same problem:</p><p>Every release required generating Gerbers, BOMs, CPL files, PDFs, 3D renders, STEP models, Interactive BOMs, and several other files. The process involved a lot of manual steps, and it was easy to miss something or accidentally export the wrong version.</p><p>So I built <a href="https://github.com/alphaseneca/kiforge/"><strong>KiForge</strong></a>.</p><p><a href="https://github.com/alphaseneca/kiforge/">GitHub - alphaseneca/kiforge: KiForge is a build pipeline for KiCad projects, automating export of PCB renders, BOMs, SVGs, STEP models, and release artifacts for manufacturing and documentation.</a></p><p>KiForge is my first open-source project — an automation tool for KiCad that helps generate manufacturing and documentation files directly from your project. It supports the latest KiCad 10 and can run as:</p><p>• A KiCad plugin<br>• A GitHub Action<br>• A CLI tool<br>• Inside the official KiCad Docker environment</p><p>The goal is simple: make it easier to prepare, package, and share hardware projects.</p><p>For example, when you create a Git tag, KiForge can automatically generate versioned manufacturing files and publish them as GitHub Release assets — without committing generated files back into your repository.</p><p>It can generate:</p><p>⚡ Gerbers &amp; Drill Files<br>⚡ JLCPCB BOM &amp; CPL Files<br>⚡ Schematic PDFs<br>⚡ STEP Models<br>⚡ 3D Renders<br>⚡ SVG Exports<br>⚡ Interactive HTML BOMs</p><p>For hardware developers, this means less time spent on repetitive export tasks and more confidence that all release files are generated consistently from the latest design.</p><p>The idea was inspired by software development workflows, where releases can be automated and reproduced reliably. I wanted to bring some of that simplicity to hardware projects.</p><p>KiForge is completely open source and MIT licensed.</p><p>Since this is my first open-source project, I’d really appreciate feedback, suggestions, bug reports, and ideas for improvement from the KiCad and open hardware community. If you’ve faced similar challenges in your workflow, I’d love to hear how you handle them and what features would make a tool like this more useful.</p><p>#KiCad #OpenSource #HardwareDesign #PCBDesign #Electronics #GitHubActions #EmbeddedSystems #HardwareEngineering #EDA #Automation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dd6f0856fcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Home Lab — a step by step log.]]></title>
            <link>https://ukesharyal.medium.com/building-a-home-lab-a-step-by-step-log-fddcfce0c25e?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/fddcfce0c25e</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Sat, 02 May 2026 21:14:27 GMT</pubDate>
            <atom:updated>2026-05-02T21:14:27.039Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Home Lab — a step by step log.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8qzvNDTRDAbXhpgV4ngdg.jpeg" /></figure><p>This wasn’t a “let me build a homelab” moment.</p><p>It kind of… happened.</p><p>I already had a Raspberry Pi 5 running <strong>Home Assistant </strong>— <a href="https://medium.com/@ukesharyal/building-a-smart-home-without-cloud-dependencies-and-selling-my-data-e57033e878d8">documented, tested, doing its thing.</a> Nothing fancy, just me figuring stuff out as I went.</p><p>Then came the <a href="https://medium.com/@ukesharyal/how-to-setup-a-music-server-using-navidrome-a-beginners-log-6fb04fe92bae"><strong>Navidrome </strong>setup.</a></p><p>What was supposed to be just a personal music server slowly turned into something else. I started adding more services, tweaking configs, letting it handle more than it was meant to. At some point, calling it a “music server” didn’t make sense anymore — it had quietly become my networking node.</p><p>That’s when things started connecting.</p><p>Not physically — mentally.</p><p>Instead of separate projects, I had pieces of a system.</p><p>Still messy though. No structure. No center.</p><p>That changed when I added two things:</p><ul><li>a Dell mini PC</li><li>a proper network switch</li></ul><p>The Dell box became the Ubuntu server — the core.<br>The switch made everything feel intentional. No more random cables and ad-hoc connections. It actually started to look like a network.</p><p>With that in place, bringing in <a href="https://www.home-assistant.io/"><strong>Home Assistant</strong></a> just made sense.</p><p>Now it wasn’t just services running in isolation. My devices, my automations, my controls — all in one place. Something I could actually interact with, not just configure.</p><p>At this point, the setup looks like this:</p><ul><li>Pi 5 — where things started</li><li>“Navidrome server” — now handling networking and services</li><li>Dell mini PC — Ubuntu server, the backbone</li><li>Network switch — tying it all together</li><li>Home Assistant — the control layer</li></ul><p>It’s not clean. It’s not optimized. And it’s definitely not final.</p><p>But it works.</p><p>And more importantly, I understand it.</p><p>This setup didn’t come from a plan. It grew from small projects stacking on top of each other until they became something bigger.</p><p>Next steps are obvious — NAS, better structure, maybe clustering.</p><p>But I’m not rushing it.</p><p>Because this thing is way more useful as something I build slowly than something I try to finish quickly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fddcfce0c25e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[De-clouding a Tuya Smart Bulb]]></title>
            <link>https://ukesharyal.medium.com/de-clouding-a-tuya-smart-bulb-7fafe407bbb8?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fafe407bbb8</guid>
            <category><![CDATA[esphome]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[smart-home]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 16:03:20 GMT</pubDate>
            <atom:updated>2026-01-04T16:03:20.816Z</atom:updated>
            <content:encoded><![CDATA[<p>ESPHome, LibreTiny, and full local control with Home Assistant</p><blockquote><em>This post continues from the previous one on setting up Home Assistant.</em></blockquote><h3>Adding the First Device: Lights</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3eMY59_iIhLnOHAasEdFg.jpeg" /></figure><p>With Home Assistant running reliably and the network side already sorted, it was time to add the first real device: the Tuya-based smart bulb I already owned.</p><p>Tuya bulbs can be integrated into Home Assistant in several ways, each with trade-offs in control, latency, and overall architecture:</p><ul><li><strong>Cloud-based Tuya integration</strong> — quick to set up, but still depends on external servers and sends data outside the local network.</li><li><strong>Local Tuya</strong> — better latency and local control, but the device still runs vendor firmware and relies on reverse-engineered APIs.</li><li><strong>Custom firmware (ESPHome)</strong> — full local control, native Home Assistant integration, and no vendor software in the loop. The cleanest option.</li></ul><h3>Opening the Bulb and Identifying the Chip</h3><p>First step: crack the bulb open and see what’s inside.</p><h4>Chip Identification</h4><ul><li><strong>Chip marking:</strong> CB2L</li><li><strong>Chip family:</strong> Beken BK7231 series</li><li><strong>Variant:</strong> BK7231N</li></ul><p>I cross-checked the marking against community device profiles and <strong>LibreTiny’s supported chip list</strong>, and thankfully, it was supported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iOsH2pxetI0ZZLWD858v2Q.jpeg" /></figure><h3>OTA? Not This Time</h3><p>Before going straight to hardware, I looked into <a href="https://github.com/tuya-cloudcutter/tuya-cloudcutter"><strong>Tuya CloudCutter</strong></a>, which can disconnect supported devices from the cloud and, in some cases, flash custom firmware over-the-air (OTA).</p><p>In theory, OTA flashing is clean and convenient — no opening the device, no UART wiring. In practice:</p><ul><li>OTA support is highly device- and firmware-specific.</li><li>Only certain chips and firmware versions are compatible.</li></ul><p>For this bulb, the CB2L (BK7231 series) wasn’t officially supported by CloudCutter.</p><p>And since I prefer hands-on hardware work anyway, I skipped OTA entirely and went straight to hardware flashing.</p><h3>UART Wiring and Backing Up the Firmware</h3><p>Next came UART access — and this part wasn’t as straightforward as I hoped.</p><p>On this bulb, the <strong><em>TX</em></strong><em> and </em><strong><em>RX</em></strong><em> pads were on the underside of the SoC</em>, which meant there was no clean way to tap them while the chip was still soldered to the PCB.</p><p>So I had to <strong>desolder the chip completely</strong>.</p><p>I used a hot air rework gun to lift the SoC off the board, then wired up:</p><ul><li>TX, RX, GND, and 3.3V</li><li>Connected via a <strong>USB-to-UART</strong> adapter. i.e <a href="https://ftdichip.com/wp-content/uploads/2020/08/DS_FT232R.pdf"><em>FTDI Module</em></a></li><li>Pulled the <strong>CN pin to GND</strong> to enter bootloader mode</li></ul><p>Before flashing anything, I dumped the <strong>original firmware</strong> using <a href="https://github.com/libretiny-eu/ltchiptool">ltchiptool</a>.</p><p>Always back up first. Always.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cv3i_5_NHgFwZbER9e3mjg.jpeg" /></figure><blockquote>ftdi rx -&gt; chip tx<br>ftdi tx -&gt; chip rx</blockquote><h3>Device Profiling and Pin Mapping</h3><p>Tuya devices reuse hardware designs a lot, which means chances are someone has already mapped the pins.</p><p>Sure enough, I found a community profile that matched this bulb — GPIOs, PWM channels, RGB/CCT layout, everything.</p><p>This profile became my reference for the ESPHome configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMbLIyuRoB17SoKO8HJL4w.jpeg" /><figcaption><a href="https://docs.libretiny.eu/boards/cb2l/cb2l.svg">https://docs.libretiny.eu/boards/cb2l/cb2l.svg</a></figcaption></figure><h3>Flashing ESPHome</h3><p>With the profile sorted, I generated the ESPHome YAML using <strong>LibreTiny / UPK</strong>.</p><p><a href="https://upk.libretiny.eu/?profile=tuya-generic-rgbct-bulb-v1.3.20">https://upk.libretiny.eu/?profile=tuya-generic-rgbct-bulb-v1.3.20</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*ff5pXcr9-4ZsIzlXrP1UIg.png" /></figure><p>Alternatively, the dumped firmware can be uploaded to auto-generate the configuration.</p><p>I compiled the firmware directly using the <strong>ESPHome add-on in Home Assistant</strong>.</p><p>The initial flash was done over UART:</p><ul><li>Tuya firmware removed</li><li>ESPHome flashed</li><li>Wi-Fi configured</li></ul><p>From that point on, <strong>all updates happen OTA through Home Assistant</strong> — no wires needed again.</p><h3>Putting It Back Together</h3><p>Once flashing was done, I reassembled the bulb and screwed it back into the lamp.</p><h3>Home Assistant Integration</h3><p>Adding the bulb to Home Assistant was the easiest part.</p><p>It showed up as a native light entity with:</p><ul><li>RGB control</li><li>Color temperature control</li><li>Brightness control</li></ul><p>Everything worked exactly as expected, which confirmed that the pin mapping and firmware were spot-on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*M8ofEQVObr01PFKFQzQ4qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*Jt_4a04B7tLHVVs6BJJxig.png" /></figure><p>With the first bulb successfully integrated into Home Assistant, the next step is expanding the setup — more lights (including non-Tuya ones with different chips) and various sensors for automation.</p><p>Those additions will be covered in upcoming posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fafe407bbb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup a music server using Navidrome ? — A beginner’s log]]></title>
            <link>https://medium.com/coding-nexus/how-to-setup-a-music-server-using-navidrome-a-beginners-log-6fb04fe92bae?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb04fe92bae</guid>
            <category><![CDATA[samba]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[navidrome]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[home-server]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 14:06:22 GMT</pubDate>
            <atom:updated>2026-01-11T09:43:30.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to setup your own music server using Navidrome ? — A beginner’s log</h3><blockquote><em>“If buying is not owning, then piracy is not theft.”<br>— Someone on the </em><a href="https://doctorow.medium.com/https-pluralistic-net-2023-12-08-playstationed-tyler-james-hill-2ba28bfdbefc"><em>internet</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ptce1gABAI2JSpN4DEHVHA.jpeg" /><figcaption><a href="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*BwvDy_8DLYAPuG3ta1NJCQ.jpeg">https://miro.medium.com/v2/resize:fit:1400/format:webp/1*BwvDy_8DLYAPuG3ta1NJCQ.jpeg</a></figcaption></figure><p>Isn’t it cool to have your <strong>own</strong> music server? Like your personal Spotify or iTunes — but fully yours?</p><p>For me, that idea had been on my mind for years. The only problem was hardware — a proper NAS or server setup wasn’t in the budget.</p><p>When I bought a <strong>Raspberry Pi 5</strong> for Home Assistant, my old <strong>Raspberry Pi 3</strong> was left unused. It wasn’t powerful enough for the <a href="https://ukesharyal.medium.com/building-a-smart-home-without-cloud-dependencies-and-selling-my-data-e57033e878d8">new setup</a>, but it was still perfectly capable for smaller tasks.</p><blockquote><em>So instead of letting it gather dust, I repurposed it.</em></blockquote><p>I took what I already had — the Raspberry Pi 3 with <strong>1 GB RAM</strong>, a <strong>32 GB SD card</strong>, and an old <strong>SanDisk USB drive</strong> — and turned it into a small, no-frills music server.</p><p>Calling it a “server” might be a stretch, but it does exactly what I need it to do.</p><p>Alright, Let’s get into the fun part.</p><h3>Installing Raspberry Pi OS [64-bit → Lite]</h3><p>My first install was the normal Raspberry Pi OS 64-bit. It worked, but RAM usage was <strong>way</strong> too high even when idle.</p><p>So I looked for lightweight options. <strong>DietPi</strong> was one, but since I was already in unfamiliar territory, I didn’t want to introduce <em>another</em> unknown.</p><p>So I settled for:</p><p>✔ <strong>Raspberry Pi OS Lite (64-bit)</strong> — nice and breezy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*saAAs9kbx6nLAEhQhQSKjw.png" /></figure><p>The ISO was small, the setup was smooth, and I configured <strong>SSH</strong> and <strong>WiFi</strong> directly from <a href="https://www.raspberrypi.com/software/">Raspberry Pi Imager 2.0</a>. I’ll connect ethernet cable later and WiFi works for setup.</p><blockquote>hosthame: pi-media-server<br>username:rpms</blockquote><h3>The USB Storage Adventure</h3><p>For music storage, I decided to use an old SanDisk pen drive. The SD card would be used only for booting. For now, this pen drive was good enough — though the plan is to eventually move all of this to a proper NAS.</p><p>And this is where I hit my first “Linux moment”. I didn’t even know how to <strong>see the contents</strong> of the USB.</p><blockquote><em>I plugged in the USB, fully expecting it to magically appear…<br>and nothing happened.</em></blockquote><p>Turns out, things don’t auto-mount themselves on headless Linux.</p><p>I started by installing basic USB utilities:</p><pre>sudo apt update<br>sudo apt install usbutils</pre><p>Then I identified the USB drive and copied its UUID:</p><pre>sudo blkid</pre><p>Next, I created a permanent mount point:</p><pre>sudo mkdir -p /mnt/sandisk</pre><p>Then I edited fstab so the drive mounts automatically on boot:</p><pre>sudo nano /etc/fstab</pre><h3>fstab entry I used</h3><pre># mount the drives to the /mnt folder.<br><br># /etc/fstab: static file system information.<br>#<br># Use &#39;blkid&#39; to print the universally unique identifier for a<br># device; this may be used with UUID= as a more robust way to name devices<br># that works even if disks are added and removed. See fstab(5).<br>#<br># &lt;file system&gt;  &lt;mount point&gt;  &lt;type&gt;  &lt;options&gt;  &lt;dump&gt;  &lt;pass&gt;<br><br># Mount the SanDisk drive to /mnt/sandisk (ext4 filesystem)<br># - defaults: Use default mount options (rw, suid, dev, exec, auto, nouser, async)<br># - 0: Don&#39;t dump (backup) this filesystem<br># - 2: Check filesystem at boot after root partition (fsck order)<br># Note: ext4 handles permissions natively, no need for uid/gid/mask options<br>UUID=c3d72683-9591-4a53-8481-1ac220b2fa3f  /mnt/sandisk  ext4  defaults  0  2</pre><p>After saving the file, I tested the configuration and mounted everything:</p><pre>sudo systemctl daemon-reload<br>sudo mount -a</pre><blockquote>REBOOT!!!! <br>Reboot the system for the mounting to work properly. The uid and gid parameters takes a time to load.</blockquote><p>Finally, I verified that the drive was mounted correctly:</p><pre>ls -lh /mnt/sandisk</pre><p>Boom — my music file showed up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tvn8W1lxA4HeP6p8ucuUA.png" /></figure><p>Huge shout-out to <a href="https://www.youtube.com/@TechHut">TechHut</a>, his video helped me a lot here.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLkwZZIsY9uE&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLkwZZIsY9uE&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FLkwZZIsY9uE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2ad73e57cf53c8874273cd224daed1f1/href">https://medium.com/media/2ad73e57cf53c8874273cd224daed1f1/href</a></iframe><h3>Navidrome Time!</h3><p>With storage sorted, it was time for the actual music server. I chose <strong>Navidrome</strong> — lightweight, fast, perfect for a low-power Pi.</p><p>Learn more about it from here → <a href="https://www.navidrome.org/">https://www.navidrome.org/</a></p><p>Before installing, I needed <a href="https://www.docker.com/"><strong>Docker</strong></a>, because Navidrome has an official container image and I didn’t want to manage everything manually.</p><blockquote><em>Follow the Docker install guide for Debian here:<br></em><a href="https://docs.docker.com/engine/install/debian/">https://docs.docker.com/engine/install/debian/</a></blockquote><p>After Docker was up and running:</p><h3>Directory Setup</h3><p>This keeps everything clean and self-contained.</p><pre>cd ~<br>mkdir navidrome<br>cd navidrome<br>mkdir data<br>touch docker-compose.yml</pre><h3>🐳 docker-compose.yml</h3><pre>version: &quot;3&quot;<br>services:<br>  navidrome:<br>    image: deluan/navidrome:latest<br>    ports:<br>      - &quot;4533:4533&quot;<br>    volumes:<br>      - /mnt/sandisk:/music<br>      - ./data:/data<br>    restart: unless-stopped</pre><ul><li>/mnt/sandisk holds the actual music</li><li>./data stores Navidrome’s database and config</li><li><strong>restart: unless-stopped</strong> → restarts the container automatically after reboots, unless you explicitly stop it yourself.</li></ul><h3>Start Navidrome</h3><p>Yeahhhhhh.</p><pre>docker compose up -d</pre><p>The -d flag runs it in the background, and Docker takes care of keeping it alive.</p><p>At this point, Navidrome was live, scanning my music, and ready to stream.</p><p>And just like that — I had my own tiny, self-hosted music server.</p><p><strong>Reference Video:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F7V5UUJlSknY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D7V5UUJlSknY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F7V5UUJlSknY%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/29a35020f1dccfe976cd5eccee6803dd/href">https://medium.com/media/29a35020f1dccfe976cd5eccee6803dd/href</a></iframe><h3>Adding Music to the Server</h3><p>Once Navidrome was running, the next obvious question was:</p><blockquote><em>How do I actually add music to it?</em></blockquote><p>The music lives in /mnt/sandisk, but copying files directly on the Pi was inconvenient.</p><p>The clean solution here was to set up <a href="https://www.samba.org/"><strong>Samba</strong></a>, so the Pi shows up as a network drive and I could drop music into it from any device.</p><p>First, I installed Samba and its required binaries:</p><pre>sudo apt install samba samba-common-bin -y</pre><p>Installs Samba and required binaries; -y skips prompts.</p><p>Then, I configured a network share by editing Samba’s config:</p><pre>sudo nano /etc/samba/smb.conf </pre><p>At the bottom of that file, I added a section pointing to my music folder:</p><pre>[navidrome]<br>   path = /mnt/sandisk<br>   comment = Music Library for Navidrome<br>   browseable = yes<br>   read only = no<br>   valid users = rpms<br>   create mask = 0644<br>   directory mask = 0755<br>   force user = rpms<br>   force group = rpms</pre><p><em>Save and exit with </em><strong><em>Ctrl + X → Y → Enter</em></strong><em>.</em></p><p>I also added a Samba user for network access:</p><pre>sudo smbpasswd -a rpms</pre><p>You’ll be prompted for setting up a password. Set a strong password for your smb share. <br>Set folder permissions:</p><pre># Make rpms own the entire drive<br>sudo chown -R rpms:rpms /mnt/sandisk<br><br># Set directory permissions to 755 (rwxr-xr-x)<br>sudo chmod 755 /mnt/sandisk</pre><p>That ensures only user rpms can read, write, and execute files in the folder.</p><p>Finally, I restarted Samba and made sure it was running:</p><pre># Enable to start on boot<br>sudo systemctl enable smbd<br>sudo systemctl enable nmbd<br><br># Start the services<br>sudo systemctl start smbd<br>sudo systemctl start nmbd<br><br>sudo systemctl restart smbd<br>sudo testparm<br>sudo systemctl status smbd</pre><p>Add it via the <strong><em>Map network drive</em></strong> on windows machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*HjT7BPBivuT_hoCddezTgQ.png" /></figure><p>And just like that, the music folder became available over the network. I could drag and drop files straight from my laptop, and Navidrome automatically picked up new songs — no restart needed.</p><blockquote><em>I’ll refine permissions and users later for better security, but this quick setup was all I needed to start building my personal music library.</em></blockquote><p>Thanks to <a href="https://www.youtube.com/@NetworkChuck"><strong>NetworkChuck</strong></a> — his video about setting up smb share helped me a lot here.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvrELBV-r4Aw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvrELBV-r4Aw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvrELBV-r4Aw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b87dd31c45ccbd03af25943df0d306f7/href">https://medium.com/media/b87dd31c45ccbd03af25943df0d306f7/href</a></iframe><p>Also, this video provided the understanding of all the commands.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FR8pSyMGk6ZU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DR8pSyMGk6ZU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FR8pSyMGk6ZU%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0e3bb849fd18d0d472374b643c1e3d2/href">https://medium.com/media/f0e3bb849fd18d0d472374b643c1e3d2/href</a></iframe><h3>The Pi and Its Ever-Changing IP</h3><p>Power cuts on the Pi meant one annoying thing: it picked up a <strong>new IP</strong> every reboot.</p><p>The simplest fix? <strong>Reserve its IP in the router</strong> — no tinkering with static settings on the Pi itself.</p><p>I’ve already written a blog on this:</p><p><a href="https://ukesharyal.medium.com/the-hidden-cost-of-letting-dhcp-do-whatever-it-wants-def00a4bf243">The Hidden Cost of Letting DHCP Do Whatever It Wants</a></p><p>With that in place, the Pi keeps the same IP no matter how often it loses power.</p><h3>Conclusion — Local for Now, Public Soon</h3><p>Right now, the music server works <strong>only on my home network</strong>.</p><p>The next goal:</p><p>✔ Access it from anywhere</p><p>✔ Without opening unsafe ports</p><p>✔ Using a safe tunnel like <strong>Cloudflare Tunnel</strong>, <strong>Tailscale</strong>, or <strong>WireGuard</strong></p><p>That way, the server stays private, secure, and reachable remotely. I’ll document that setup in a future post.</p><p>For now, I’ve got my own <strong>Spotify-but-mine</strong>, running on a tiny Pi, with a USB stick, built entirely from what I had lying around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb04fe92bae" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-nexus/how-to-setup-a-music-server-using-navidrome-a-beginners-log-6fb04fe92bae">How to setup a music server using Navidrome ? — A beginner’s log</a> was originally published in <a href="https://medium.com/coding-nexus">Coding Nexus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Smart Home Without Cloud Dependencies and selling my data.]]></title>
            <link>https://medium.com/coding-nexus/building-a-smart-home-without-cloud-dependencies-and-selling-my-data-e57033e878d8?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57033e878d8</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[open-source-software]]></category>
            <category><![CDATA[home-assistant]]></category>
            <category><![CDATA[esphome]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 14:45:57 GMT</pubDate>
            <atom:updated>2025-12-17T14:45:57.658Z</atom:updated>
            <content:encoded><![CDATA[<p>I built a local-first smart home with <a href="https://www.home-assistant.io/"><strong>Home Assistant</strong></a> and a <a href="https://www.raspberrypi.com/products/raspberry-pi-5/"><strong>Raspberry Pi</strong></a>.</p><h3>Background</h3><p>I had bought a <strong>smart bulb</strong> earlier for my table lamp. On its own, it worked <em>fine</em>. At the time, I had just one light, no other sensors, and nothing else to integrate with — so the vendor app was tolerable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DjITnRp0OVQplv8PAgM0Eg.jpeg" /></figure><p>Things really broke down when I decided to add more lights and make the room properly “smart.”</p><p>Those new lights came with <strong>another app</strong>.</p><p>Now I had two apps controlling two lights — and both of them were talking to servers somewhere outside my network, somewhere overseas. For no good reason.</p><p>I also had several <a href="https://www.espressif.com/en/products/socs/esp32">ESP chips</a> and sensor modules lying around. Turning those into sensors was trivial. Integrating them into the vendor’s ecosystem, however, either wasn’t possible or wasn’t worth the pain. And even if it <em>was</em> possible — I wouldn’t do it. Who the hell wants that?</p><p>Every time I thought about adding sensors or building actual automations, I hit the same wall:</p><p>a pile of vendor apps, locked ecosystems, and the illusion of control.</p><p>I don’t want half a dozen company apps on my phone, and I definitely don’t want my data hopping across some foreign server just to turn on a light.</p><p>I don’t want my data sitting on servers owned by someone else.</p><p>And I don’t want my home to depend on external systems when I can run everything on my own <strong>private, enclosed server</strong> — inside my network, under my control.</p><p>When it comes to smart home automation, the one name that keeps coming up in the community is <strong>Home Assistant</strong>. And the more I looked into it, the more obvious it became why.</p><p>You can try the demo <a href="https://demo.home-assistant.io/#/lovelace/home">here</a>. ​</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unILMn9uK3IH5ty_4RpDtQ.png" /></figure><h3>How Did I Set It Up?</h3><p>I had a <strong>Raspberry Pi 3</strong> lying around, so I thought, <em>why not give it a try on this potato</em>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mmhSGmwY2yUg3ILC" /><figcaption><a href="https://images.prismic.io/rpf-products/877fb653-7b43-4931-9cee-977a22571f65_3b+Angle+2+refresh.jpg?auto=compress%2Cformat&amp;fit=max">https://images.prismic.io/rpf-products/877fb653-7b43-4931-9cee-977a22571f65_3b+Angle+2+refresh.jpg</a></figcaption></figure><p>I flashed Home Assistant using <strong>Raspberry Pi Imager 2.0</strong>, plugged in Ethernet, powered it up, and after a few minutes, Home Assistant was live at port <strong><em>8123</em></strong>.</p><p><a href="http://homeassistant.local:8123/">http://homeassistant.local:8123/</a></p><p>So far, so good.</p><p>The first add-on I installed — and the one I knew I’d need anyway — was <a href="https://esphome.io/"><strong>ESPHome</strong></a>. I’d heard about it for a long time, and it’s basically mandatory if you plan on building your own sensors and devices.</p><p>That’s where reality hit.</p><p>While compiling a simple ESPHome YAML into a binary, the Pi kept throwing errors. The issue wasn’t mysterious at all:</p><p><strong>RAM exhaustion</strong>.</p><p>The Pi 3 just didn’t have enough memory to handle the ESPHome compile process. Every build attempt spiked RAM usage, and the process crashed halfway through.</p><p>At this point, I was already invested and motivated enough, so I did the reasonable thing:</p><p>I bought a <strong>Raspberry Pi 5 (4 GB RAM)</strong>.<br>64 GB storage. More than enough (maybe…) for Home Assistant and future add-ons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*DabFi0XZ2xcTf5JRNgFcRw.png" /><figcaption><a href="https://hackster.imgix.net/uploads/attachments/1633748/_8O3Tx4JO1z.blob?auto=&amp;format=jpg">https://hackster.imgix.net/uploads/attachments/1633748/_8O3Tx4JO1z.blob?auto=&amp;format=jpg</a></figcaption></figure><p>Fresh install. Same process.This time, ESPHome compiled without choking, Home Assistant felt snappy, and everything worked the way it should have from the start.</p><p>Now,</p><p>If you want Home Assistant to stay on a specific internal IP instead of jumping around on every reboot, I’ve already covered this in detail in a previous post here.</p><p><a href="https://ukesharyal.medium.com/the-hidden-cost-of-letting-dhcp-do-whatever-it-wants-def00a4bf243">The Hidden Cost of Letting DHCP Do Whatever It Wants</a></p><h3>What’s Next: Bringing the Lights In</h3><p>At this point, the foundation is in place. Home Assistant is running reliably, ESPHome is usable, and the network setup is stable.</p><p>The next step is adding the bulbs.</p><p>That part isn’t as straightforward as it sounds. Depending on the hardware and ecosystem, bulbs can be integrated in several ways — directly through Home Assistant, via local protocols, through vendor APIs, or by flashing custom firmware.</p><p>Each approach has trade-offs in terms of reliability, latency, and how much control you actually get.</p><p>That’s a discussion on its own, and it’s what I’ll cover in the next post.</p><p>If you’re building something similar, feel free to follow along or bookmark this — I’ll update the links here as the setup evolves.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57033e878d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coding-nexus/building-a-smart-home-without-cloud-dependencies-and-selling-my-data-e57033e878d8">Building a Smart Home Without Cloud Dependencies and selling my data.</a> was originally published in <a href="https://medium.com/coding-nexus">Coding Nexus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Cost of Letting DHCP Do Whatever It Wants]]></title>
            <link>https://ukesharyal.medium.com/the-hidden-cost-of-letting-dhcp-do-whatever-it-wants-def00a4bf243?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/def00a4bf243</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[home-server]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Mon, 15 Dec 2025 17:58:21 GMT</pubDate>
            <atom:updated>2025-12-17T15:17:59.494Z</atom:updated>
            <content:encoded><![CDATA[<p>Great for laptops. Not ideal for anything acting as a server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*hNXSnoehSpVBFKqH.jpg" /><figcaption><a href="https://www.reddit.com/r/ProgrammerHumor/comments/jof9bs/ip_addresses_go_brrrrrr/">https://www.reddit.com/r/ProgrammerHumor/comments/jof9bs/ip_addresses_go_brrrrrr/</a></figcaption></figure><h3>Why You Even Need a Static IP</h3><p>If you’re running anything remotely useful at home — a <strong>Raspberry Pi server</strong>, a <strong>media server</strong>, <a href="https://www.home-assistant.io/"><strong>Home Assistant</strong></a>, or any self-hosted service — it benefits from having a stable IP address.</p><p>Without it, every reboot introduces small but annoying problems:</p><ul><li>Saved URLs stop working</li><li>Services become unreachable</li><li>Anything that depends on the server needs reconfiguration</li></ul><p>This becomes even more important once you start accessing services from <strong>outside</strong> your home network.</p><p>Port forwarding, reverse proxies, and tunnels (<a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/">Cloudflare Tunnel</a>, WireGuard, Tailscale) all rely on forwarding traffic to a specific internal address. If that address changes, things tend to break quietly.</p><p>Even if your public IP changes (which DDNS can handle), your <strong>internal IP should not</strong>.</p><p>You <em>could</em> manually assign a static IP on the Pi server itself…</p><p>or you could let the <strong>router handle address management</strong>, which is what it’s designed to do.</p><p>That’s where <strong>DHCP Reservation</strong> comes in — predictable IPs without manual device-side configuration.</p><h3>Use DHCP Reservation on Your Router</h3><p>I’m using a <a href="https://www.tp-link.com/us/home-networking/wifi-router/archer-c20/"><strong>TP-Link Archer C30</strong></a>, and like most consumer routers, it supports <strong>DHCP reservation</strong>.</p><p>Instead of hardcoding a static IP on the Raspberry Pi server (and forgetting about it six months later), I simply told the router:</p><p>“Hey.</p><p>See this MAC address?</p><p>Give it the same IP.</p><p>Every. Single. Time.”</p><p>The router understood. Immediately.</p><h3>How I Did It ?</h3><ol><li>Log into the router’s admin panel</li><li>Go to <strong>DHCP → Address Reservation</strong></li><li>Add the Raspberry Pi server’s <strong>MAC address</strong></li><li>Assign a fixed IP <br>- Preferably outside the dynamic DHCP pool</li><li>Save the configuration and reboot the Pi server once</li></ol><p>No additional configuration on the device itself.</p><h3>Because Blogs Need Pictures</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5AO4F_HqrddGioqdZJV2g.png" /><figcaption>you can get your device mac from the dchp clients list.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QtSDYxQiYmSOmqzzE1akw.png" /><figcaption>Add new ip reservation after finding out the mac of the device.</figcaption></figure><h3>The Result</h3><p>Now, regardless of reboots or power loss, the Raspberry Pi server always comes back with the <strong>same IP address</strong>.</p><p>As a result:</p><ul><li>SSH connections remain consistent</li><li>Services stay reachable</li><li>No configuration needs to be updated after restarts</li></ul><p>Let the router manage IP addresses.</p><p>That’s literally its responsibility.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=def00a4bf243" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Well well well. I’m here.]]></title>
            <link>https://ukesharyal.medium.com/well-well-well-im-here-b20b9fd2c699?source=rss-48101c90da82------2</link>
            <guid isPermaLink="false">https://medium.com/p/b20b9fd2c699</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[personal-essay]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ukesh Aryal]]></dc:creator>
            <pubDate>Sat, 13 Dec 2025 15:03:36 GMT</pubDate>
            <atom:updated>2025-12-13T15:03:36.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Wanted to write blog about the projects and the things that i am doing and did for a long period of time but my procastination won everytime.</p><p>But not today !!</p><p>So, I’m just typing whatever comes and then i’m going to post it .</p><p>For those who don’t know about me. Here’s my intro.</p><p>Hello there, I’m Ukesh Aryal who just completed engineering in Electronics, Communication and Information Engineering from Western Regional Campus [WRC]. I’ve keen intrest in electronics and sometimes i dabble myself in some literature with coffee. Yeah that’s all about me. Just a regular engineer that has intrest in electronics. AND this engineer will try to post either in blog, vlog or any other media regularly showcasing what i’m upto.</p><p>edit: regularly but not daily of course.</p><p>| Its either going to be a museum of failure or a gallery of trying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b20b9fd2c699" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>