If it breaks
Play Store Termux? Uninstall it. Install Termux and Termux:API from F-Droid only. Same store for both.
Command not found? The package is not installed, or the name is wrong. Check spelling. Then pkg install that tool.
You are here: The Path · Stage 2
Stage 2
Termux gives your phone a terminal. That is a place where you type commands instead of tapping icons. It looks old. Programmers talk to the computer this way. Termux:API is the helper that lets that little computer use battery, clipboard, and other phone features.
This page is the install walk for both pieces. The library pages Termux and Termux:API wait if a name goes fuzzy later.
Search and install Termux and Termux:API. Open Termux:API one time. Grant clipboard permission at least. Camera and location can wait.
You need two pieces later for the helper to work: the Termux:API app, and the termux-api package inside Termux. They work as a pair.
Open Termux. After each line, tap Enter. Wait until it finishes before the next one.
Stage 3 is a few filing-cabinet commands and hello.py.
Play Store Termux? Uninstall it. Install Termux and Termux:API from F-Droid only. Same store for both.
Command not found? The package is not installed, or the name is wrong. Check spelling. Then pkg install that tool.
Later you may install vim, nodejs, openjdk-17, clang, and make. Start with nano. Vim is another editor. Beginners usually find it confusing.
A few filing-cabinet commands, then a three-line file that talks back.