Back to articles
DevOps & Systems

Comprehensive Guide: Hosting Home Assistant, AdGuard DNS, and Jellyfin on Bien VPS Cu Thanh

A detailed guide to installing and configuring Home Assistant, AdGuard DNS, and Jellyfin on Bien VPS Cu Thanh to build an efficient, secure, and automated Smart Home Server.

DPTCloud Engineering4 min read
Comprehensive Guide: Hosting Home Assistant, AdGuard DNS, and Jellyfin on Bien VPS Cu Thanh

Image credit: antonbe · Pixabay Content License

Introduction to the Smart Home Server on Bien VPS Cu Thanh

Building a Smart Home Server on Bien VPS Cu Thanh allows you to control all your smart devices at home with low cost, high performance, and secure remote access. In this guide, we will deploy three core components: Home Assistant (for home automation), AdGuard DNS (for ad-blocking and security), and Jellyfin (for media streaming). All are hosted on a high-performance NVMe VPS, suitable for personal and small business needs.

Prerequisites and Environment Setup

Before starting, ensure you have:

  • A VPS located in Bien Hoa (or any NVMe VPS with at least 2GB RAM and 2 vCPU)
  • SSH access with root or sudo privileges
  • A static IP address (if required)
  • Access the VPS via CLI: ssh root@your-vps-ip

1. Install and Configure Home Assistant

Home Assistant is an open-source platform for home automation. Install it using Docker:

docker run -d \
  --name home-assistant \
  --restart=unless-stopped \
  -e TZ=Asia/Ho_Chi_Minh \
  -v /path/on/host/config:/config \
  -v /etc/localtime:/etc/localtime:ro \
  --network=host \
  homeassistant/home-assistant:stable

Replace /path/on/host/config with your local configuration directory. After starting, access http://your-vps-ip:8123 to complete setup.

2. Install AdGuard DNS

AdGuard DNS blocks ads, trackers, and malicious sites. Install it via Docker:

docker run -d \
  --name adguard \
  --restart=unless-stopped \
  -v /path/on/host/config:/opt/adguardhome/work \
  -v /path/on/host/data:/opt/adguardhome/data \
  -p 53:53/tcp -p 53:53/udp \
  -p 67:67/udp \
  -p 80:80 \
  -p 443:443 \
  -p 853:853/tcp \
  adguard/adguardhome

After starting, access http://your-vps-ip:853 to configure. Set your smart devices to use the VPS as DNS server.

3. Install Jellyfin Media Server

Jellyfin is an open-source alternative to Plex for media streaming. Install it with Docker:

docker run -d \
  --name jellyfin \
  --restart=unless-stopped \
  -v /path/on/host/config:/config \
  -v /path/on/host/media:/media \
  -v /etc/localtime:/etc/localtime:ro \
  -p 8096:8096 \
  --network=host \
  jellyfin/jellyfin

Access http://your-vps-ip:8096 to configure. Add your media folders to /media.

4. Verify and Test Functionality

Run the following commands to check service status:

docker ps -a
docker logs home-assistant
docker logs adguard
docker logs jellyfin

If all containers are running, verify access via browser:

  • Home Assistant: http://your-vps-ip:8123
  • AdGuard DNS: http://your-vps-ip:853
  • Jellyfin: http://your-vps-ip:8096

5. Optimize and Secure the Setup

Enhance security with these steps:

  • Enable firewall (UFW): sudo ufw allow 8123,8096,853
  • Set up HTTPS using Let's Encrypt (via Nginx reverse proxy)
  • Use strong passwords for Home Assistant and Jellyfin
  • Run containers with --restart=unless-stopped for automatic recovery

6. Common Troubleshooting Steps

  • Cannot access Home Assistant: Check if port 8123 is blocked; run netstat -tuln | grep 8123.
  • AdGuard DNS not blocking ads: Verify DNS settings on devices; ensure they use the VPS IP.
  • Jellyfin cannot access media folder: Check folder permissions; run ls -l /media.

References

Related infrastructure & engineering guides: NVMe Cloud VPS for Docker, Nginx & Databases

DPTCloud Tier III Infrastructure

Recommended NVMe Cloud VPS Plans to Deploy This Setup

Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.

View 22 VPS Plans
ECO · vn-02

VPS-2E

94.600 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 2 GB
  • SSD: 30 GB NVMe
ECO · vn-02Recommended

VPS-3E

170.500 ₫ / mo

10% VAT included

  • CPU: 2 vCPU
  • RAM: 4 GB
  • SSD: 50 GB NVMe
BASIC · vn-01Recommended

VPS-05

457.600 ₫ / mo

10% VAT included

  • CPU: 4 vCPU
  • RAM: 8 GB
  • SSD: 50 GB NVMe

Related Articles

View all
ZaloZalo SupportDiscord0384 753 478