Installing -Termux App
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:
[https://termux.com/](https://termux.com/)
```plaintext
## Step 2: Launch Termux
1. Locate the Termux icon in your app drawer and tap to open it.
2. You'll see a terminal interface. This is your gateway to the Termux OS environment.
## Step 3: Update Packages
The first thing you should do is update the package lists and upgrade any installed packages:
```bash
pkg update && pkg upgrade
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:
pkg install coreutils nano wget
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:
termux-setup-storage
This will prompt you to grant Termux permission to access your device's storage.
Step 6: Configure Your Environment
- Create a
.bashrc
file:
nano ~/.bashrc
- Add some basic configurations:
# Set color prompt
PS1='\[\e[0;32m\]\w\[\e[0m\] \[\e[0;97m\]\$\[\e[0m\] '
# Some useful aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
# Set default editor
export EDITOR=nano
- Save the file (Ctrl+X, then Y, then Enter).
- Load the new configuration:
source ~/.bashrc
Step 7: Install Additional Tools (Optional)
Depending on your needs, you might want to install additional tools:
# For Python development
pkg install python
# For version control
pkg install git
# For SSH access
pkg install openssh
# For web development
pkg install nodejs
Verifying the Installation
To verify that Termux OS is installed and working correctly:
- Check the Termux version:
termux-info
- Try running a simple Python script:
echo "print('Hello, Termux!')" > hello.py
python hello.py
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.
Please support us by disabling your ad blocker.