Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home Home Automation & Smart Devices

Raspberry Pi Home Server: Media, IoT and VPN All-in-One India

Raspberry Pi Home Server: Media, IoT and VPN All-in-One India

March 11, 2026 /Posted byJayesh Jain / 0

A Raspberry Pi home server combining media, IoT hub, and VPN is the ultimate single-device solution for Indian tech enthusiasts. Running on Rs 5,000-8,000 worth of hardware and drawing only 3-5W of power, a Raspberry Pi 4 can simultaneously serve as your Home Assistant IoT hub, personal media server (Plex/Jellyfin), Pi-hole ad blocker, WireGuard VPN server, and NAS file storage. This guide covers the complete setup of an all-in-one home server optimised for Indian conditions including frequent power cuts and ISP restrictions.

Table of Contents

  • Why a Raspberry Pi Home Server for India?
  • Hardware Requirements
  • Base OS Setup
  • Media Server: Jellyfin Setup
  • Home Assistant Container
  • Pi-hole Ad Blocker
  • WireGuard VPN Server
  • Power Reliability for Indian Conditions
  • Frequently Asked Questions

Why a Raspberry Pi Home Server for India?

Running services in the cloud is convenient but has real drawbacks for Indian users:

  • Data privacy: Your IoT data, media habits, and home network traffic stay local
  • No subscription fees: Plex Premium (Rs 800/month), NordVPN (Rs 600/month), HA Cloud (Rs 500/month) — all replaced by one Pi
  • Internet outage resilience: Media server and IoT automation work without internet
  • Electricity cost: Pi 4 uses 5W vs always-on desktop (60-150W) — saves Rs 100-400/month
  • Learning: Setting up a home server teaches Linux, networking, and server administration
Recommended: Raspberry Pi Zero W — Start with a Pi Zero W for a lightweight home server running just Pi-hole and basic monitoring. Upgrade to Pi 4 when you need media streaming and Home Assistant simultaneously.

Hardware Requirements

  • Raspberry Pi 4 (4GB RAM minimum, 8GB for media + IoT + VPN)
  • 32GB+ Class A2 microSD card (OS) or better: 128GB USB 3.0 SSD
  • External HDD (2TB+) for media storage — via USB 3.0 powered hub
  • Ethernet cable for wired connection (more stable than WiFi for server use)
  • Cooling: ICE Tower cooler or at minimum a case with fan (India’s heat is significant)
  • 600VA+ UPS (keep the Pi running during power cuts)

Base OS Setup

Use Raspberry Pi OS (64-bit, Lite version — no desktop). Install with Raspberry Pi Imager:

  1. Flash Raspberry Pi OS 64-bit Lite to microSD or USB SSD
  2. Configure WiFi and SSH in the Imager settings (set hostname, enable SSH)
  3. Boot and SSH in: ssh [email protected]
  4. Update: sudo apt update && sudo apt upgrade -y
  5. Install Docker: curl -fsSL https://get.docker.com | sh && sudo usermod -aG docker pi

Using Docker for all services provides isolation, easy updates, and the ability to move your entire setup to a new Pi just by copying docker-compose.yml and data volumes.

Docker Compose for All Services

version: '3.8'
services:
  jellyfin:
    image: jellyfin/jellyfin
    ports:
      - "8096:8096"
    volumes:
      - /opt/jellyfin/config:/config
      - /mnt/media:/media
    restart: unless-stopped

  homeassistant:
    image: homeassistant/home-assistant:stable
    ports:
      - "8123:8123"
    volumes:
      - /opt/homeassistant:/config
    network_mode: host
    restart: unless-stopped

  pihole:
    image: pihole/pihole:latest
    ports:
      - "53:53/udp"
      - "80:80"
    volumes:
      - /opt/pihole/etc:/etc/pihole
      - /opt/pihole/dnsmasq:/etc/dnsmasq.d
    environment:
      TZ: Asia/Kolkata
      WEBPASSWORD: YOUR_ADMIN_PASSWORD
    restart: unless-stopped

  wireguard:
    image: linuxserver/wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    ports:
      - "51820:51820/udp"
    volumes:
      - /opt/wireguard:/config
    environment:
      SERVERURL: YOUR_DDNS_DOMAIN
      PEERS: 5 # Number of VPN clients
      TZ: Asia/Kolkata
    restart: unless-stopped

