Phase 0: Prerequisites & Initial Setup

Phase 0: Prerequisites & Initial Setup

Install Termux

Install from F-Droid only — the Play Store version is deprecated and broken.

Also install these companion apps from F-Droid:

App Purpose

Termux

Terminal emulator

Termux:API

Android API access (clipboard, notifications)

Termux:Boot

Auto-start sshd on device boot

Initial Package Setup

On phone (Termux):

pkg update && pkg upgrade -y
# Core tools
pkg install openssh git neovim tmux curl wget rsync stow

# Password/encryption
pkg install pass gnupg age

# Development
pkg install python nodejs golang

# Network tools
pkg install nmap netcat-openbsd dnsutils

# Android integration
pkg install termux-api

Device Configuration

# Set SSH password
passwd

# Start SSH daemon (listens on port 8022)
sshd

# Grant storage permission
termux-setup-storage

# Note your Termux username (needed for SSH config)
whoami

Auto-Start sshd on Boot

Requires Termux:Boot from F-Droid. Open the app once to enable the boot receiver.

mkdir -p ~/.termux/boot
echo '#!/data/data/com.termux/files/usr/bin/bash
sshd' > ~/.termux/boot/start-sshd.sh
chmod +x ~/.termux/boot/start-sshd.sh

After reboot, sshd starts automatically without opening Termux.

Check Status

Termux installed from F-Droid

[x]

Termux:API app installed from F-Droid

[x]

Termux:Boot app installed from F-Droid

[x]

pkg update && pkg upgrade complete

[x]

Core packages installed

[x]

Password set (passwd)

[x]

sshd running

[x]

Storage access granted (termux-setup-storage)

[x]

Username noted (whoami)

[x]

Auto-start sshd configured

[x]