What you'll have by the end
A working Linux terminal on your Android phone with package management, storage access, and SSH keys โ ready to install any language runtime or dev tool.
Time: ~10 minutes
Requirements: Android 7.0+, F-Droid (recommended)
Step 1 โ Install Termux
Skip the Play Store version โ it's outdated. Get Termux from F-Droid instead.
- โบOpen f-droid.org in your browser
- โบDownload and install the F-Droid app
- โบSearch for Termux and install it
Why F-Droid? The Google Play version of Termux hasn't been updated since 2020. The F-Droid version is actively maintained and receives regular updates.
Step 2 โ First launch
Open Termux. You'll see a bare terminal prompt. Let's get it updated.
pkg update && pkg upgrade -y
This updates all base packages. It'll take a minute โ let it run.
Step 3 โ Grant storage access
termux-setup-storage
Tap Allow when the permission dialog appears. After this, your storage is mounted at ~/storage/.
Step 4 โ Install essential tools
pkg install -y git curl wget nano openssh
What each one does:
- โบgit โ version control, cloning repos
- โบcurl / wget โ downloading files and scripts
- โบnano โ simple text editor for editing files in terminal
- โบopenssh โ SSH client for remote servers and GitHub
Step 5 โ Set up SSH keys for GitHub
ssh-keygen -t ed25519 -C "your@email.com"
cat ~/.ssh/id_ed25519.pub
Copy the output โ GitHub โ Settings โ SSH Keys โ New SSH Key โ paste it.
Test the connection:
ssh -T git@github.com
You should see: Hi username! You've successfully authenticated.
Step 6 โ Configure git
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
git config --global init.defaultBranch main
You're ready
- โบInstall Node.js โ Node.js setup guide
- โบInstall Go โ Go setup guide
- โบBrowse the Script Vault โ one-tap installs for everything
Troubleshooting
pkg update fails with network error
Try switching Termux's mirror: termux-change-repo and select a different region.
Storage permission denied after termux-setup-storage
Go to Android Settings โ Apps โ Termux โ Permissions โ Files and media โ Allow.
SSH key not working with GitHub
Make sure you copied the .pub file, not the private key. Run cat ~/.ssh/id_ed25519.pub again and re-paste.