Media Server: Jellyfin Setup

Jellyfin is a free, open-source media server — the alternative to Plex that requires no account or premium subscription.

Mount External Hard Drive

# Format and mount 2TB USB drive
sudo mkfs.ext4 /dev/sda1
sudo mkdir /mnt/media
sudo mount /dev/sda1 /mnt/media
# Add to /etc/fstab for auto-mount:
UUID=your-disk-uuid /mnt/media ext4 defaults,nofail 0 2

First-Time Jellyfin Setup

  1. Access http://pi-ip:8096 from any browser on your network
  2. Create admin account
  3. Add media libraries pointing to /media/movies, /media/tv, /media/music
  4. Enable automatic metadata download (fetches movie posters, descriptions)

Remote Access for Jellyfin

Access your media server from anywhere in India (or while travelling) via your WireGuard VPN. Jellyfin also supports direct internet access with proper port forwarding — useful when VPN clients are not configured on all family devices.

Home Assistant Container

Run Home Assistant in Docker alongside Jellyfin:

# After starting the container:
# Access at http://pi-ip:8123
# Complete onboarding (set to your city in India)
# Install add-ons: HACS, File Editor, Mosquitto, Zigbee2MQTT, ESPHome

# Zigbee USB dongle passthrough to container:
# Add to homeassistant service in docker-compose.yml:
devices:
  - /dev/ttyUSB0:/dev/ttyUSB0  # Zigbee coordinator

Pi-hole Ad Blocker

Pi-hole is a DNS sinkhole that blocks ads at the network level — every device on your home network gets ad-blocking without installing browser extensions.

Configure Router to Use Pi-hole DNS

In your router settings (DHCP server configuration), set DNS server to your Pi’s IP address (e.g., 192.168.1.100). All devices on your network now use Pi-hole as their DNS resolver, blocking ads, tracking domains, and malware.

India-Specific Blocklists

Add these to Pi-hole’s blocklists for India-optimised blocking:

  • OISD Big List — comprehensive ad blocking
  • HaGeZi Multi Pro — includes Indian ad networks and trackers
  • SmartTV blocklist — blocks Jio TV, Samsung TV, and LG Smart TV tracking

WireGuard VPN Server

WireGuard is the modern, fast, and secure VPN protocol. Connecting to your home WireGuard server from anywhere lets you:

  • Access Home Assistant remotely without exposing it to the internet
  • Stream from Jellyfin while travelling
  • Use Pi-hole ad blocking on your phone even on 4G/5G networks
  • Bypass ISP throttling of certain services

Dynamic DNS for Indian ISPs

Most Indian ISPs (Airtel, ACT, Jio fiber) provide dynamic IP addresses. Use a free DDNS service:

  • DuckDNS (free, unlimited) — recommended
  • No-IP (free tier available)
  • Cloudflare DDNS (if you have a domain with Cloudflare)
# DuckDNS auto-update script (add to cron)
curl -k "https://www.duckdns.org/update?domains=YOUR_DOMAIN&token=YOUR_TOKEN&ip="

Power Reliability for Indian Conditions

UPS Sizing

The Pi 4 with USB HDD draws approximately 10-15W under load. A 600VA UPS provides 30-40 minutes of runtime — sufficient for most Indian power cuts. A 1000VA UPS provides 60-90 minutes, covering most scheduled outages.

Graceful Shutdown Script

Detect power loss (via UPS USB interface or voltage sensor) and shut down gracefully before battery depletes:

#!/bin/bash
# /usr/local/bin/power-monitor.sh
# Runs as a service, shuts down Pi when power is cut

