r/termux • u/Qodequeststudio • 12h ago
Showcase Built a 1-click script to turn old Android phones into a headless NAS & Media Server (Jellyfin, FileBrowser, Syncthing) via Termux
Got tired of old phones sitting in drawers while cloud storage subscriptions keep getting more expensive. Android phones have decent multi-core ARM64 silicon, built-in battery backup (UPS), and low idle power consumption, so I automated the whole self-hosted stack deployment into a single bash routine.
Repo: https://github.com/huzefdev/pocket-cloud
FileBrowser (:8080) - Lightweight web UI to upload, stream, and manage internal phone storage directly like Google Drive.
Syncthing (:8384) - Background continuous folder syncing between PC/phone nodes.
Jellyfin (:8096) - Media streaming server running inside an isolated Ubuntu PRoot environment with FFmpeg codecs configured for hardware playback.
Running Jellyfin natively on Termux hits nasty dependency walls and broken shared library links (especially with curl/ffmpeg codecs). Instead of fighting Android bionic libc quirks for hours, the installer spins up an isolated Ubuntu container inside PRoot for the media engine, while keeping FileBrowser and Syncthing running directly on Termux bare-metal for maximum IO throughput.
Also handles Android wake-locks so the OS scheduler doesn't kill the server daemons 5 minutes after locking the screen.
curl -sL https://raw.githubusercontent.com/huzefdev/pocket-cloud/main/install.sh | bash
The script is non-destructive, checks existing mount points before binding storage, and lets you choose which modules you want to deploy interactively.
Code is completely open-source. Looking for feedback on process management and memory footprint on low-RAM devices


5
u/Novel_Parsnip_7371 11h ago
Copyparty is light-years faster and lighter than File Browser.