From 012b7c15e5190c3aafdb2d930b81a4bfc735eb74 Mon Sep 17 00:00:00 2001 From: leetcrypt Date: Tue, 7 Jul 2026 22:40:06 -0700 Subject: [PATCH] docs(mobile): point quickstart setup at termux-bootstrap.sh Co-Authored-By: Claude Opus 4.6 --- docs/mobile-quickstart.md | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/docs/mobile-quickstart.md b/docs/mobile-quickstart.md index 3dea1cd..888f603 100644 --- a/docs/mobile-quickstart.md +++ b/docs/mobile-quickstart.md @@ -25,15 +25,8 @@ Two devices are in play: ## 1. One-time on-device setup -```bash -# in Termux, on the phone -pkg install python tmux git python-cryptography # cryptography avoids a rust build -pip install requests rich websockets # skip `srp` — the pure shim covers it -termux-wake-lock # keep Termux/sshd alive when backgrounded -``` - -Sync the repo onto the phone (tar-over-ssh from the laptop — no gitea clone -needed if the branch is unpushed): +**Step 1 — sync the tree** onto the phone (tar-over-ssh from the laptop; no gitea +clone needed if the branch is unpushed): ```bash # from the laptop, in this repo @@ -41,12 +34,22 @@ tar czf - cmd_chat scripts requirements-operator.txt \ | ssh -i ~/.ssh/phone-deploy -p 8022 u0_a203@100.95.202.68 'mkdir -p ~/hh-mobile && tar xzf - -C ~/hh-mobile' ``` -Add the launcher alias to `~/.bashrc` on the phone: +**Step 2 — run the bootstrap** in Termux on the phone. It installs deps +(`python-cryptography` to dodge a rust build; pure/wheeled pip deps; **no** `srp` +C-ext — the shim covers it), holds a wake-lock, installs the `hh` alias, and runs +the Phase-0 preflight. Idempotent — safe to re-run. ```bash -alias hh='bash "$HOME/hh-mobile/scripts/hh"' +# in Termux, on the phone +bash ~/hh-mobile/scripts/termux-bootstrap.sh +source ~/.bashrc # activate the 'hh' alias ``` +Expect the preflight to end `RESULT: PASS`. (Manual equivalent, if you'd rather: +`pkg install python tmux git python-cryptography openssh` · `pip install requests +rich websockets` · `termux-wake-lock` · add `alias hh='bash +"$HOME/hh-mobile/scripts/hh"'` to `~/.bashrc`.) + --- ## 2. The `hh` launcher