Getting Startedยทbeginnerยท2 min read

Getting Started with Termux on Android

Set up a full Linux development environment on your Android phone in under 10 minutes. No root required.

#termux#android#setup#linux#beginner
Published March 14, 2026

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.

  1. โ€บOpen f-droid.org in your browser
  2. โ€บDownload and install the F-Droid app
  3. โ€บ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.

bash
pkg update && pkg upgrade -y

This updates all base packages. It'll take a minute โ€” let it run.


Step 3 โ€” Grant storage access

bash
termux-setup-storage

Tap Allow when the permission dialog appears. After this, your storage is mounted at ~/storage/.


Step 4 โ€” Install essential tools

bash
pkg install -y git curl wget nano openssh

What each one does:


Step 5 โ€” Set up SSH keys for GitHub

bash
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:

bash
ssh -T git@github.com

You should see: Hi username! You've successfully authenticated.


Step 6 โ€” Configure git

bash
git config --global user.name "Your Name"
git config --global user.email "your@email.com"
git config --global init.defaultBranch main

You're ready


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.

โ† All guidesBrowse Script Vault โ†’