Blog / Tutorials

How to Set Up a Home Server on a Budget in Nepal

, 9 min read

A self-built home server and its UPS placed in a shelf in the attic. A toner package and a Linksys EA6350 v3 OpenWrt router can also be seen. The server is…
Photo: Tomskyhaha, CC BY-SA 4.0 via Wikimedia Commons

A [home server](/blog/what-is-linux-teen-developer-guide) is a computer that runs 24/7 in your house, serving files, hosting websites, running applications, or automating tasks. It is one of the best learning tools a teen developer can have because it forces you to learn Linux, networking, security, and system administration — skills that are directly applicable to cloud computing careers.

In Nepal, where cloud services cost dollars and internet speeds are improving, a home server is a practical and affordable way to host your own infrastructure.

Hardware Options

Option 1: Old laptop or desktop. If you have an old computer collecting dust, it is probably powerful enough to be a server. Wipe it, install Linux, and you are running. Cost: free if you already have it.

Option 2: Raspberry Pi 4 or 5. The Pi 4 with 4GB RAM costs around 8,000-12,000 NPR. It uses very little electricity (about 3-5 watts), runs silently, and is powerful enough for many server tasks. The Pi 5 is more powerful but costs more.

Option 3: Mini PC. Devices like the Beelink Mini S or similar mini PCs are available on Daraz for 15,000-30,000 NPR. They are more powerful than a Pi and still energy-efficient.

Operating System

Install Ubuntu Server or Debian. Both are free, well-documented, and have massive communities. Ubuntu Server is slightly easier for beginners because of its larger community and more frequent updates.

For a Raspberry Pi, use Raspberry Pi OS Lite (no desktop environment) or Ubuntu Server for ARM. Download the image, flash it to an SD card, and boot.

Initial Setup

Connect your server to your router via Ethernet cable (not WiFi — servers need stable connections). Find its IP address from your router admin page. SSH into it from another computer: ssh username@192.168.1.x.

First steps after login: Update everything with sudo apt update and sudo apt upgrade. Set a strong password. Configure SSH key authentication and disable password login for security. Set up a firewall using ufw — allow only the ports you need.

What to Run on It

Pi-hole: Network-wide ad blocking. Configure it as your network DNS and every device on your WiFi gets ad-free browsing. Setup takes about 10 minutes.

Nextcloud: Your own cloud storage. Upload files, sync between devices, share with others. It is like Google Drive but you own the data.

Gitea: A lightweight self-hosted Git server. If you want private repositories without paying for GitHub Pro, Gitea is an excellent alternative.

Nginx or Caddy: A web server to host your personal projects. Combined with a free domain from gen.xyz and a dynamic DNS service, you can make your projects accessible from the internet.

Portainer: A web-based Docker management tool. Run and manage Docker containers through a visual interface.

Networking Challenges in Nepal

Most ISPs in Nepal give you a dynamic IP address that changes periodically. This means you cannot point a domain directly to your home IP. Use a dynamic DNS service like DuckDNS (free) to get a domain that always points to your current IP.

Port forwarding: To make services accessible from outside your home network, you need to forward ports on your router. Log into your router admin page (usually 192.168.1.1) and add port forwarding rules for the services you want to expose.

Power cuts: Nepal still experiences load shedding in some areas. If your server runs on a laptop, the built-in battery provides some protection. For a Pi or mini PC, a small UPS (uninterruptible power supply) keeps it running during short outages.

Security Is Critical

A server connected to the internet is a target. Keep your software updated. Use SSH keys instead of passwords. Run a firewall and only open ports you need. Do not run services as root. Monitor your logs for suspicious activity.

If you are running services exposed to the internet, use HTTPS. Caddy makes this easy — it automatically obtains and renews SSL certificates from Let us Encrypt.

Learning Outcomes

Running a home server teaches you the same skills used in professional DevOps and system administration. Linux command line, service management, networking, security hardening, backup strategies, Docker — all of these are in-demand skills.

By the time you apply for your first tech job, you will have practical experience that most applicants lack. "I run a home server that hosts my projects, blocks ads for my family, and provides private cloud storage" is a powerful statement in any interview.