Installing
This guide will walk you through the process of installing Termux OS on your Android device and setting up your initial environment.
Prerequisites
- An Android device running Android 7.0 (Nougat) or higher
- Sufficient storage space (at least 1GB recommended)
- A stable internet connection
Step 1: Install Termux
- Open the Google Play Store or F-Droid on your Android device.
- Search for "Termux" and select the official Termux app.
- Tap "Install" and wait for the installation to complete.
Alternatively, you can download the APK from the official Termux website:
This command might take a while, depending on your internet speed and the number of packages that need updating.
Step 4: Install Essential Packages
Install some essential packages to get started:
This installs:
coreutils
: Basic file, shell and text manipulation utilitiesnano
: A simple text editorwget
: A utility for retrieving files using HTTP, HTTPS, and FTP protocols
Step 5: Set Up Storage Access
To access your device's storage, run:
This will prompt you to grant Termux permission to access your device's storage.
Step 6: Configure Your Environment
- Create a
.bashrc
file:
- Add some basic configurations:
- Save the file (Ctrl+X, then Y, then Enter).
- Load the new configuration:
Step 7: Install Additional Tools (Optional)
Depending on your needs, you might want to install additional tools:
Verifying the Installation
To verify that Termux OS is installed and working correctly:
- Check the Termux version:
- Try running a simple Python script:
You should see "Hello, Termux!" printed to the console.
Next Steps
Congratulations! You've successfully installed and set up Termux OS on your Android device. In the next section, we'll cover basic usage and essential commands to help you get started with your new mobile Linux environment.