DeepHorus is an innovative tech media and intelligence platform focused on AI, blockchain, startups, and emerging technologies.
Published on

My server is a phone now

Authors
  • avatar
    Name
    DeepHorus
    Twitter

A software developer has ditched his traditional virtual private server and replaced it with an Android smartphone, using the device to run his personal web applications and services. The move came after months of frustration with the performance and cost of a small Hetzner VPS. He now uses the CMF Phone 1, a device he already owned, as the backbone of his personal infrastructure.

The VPS originally hosted several applications, including a remote browser called Surf, Caddy, and a supporting cast of tools. However, the cheapest shared machines struggled when Chrome had heavy work, and dedicated CPU instances were too expensive for a personal project. With DRAM prices skyrocketing, buying a new computer or server felt like poor timing, prompting the developer to reconsider the smartphone sitting in a drawer.

The CMF Phone 1 turned out to be a surprisingly capable server. It packs eight ARM cores, 8 GB of RAM, 128 GB of flash storage, Wi-Fi 6, a 5G modem, and a built-in battery backup. Today it runs Surf with its managed Chrome instance, a personal finance tracker, a screen-sharing service, and multiple smaller web apps. These services survive reboots, deploy from Git, and remain reachable even when the phone changes networks.

The path to this setup was not smooth. The developer first tried flashing postmarketOS, but quickly found that Wi-Fi, Bluetooth, hardware acceleration, and the display were broken. He managed to boot to a splash screen and a black display, effectively losing both his server and his phone. Recovering the original Nothing OS required installing Windows in QEMU, wrestling with USB passthrough and MediaTek drivers, and finally using a real Windows machine to restore factory images.

After that near-bricking experience, he switched to a simpler approach: keeping stock Android and using Termux as the host environment. Termux provides OpenSSH, runit, Caddy, Cloudflared, package management, and standard Unix tooling. Termux:Boot automatically starts the supervisor and SSH after a reboot, while Tailscale gives the phone a stable private address across his tailnet.

The developer notes that Termux is not a virtual machine; its Bionic-based userspace differs from a conventional Debian installation, so existing Linux images cannot be dropped in directly. However, this split proved useful: Termux remains the small host control plane, while each application brings the Linux filesystem it expects. Runit supervises the actual services, and Android's battery management is well-suited for the phone's new role.

This experiment demonstrates that modern smartphones have ample processing power and connectivity to replace low-end servers, eliminating recurring hosting fees. The author's key lesson was that Android's existing drivers are already optimized for the hardware, making it a better foundation than a full Linux replacement. Looking ahead, he expects the phone to remain his permanent server, and the approach could inspire others with idle handsets to do the same.

Read original article β†’Source: hn-frontpage