<?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 Roshan Cyriac on Medium]]></title>
        <description><![CDATA[Stories by Roshan Cyriac on Medium]]></description>
        <link>https://medium.com/@roshancyriac.k?source=rss-623f6d25c258------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2qIq2Rj00Q6HiRMI</url>
            <title>Stories by Roshan Cyriac on Medium</title>
            <link>https://medium.com/@roshancyriac.k?source=rss-623f6d25c258------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:01:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roshancyriac.k/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[How I Turned My Old Computer into a Personal Cloud and Server]]></title>
            <link>https://medium.com/@roshancyriac.k/how-i-turned-my-old-computer-into-a-personal-cloud-and-server-6e0062cf7058?source=rss-623f6d25c258------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e0062cf7058</guid>
            <category><![CDATA[self-hosting]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[ubuntu-server]]></category>
            <category><![CDATA[nextcloud]]></category>
            <dc:creator><![CDATA[Roshan Cyriac]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 17:53:09 GMT</pubDate>
            <atom:updated>2025-02-07T17:53:09.924Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Introduction</strong></li></ol><p>Why I decided to setup my own server ?</p><p>I’ve always been passionate about photography and videography. I also love posing for photos — sometimes, I can’t help but admire myself! 🤪 But that’s when I ran into a problem: limited storage on my phone.</p><p>I considered storing my photos on my laptop, but that was already full. Buying cloud storage or an external hard drive? Too expensive! Then, I thought about using my old computer at home. But what’s the point if I can’t access my files whenever I want? I’m always on the move, and a home-bound storage solution wouldn’t be useful.</p><p>What I needed was cloud-like<strong> </strong>storage — something I could access anytime, from anywhere. But I wasn’t willing to spend money on it. (A bit of a bad habit, I know. 😜)</p><p>That’s when it hit me: Why not build my own cloud? Instead of relying on paid services, I decided to set up my own cloud storage and self host it.</p><p>Benefits of self-hosting</p><p>After diving into some research and docs, I realized there are so many benefits to setting up my own system. The main reason I decided to do this? Privacy. We’ve all heard the stories about hackers and data misuse, and as a CS student, I’m pretty clued in on the risks of handing over my personal data to third-party services. Trust in these services seems to be slipping, especially when they could be selling our info. With my setup, my data stays with me — no third parties snooping around or analyzing my files.</p><p>And let’s talk about control — because that’s a game-changer. I can’t stand forced updates or random restrictions. Here, I get to call the shots, which feels pretty awesome. It’s like being the boss of my own little world. Plus, I don’t have to worry about updates or service shutdowns from some external provider. I can host websites, store files, and run apps without anyone messing with them. The best part? I get faster access speeds and zero bandwidth throttling compared to cloud services. I can access my data anytime, anywhere, without stressing over outages from Google Drive or Dropbox. It’s like having my own personal cloud that’s always there when I need it!</p><p><strong>2. Installing Ubuntu Server</strong></p><p>When picking a Linux distro for a server, Ubuntu Server is a solid choice. It’s super popular, well-documented, and has a big community, so it’s easier to figure things out. Plus, my computer is pretty old, so it can’t handle those heavy setups. Ubuntu Server is lightweight, doesn’t have unnecessary graphical stuff (GUIs), and works great for web servers, databases, or any other server tasks. It’s also reliable, secure, and easy to set up, making it perfect for a personal cloud.</p><ul><li>Head to the <a href="https://ubuntu.com/download/server">official Ubuntu website</a> and download the latest version of Ubuntu Server. You’ll get an .iso file, which is what you&#39;ll use to install Ubuntu.</li><li>Use a tool like Rufus (on Windows) or Etcher (cross-platform) to create a bootable USB drive with the Ubuntu Server ISO you just downloaded.</li><li>Insert the bootable USB drive into your server machine and restart it. During startup, press the key (usually F12, Esc, or Del) to access the boot menu, then select your USB drive to boot from it.</li><li>Once the system boots, you’ll see the Ubuntu Server installation screen. Choose the language, keyboard layout, and then follow the on-screen instructions.</li><li>When prompted, choose the option to install Ubuntu Server. You’ll go through configuring the time zone, setting up a username and password, and partitioning your hard drive.</li><li>It’s a good idea to choose the “Install the minimal server” option if you’re just setting up a personal server.</li><li>During the installation, Ubuntu will ask about networking. You can configure your network settings here. You’ll want to set a static IP address to make sure your server always has the same IP on the local network (which is important for access and consistency).</li><li>The installation will continue, and once completed, it will prompt you to reboot. Make sure to remove the USB drive during the reboot to prevent booting from it again.</li></ul><p><strong>3. Setting Up a Static IP</strong></p><p>To set up a static IP address, follow these steps after the installation is complete:</p><ul><li>To configure a static IP, open the Netplan configuration file using:</li></ul><p>sudo nano /etc/netplan/00-installer-config.yaml</p><ul><li>Find the section that starts with eth0 (or the name of your network interface, such as enp3s0 or ens33).</li><li>Modify it to look like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*jfW4kPg8xRowRNAyYbwJ4Q.png" /></figure><p>Replace 192.168.1.100 with the static IP you want for your server and 192.168.1.1 with your router&#39;s IP address</p><ul><li>Save the file and exit (Ctrl + X, then Y to confirm changes).</li><li>Run the following command to apply the configuration</li></ul><pre>sudo netplan apply</pre><ul><li>Check if the static IP is set correctly by running:</li></ul><pre>ip a</pre><p><strong>4. Dynamic DNS Setup (DuckDNS)</strong></p><p>The problem with home internet? My public IP changes randomly unless pay for a static one. That’s where Dynamic DNS (DDNS) helps — it gives me a fixed domain name that updates automatically when my IP changes.</p><ul><li>Sign up at <a href="https://www.duckdns.org/">DuckDNS</a> and create a subdomain (myserver.duckdns.org).</li><li>Get my token from the DuckDNS website.</li><li>Install the DuckDNS update script on my server:</li></ul><pre>sudo apt update &amp;&amp; sudo apt install curl -y</pre><ul><li>Create<strong> </strong>a script to auto-update my IP:</li></ul><pre>sudo nano /etc/duckdns.sh</pre><ul><li>Add this inside (replace with my DuckDNS token and subdomain):</li><li>echo url=&quot;https://www.duckdns.org/update?domains=myserver&amp;token=MYTOKEN&amp;ip=&quot; | curl -k -o ~/duckdns.log -K -</li><li>Make the script executable:</li></ul><pre>chmod +x /etc/duckdns.sh</pre><ul><li>Set up a cron job to update every 5 minutes:</li></ul><p>crontab -e</p><p>Add this at the bottom:</p><p>*/5 * * * * /etc/duckdns.sh &gt;/dev/null 2&gt;&amp;1</p><p>Now, u can always access my server using myserver.duckdns.org instead of worrying about my changing IP!</p><p><strong>5. Setting Up Cloud</strong></p><p>When setting up my personal cloud, I came across tons of options — Nextcloud, Immich, OwnCloud, Seafile, and more. After some digging, I decided to go with Nextcloud since I needed a solution for backing up all types of files, not just photos and videos.</p><p>But if I were only looking to back up photos and videos, I’d definitely go with Immich instead. It’s faster, works more like Google Photos, and has automatic mobile uploads. That being said, Nextcloud can feel a bit slow compared to Immich, especially when handling large media libraries.</p><p>Setting Up Nextcloud:</p><p>First, I needed to install Apache, MySQL, PHP, and the required modules:</p><pre>sudo apt update &amp;&amp; sudo apt upgrade -y<br>sudo apt install apache2 mysql-server php php-mysql libapache2-mod-php php-xml php-mbstring php-zip php-gd php-curl php-intl unzip -y</pre><p>Then, I downloaded and extracted Nextcloud:</p><pre>cd /var/www<br>sudo wget https://download.nextcloud.com/server/releases/latest.zip<br>sudo unzip latest.zip<br>sudo mv nextcloud /var/www/html/</pre><p>I set the correct permissions:</p><pre>sudo chown -R www-data:www-data /var/www/html/nextcloud<br>sudo chmod -R 755 /var/www/html/nextcloud</pre><p>Finally, I restarted Apache:</p><pre>sudo systemctl restart apache2</pre><p>By default, Nextcloud stores files on the server’s local drive, but I wanted to use an external hard drive to avoid filling up my main storage.</p><p>To mount an external drive:</p><pre>sudo mkdir /mnt/nextcloud-data<br>sudo mount /dev/sdb1 /mnt/nextcloud-data</pre><p>I also updated /etc/fstab to make the mount permanent:</p><pre>echo &quot;/dev/sdb1 /mnt/nextcloud-data ext4 defaults 0 2&quot; | sudo tee -a /etc/fstab</pre><p>Then, I set Nextcloud’s data directory to use the mounted drive by modifying the config.php file:</p><pre>sudo nano /var/www/html/nextcloud/config/config.php</pre><p>And changed:</p><pre>&#39;datadirectory&#39; =&gt; &#39;/mnt/nextcloud-data&#39;,</pre><p>Now that Nextcloud is set up, you can access it by enter your server’s local IP address in a browser:</p><p>If you’re on the same network as your server, just enter your server’s local IP address in a browser:</p><pre>http://your-server-ip/nextcloud</pre><p><strong>5. Remote Access to the Server</strong></p><p>Being able to access my server remotely is a must. Whether I need to manage files, run updates, or troubleshoot issues, I don’t want to be stuck at home just to do it. Here’s how I set up secure remote access to my server.</p><p>There are two main ways to access my server remotely:<br>SSH (Secure Shell) — Best for command-line access.<br>VPN — Best for full network access like a local device.</p><p>While i did both VPN was the clear winner for remote access because, let’s be honest, I don’t want to play “guess the right port” every time I connect. With SSH, I had to worry about hackers knocking on my door, port forwarding drama, and remembering weird IP addresses. But with a VPN? Boom! It’s like having a secret tunnel straight to my home network — no exposed ports, no sketchy login attempts, just me sneaking in like a tech ninja. Plus, I can access Nextcloud, my server, and even my local network printers as if I never left home. It’s secure, fast, and flexible, and best of all, I don’t have to explain to my ISP why I’m suddenly “hosting a data center.”</p><p><strong>TUNNELING</strong></p><p>When it came to setting up a VPN, there were tons of options — Tailscale, OpenVPN, WireGuard, and more — each with its own pros and cons. But, as always, my laziness won the battle, and I went with Tailscale. Why? Because it’s stupidly simple to set up — a few commands, a quick login, and boom, my server was securely accessible from anywhere. No messing with port forwarding, firewall rules, or config files that look like ancient scripts. It just works, and for someone who loves efficiency (and hates unnecessary effort), Tailscale was the obvious choice. 😆</p><ul><li>Install Tailscale on the server:</li></ul><pre>curl -fsSL https://tailscale.com/install.sh | sh</pre><ul><li>Start Tailscale and log in:</li></ul><pre>sudo tailscale up</pre><p>Accessing My Server Remotely</p><p>Find the Tailscale IP of my server by running:</p><pre>tailscale status</pre><p>It looks something like 100.x.x.x.</p><p>Open a browser and enter:</p><pre>http://100.x.x.x</pre><p>Now, I can access my Nextcloud dashboard or any other service I’ve set up, as if I’m at home!</p><p>Setting up my own personal cloud and server was a challenging yet rewarding experience. By installing Ubuntu Server and configuring a static IP, I created a system that grants me complete control over my data and services. With Nextcloud, I now have a private cloud storage solution, allowing me to access my files, photos, and videos from any device, anywhere. Remote access was made possible through SSH, VPN (Tailscale/OpenVPN), and port forwarding, ensuring secure connectivity. Implementing SSL certificates with Let’s Encrypt and configuring firewall rules strengthened security, while automated backups provided data safety. This setup has significantly improved my workflow by offering privacy, security, and cost savings, eliminating the need for third-party cloud services. It has also been a great learning experience, deepening my understanding of Linux, networking, and server management. Looking ahead, I plan to enhance security with two-factor authentication, optimize performance, expand storage, and explore hosting additional services like a media server or personal blog. This project has been a valuable journey, and I look forward to refining and expanding it further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e0062cf7058" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>