Turn an Old Laptop into a Home Cloud Server with Debian and Baota
This guide walks through converting a spare ASUS laptop into a home‑hosted cloud server by installing Debian 10, configuring the Baota control panel, setting up router NAT and static IP, automating DDNS with an open‑source script, and measuring power and bandwidth results.
Prerequisites
Old ASUS laptop (Pentium dual‑core CPU, 4 GB RAM, 360 GB HDD) – sufficient for a personal server.
Broadband connection that provides a public IP.
Own domain name (can be purchased from any cloud provider).
Modem that supports bridge mode and a router that supports NAT and static IP binding.
Installing Debian 10 (64‑bit)
The laptop runs Linux; the chosen distribution is Debian 10 64‑bit. A small net‑install ISO is recommended; after downloading from www.debian.org/distrib use the online mirror to speed up installation. Install a GUI initially to avoid missing packages (network, fonts, etc.), then remove it later to save resources and power. Also set the laptop lid to never suspend and change the CPU scheduler to a conservative mode.
Setting up Baota Panel
Instead of manually installing web services, the Baota (BT) panel provides one‑click deployment of common components (web server, database, FTP, etc.). Installation is a single script available at https://www.bt.cn/download/linux.html. After installation, Baota can manage performance monitoring, scheduled tasks, and logs, simplifying server administration.
Configuring Router NAT and Static IP
The ISP‑provided public IP is dynamic, so the router is set to bridge mode and handles PPPoE dialing. The router’s firewall stays enabled; NAT port forwarding maps external ports (e.g., 22) to the server’s internal ports. The server receives a static LAN IP to keep NAT rules stable.
Automating DDNS with aliyun_ddns
Because the public IP changes, a DDNS service is required. Instead of router‑built‑in services (often limited or paid), the guide uses the open‑source aliyun_ddns project on GitHub ( github.com/limoxi/aliyun_ddns) which updates an Alibaba Cloud DNS record via API. After editing the configuration with your AccessKey and domain, run the Python script to fetch the current public IP and update the DNS record.
Project address: https://github.com/limoxi/aliyun_ddns
The script can be scheduled in Baota to run every 10 minutes, matching Alibaba Cloud’s DNS cache refresh interval.
Results and Power Consumption
After deployment, the server consumes about 25 W, resulting in roughly 18 kWh per month (24 h × 30 days). Measured bandwidth reaches 250 Mbit down and 37 Mbit up, offering higher performance at lower cost compared to commercial cloud providers.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Liangxu Linux
Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
