Skip to content
HS.
← All work

Linux · Infrastructure

Personal Home Lab

Android-based Linux server

A self-hosted Linux server running on an Android phone via Termux, reachable over a private Tailscale network, and deployed with GitHub Actions and PM2. It is a small system, but every layer is real: networking, process supervision, and remote administration.

Role
Infrastructure & administration
Context
Personal project
Timeline
2026
Live telemetry from the running node. The video is loaded on demand to keep the page light.

Scope

  • Linux administration
  • Self-hosting
  • Tailscale networking
  • GitHub Actions deploys
  • PM2 supervision
  • SSH without public ports

Problem

I wanted a persistent place to run personal Node services and deployment workflows without paying for a VPS or exposing services to the public internet.

Approach

Termux provides a Linux userland on ARM Android. Tailscale creates a private mesh for SSH and service access without opening firewall ports. GitHub Actions deploys to the device, and PM2 keeps Node processes alive across restarts.

Architecture

GitHub Actions connects over SSH through Tailscale to the Android/Termux Linux environment. PM2 supervises the Node services, and Tailscale provides private addressing for administration and service access. No public inbound ports are exposed.

Device

01
  • Android hardware
  • Termux
  • ARM Linux

Network

02
  • Tailscale mesh
  • SSH
  • No public ports

Runtime

03
  • Node.js services
  • PM2
  • Log management

Delivery

04
  • GitHub Actions
  • CI/CD
  • Remote deploys
Personal Home Lab — system map, from interface to runtime.

Key decisions

  1. 01

    Termux on existing hardware instead of a VPS

    Reusing a retired phone removes recurring infrastructure cost. The tradeoff is lower peak CPU and the need to work within Android's power management.

  2. 02

    Tailscale instead of port forwarding

    Private mesh access keeps SSH and services off the public internet without maintaining firewall rules or exposing an origin address.

  3. 03

    PM2 instead of raw Node processes

    PM2 provides restart supervision and log handling, which matters on a device that may reboot or reclaim memory.

  4. 04

    GitHub Actions for repeatable deploys

    A workflow file is easier to audit and repeat than a sequence of manual SSH commands.

Challenges & solutions

  • Android throttled background processes.

    Configured wake locks and battery optimization overrides so services stayed reachable under load.

  • ARM hardware has limited headroom.

    Kept services lightweight and bounded process counts instead of treating the phone like a full server.

  • There is no public ingress.

    Used Tailscale for private SSH and service access, with no inbound ports exposed.

  • Deployments needed to be repeatable.

    Moved the deploy steps into GitHub Actions and let PM2 handle process restarts.

Outcomes

  • Self-hosted Node services running on low-power ARM hardware.
  • Private SSH and service access over Tailscale, without public ports.
  • Deployments automated through GitHub Actions and PM2.
  • Code-to-production deployment in under 45 seconds (documented in resume).

Stack

  • Linux
  • Termux
  • Tailscale
  • GitHub Actions
  • PM2
  • Node.js
  • SSH
  • CI/CD