<?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 Mohammad Saad Shaikh on Medium]]></title>
        <description><![CDATA[Stories by Mohammad Saad Shaikh on Medium]]></description>
        <link>https://medium.com/@07saad.exe?source=rss-9fd505df31fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*POdsRYkqeK9bXiKk5fVv_Q.png</url>
            <title>Stories by Mohammad Saad Shaikh on Medium</title>
            <link>https://medium.com/@07saad.exe?source=rss-9fd505df31fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 16:47:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@07saad.exe/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[From a Simple Website to a Managed Linux Server: My Khalid Cafe Journey]]></title>
            <link>https://medium.com/@07saad.exe/from-a-simple-website-to-a-managed-linux-server-my-khalid-cafe-journey-725968cdb051?source=rss-9fd505df31fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/725968cdb051</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <dc:creator><![CDATA[Mohammad Saad Shaikh]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 15:28:15 GMT</pubDate>
            <atom:updated>2026-11-19T15:52:38.190Z</atom:updated>
            <content:encoded><![CDATA[<h4>What building and hosting a small web project taught me about Ubuntu, Nginx, server hardening, and Bash automation.</h4><p>Most web projects start in the browser, and for a long time, that is where my focus stayed too. When I started working on <strong>Khalid Cafe</strong>, the initial goal was simple: build a clean website and get it up and running.</p><p>Once the frontend was ready, though, my curiosity shifted toward the layer underneath it. I wanted to know what actually happens between a user typing an address and a server responding to that request. How are ports and traffic routed? How do you lock down a machine so unauthorized users stay out? And if a file gets corrupted tomorrow, how quickly can you bring everything back?</p><p>Answering those questions turned a basic web project into a deep dive into Linux server administration.</p><h4>Stepping Out of the GUI and Into Ubuntu</h4><p>To keep things realistic without risking a live production box right away, I set up an Ubuntu environment inside VirtualBox on my Windows machine. I made a deliberate rule for myself early on: avoid graphical interfaces whenever possible and spend time directly in the shell.</p><p>Working strictly through the terminal forces you to understand how the operating system structures itself. Most of my early hours went into getting comfortable with:</p><ul><li>Creating and isolating Linux users and groups rather than running everything as root.</li><li>Reading and modifying file ownership and <strong>chmod</strong> permissions so services only access what they actually need.</li><li>Inspecting active processes, tracking system logs, and managing background daemons with <strong>systemd</strong>.</li><li>Monitoring memory overhead, CPU load, and disk allocation across directories.</li></ul><p>Once you start managing permissions and processes manually, it becomes obvious that keeping a server healthy requires far more discipline than simply starting a local dev server.</p><h4>Routing Traffic Through Nginx</h4><p>With the underlying environment ready, the next step was figuring out how external traffic reaches an application cleanly. That led me to <strong>Nginx</strong>.</p><p>Instead of exposing an application port directly, I configured <strong>Nginx</strong> to sit in front as a reverse proxy — accepting incoming HTTP requests and forwarding them internally to the application running on a local port. Writing and testing those server blocks firsthand clarified how web servers decouple public-facing traffic from backend services, and how a single configuration typo can bring routing to a halt.</p><h4>Hardening the Environment</h4><p>Getting a service online is only half the work; keeping it protected is the other half. Before calling the setup stable, I spent time researching standard baseline security practices for Linux servers and implementing them step by step:</p><ul><li>Replacing password-based logins with <strong>SSH key-pair authentication</strong> to eliminate brute-force password guessing.</li><li>Configuring <strong>UFW (Uncomplicated Firewall)</strong> to deny all incoming traffic by default and explicitly allow only required ports.</li><li>Auditing directory permissions so configuration files were not overly exposed.</li><li>Installing and tuning <strong>Fail2ban</strong> to monitor authentication logs and automatically ban IP addresses showing repeated failed SSH login attempts.</li></ul><p>Working through these layers made one principle very clear: security cannot be bolted on after deployment. Access rules and firewall policies have to be part of the initial architecture.</p><h4>Automating Diagnostics and Backup Recovery</h4><p>As the configuration grew, manually checking disk space, service statuses, and backups quickly became repetitive. To solve that, I began writing custom <strong>Bash scripts</strong> to automate routine maintenance.</p><p>I put together a lightweight health-check script to inspect critical server metrics alongside an automated backup workflow. Building the backup pipeline turned out to be one of the most insightful parts of the entire project. It involved:</p><ul><li>Packaging application files and configurations into compressed archives.</li><li>Generating checksums and comparing backup copies to verify file integrity.</li><li>Running full test restorations into a clean directory to confirm the archives actually worked.</li></ul><p>That last step taught me an essential operational rule:</p><blockquote><strong>A backup file is useless until you have proven you can restore from it.</strong></blockquote><p>Untested backups only give a false sense of security.</p><h4>Key Takeaways From Building Under the Hood</h4><p>Looking back, taking Khalid Cafe from a static concept to a managed server environment reshaped how I approach software development:</p><ul><li><strong>Operating system fundamentals matter.</strong> Understanding users, file descriptors, and processes makes every higher-level tool easier to debug.</li><li><strong>Networking is the backbone of troubleshooting.</strong> Knowing how ports, proxies, and firewalls interact saves hours of guesswork when a service stops responding.</li><li><strong>Security starts at setup.</strong> SSH keys, strict firewalls, and intrusion prevention should be configured before anything goes live.</li><li><strong>Automation prevents human error.</strong> A well-tested Bash script will execute routine checks and backups far more reliably than memory ever will.</li><li><strong>Recovery is the real metric.</strong> Backup workflows are only complete once restoration has been tested end to end.</li></ul><h4>Where I Go From Here</h4><p>I am still early in my journey, and there is plenty left to break and rebuild. Next, I am digging deeper into containerizing these setups with <strong>Docker</strong>, exploring cloud networking, and studying how automated <strong>CI/CD </strong>pipelines move code from a local repository onto a managed server.</p><p>For me, the real satisfaction in engineering comes from refusing to treat infrastructure like a black box — and taking the time to understand every layer that keeps a system running.</p><p><strong>Build. Break. Troubleshoot. Learn. Repeat.</strong></p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p><em>Written by Mohammad Saad Shaikh— Second-year Computer Engineering student exploring Linux, Cloud Infrastructure, and Automation. Always open to discussing systems, side projects, or ideas at </em><a href="/service/mailto:07saad.exe@gmail.com"><strong><em>07saad.exe@gmail.com</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=725968cdb051" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>