# Simple HTTP server on port 8000 python -m http.server 8000
If you are new to Linux, navigating Termux requires learning a few fundamental commands. Termux uses a shell environment (usually Bash by default), which mirrors standard Linux distributions.
You can install many others, including Kali Linux , Arch Linux , Debian , and Fedora by replacing "ubuntu" with the distro name in the commands above.
Test: python --version
Termux is a free, open-source terminal emulator and Linux environment app for Android. It requires no rooting and setup takes less than five minutes. It brings a powerful development environment straight to your pocket. 1. Introduction to Termux
Once installed, open Termux. You will see a command prompt. Before using it, you must update the repository and packages to ensure compatibility. Run the following commands: pkg update pkg upgrade -y Use code with caution.
Termux is a bridge between the convenience of mobile and the power of Linux. Whether you are a programmer wanting to code on the go, a network administrator needing to troubleshoot a server via SSH, or a student learning Linux commands, Termux is the ultimate tool. termux complete tutorial
Long-press the Volume Up button and press K to toggle the persistent row of special keys ( Ctrl , Alt , Tab , Esc , / , - ). 3. Mastering the Termux Package Manager ( pkg )
| Problem | Solution | |---|---| | | You likely installed from Google Play Store. Uninstall and install from F-Droid or GitHub instead | | Package downloads are very slow | Run termux-change-repo and select a mirror closer to your location | | Storage permission not working | Run termux-setup-storage again and verify permissions in Android Settings > Apps > Termux > Permissions | | sshd won’t start or connection refused | Make sure you’ve set a password ( passwd ) and that you’re connecting to port 8022. Also check that Termux has “Appear on top” permission in Android Settings | | Termux crashes after customization | Run git pull and re-run the customization script to update conflicting files | | Can’t install add-ons | All Termux apps and add-ons must be installed from the same source (all F-Droid or all GitHub—never mix sources), as they need to share the same signing key | | “Unsafe app” warning from Google Play Protect | This is a false positive. If you downloaded from the official F-Droid or GitHub repository, the app is safe to ignore the warning and install | | Command not found for basic tools | Install the required package: pkg install [package-name] |
Termux fully supports external keyboards. Pair a Bluetooth keyboard, disable the on-screen keyboard in Termux preferences, and use real Ctrl , Alt , and arrow keys. # Simple HTTP server on port 8000 python -m http
Just like any Linux distribution, we start by updating the package lists and upgrading existing packages. Type the following:
To link your device's internal storage to Termux, execute this command: termux-setup-storage Use code with caution.
proot-distro install kali
What you want to run?
(e.g., Ubuntu)