apcaccess STATUS 2>/dev/null | grep -q "ONBATT"
if [ $? -eq 0 ]; then
  logger "UPS on battery - preparing for shutdown"
  sleep 300 # Wait 5 minutes
  apcaccess STATUS | grep -q "ONBATT"
  if [ $? -eq 0 ]; then
    logger "Still on battery - shutting down"
    sudo shutdown -h now
  fi
fi
Recommended: Waveshare 8-Channel Relay for Raspberry Pi Pico — Use a dedicated Pi Pico alongside your main Pi 4 server. If the Pi 4 crashes or reboots, the Pico continues to control critical home automation loads (main gate, emergency lights) without interruption.
Recommended: DC5-80V ESP8266 WiFi Relay Module — Distribute smart home control across multiple ESP8266 nodes throughout your home, reducing dependence on the central Raspberry Pi. Even if the Pi is down for maintenance, ESP8266 nodes continue local time-based automation independently.

Frequently Asked Questions

Can Raspberry Pi 4 handle 4K media streaming in India?

Raspberry Pi 4 can transcode Full HD (1080p) but struggles with 4K transcoding. For 4K, direct play (no transcoding, sending the raw file) works if the client device supports the codec. Most Smart TVs in India (2020+) support direct play of common 4K codecs (HEVC/H.265). Jellyfin’s direct play mode bypasses transcoding and the Pi 4 handles this easily.

How much storage do I need for an Indian family’s media?

A typical Indian family’s media collection — 100-200 Hindi and English movies (averaging 5GB each in 1080p), 5-10 TV series (2-10GB per season) — requires 1-2TB. Add regional language content and music and 4TB is a comfortable starting point. Western Digital 4TB USB drives are available in India for Rs 7,000-9,000.

Does WireGuard work with Airtel and Jio fiber connections?

Yes. WireGuard uses UDP port 51820. While some ISPs do deep packet inspection, WireGuard traffic is not commonly blocked by Indian ISPs as of 2026. Jio and Airtel fiber users report WireGuard working reliably for home VPN use. Port forwarding must be configured on your ISP router.

Is a Raspberry Pi 4 enough for all these services simultaneously?

With 4GB RAM: Yes, for typical home use. Pi-hole and WireGuard use minimal resources. Home Assistant uses 500MB-1GB RAM. Jellyfin uses 200MB at rest (more during active streaming/transcoding). Total at rest: 1-2GB RAM used, leaving headroom. The 8GB model is recommended for comfort and future expansion.

Shop Home Automation at Zbotic –

Tags: home assistant docker, Jellyfin India, pi-hole, raspberry pi home server, raspberry pi media server, WireGuard VPN
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
AI Tinyml with Person Detectio...
blog ai tinyml with person detection on esp32 cam offline 599003
blog solar inverter buying guide string vs micro vs hybrid india 599011
Solar Inverter Buying Guide: S...

Related posts

Svg%3E
Read more

MQTT for Home Automation: ESP32 + Mosquitto + Home Assistant

April 1, 2026 0
MQTT is the backbone protocol of professional home automation systems. If you are building a smart home with multiple ESP32... Continue reading
Svg%3E
Read more

Curtain and Blind Automation: Stepper Motor Controller

April 1, 2026 0
Curtain automation is one of the most satisfying smart home upgrades you can build. Imagine your curtains opening automatically at... Continue reading
Svg%3E
Read more

Smart Doorbell with Camera: ESP32-CAM Video Intercom

April 1, 2026 0
A smart doorbell with a camera lets you see who is at your door from your phone, even when you... Continue reading
Svg%3E
Read more

Blynk IoT Platform: Control Arduino and ESP32 from Mobile

April 1, 2026 0
The Blynk IoT platform is the fastest way to control your Arduino and ESP32 projects from your mobile phone. Instead... Continue reading
Svg%3E
Read more

PIR Sensor Automatic Light: Save Electricity with Motion Detection

April 1, 2026 0
PIR sensor automatic lights are the simplest and most effective way to save electricity in Indian homes. By automatically turning... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now