Welcome to the Termux Setup Script, a professional and user-friendly Bash script designed to optimize your Termux environment! This script installs essential packages, configures your terminal, tests internet speed, displays system information, and much more!
-
🔧 Comprehensive Package Installation:
Installs over 50 essential packages, including:- Development Tools:
git
,python3
,clang
,cmake
- Networking Tools:
nmap
,tcpdump
,sshpass
- Penetration Testing Tools:
hydra
,sqlmap
,metasploit-framework
,aircrack-ng
- Utilities:
vim
,nano
,htop
,neofetch
,yt-dlp
,bat
,exa
- Development Tools:
-
📡 Internet Speed Test:
Usesspeedtest-cli
to measure your current network speed and log the results. -
🖥️ System Information:
Displays detailed system info withneofetch
orscreenfetch
. -
🌀 ZSH Shell Configuration:
Configures ZSH as the default shell for a modern terminal experience. -
🗑️ Storage Optimization:
Cleans up unnecessary files to free up space. -
📜 Logging:
All actions and results are logged in a file (termux_setup.log
) for troubleshooting and record-keeping. -
📋 Interactive Menu:
Select specific actions like updates only, package installation, or full setup for convenience.
setup.sh
: Main script file.termux_setup.log
: Log file generated after script execution.
-
Check & Install Packages:
- The script checks if each package is already installed.
- Installs only missing packages, skipping those already present.
-
Update & Upgrade:
- Ensures your Termux environment is up-to-date.
-
Run Advanced Features:
- Tests internet speed with
speedtest-cli
. - Displays system info using
neofetch
orscreenfetch
. - Configures ZSH shell for improved functionality.
- Tests internet speed with
-
Optimize Storage:
- Removes unnecessary files and caches to reclaim space.
-
Clone this repository:
git clone https://github.com/rkstudio585/T-Setup cd T-Setup
-
Make the script executable:
chmod +x tsetup.sh
-
Run the script:
./tsetup.sh
or
bash tsetup.sh
- Full Setup: Runs all features (package installation, updates, optimizations).
- Update Only: Updates and upgrades Termux packages.
- Install Packages Only: Installs the required packages without running other features.
- Check Internet Speed: Tests and displays current internet speed.
- Show System Info: Displays detailed system information.
- Termux environment.
- Internet connection for downloading packages.
Here’s a brief overview of the packages installed:
Category | Packages |
---|---|
Development Tools | git , vim , nano , clang , cmake , python3 |
Networking Tools | nmap , tcpdump , sshpass , dnsutils , speedtest-cli |
Utilities | htop , neofetch , ranger , bat , exa , yt-dlp , zip , unzip |
Pentesting Tools | hydra , sqlmap , john , aircrack-ng , metasploit-framework , nikto |
Easily select your desired action!
1) Full Setup
2) Update Only
3) Install Packages Only
4) Check Internet Speed
5) Show System Info
6) Exit
Displays your network speed in real-time:
Testing Internet Speed...
Download: 50.23 Mbps
Upload: 12.45 Mbps
All script actions are logged in termux_setup.log
for easy review. Example log:
Script started at: YYYY-MM-DD HH:MM:SS
Updating and upgrading Termux...
Installed package: git
Installed package: vim
Package already installed: python3
Testing Internet Speed...
Download: 45 Mbps | Upload: 10 Mbps
The script skips reinstallation and informs you with a message like:
Package xyz is already installed.
The error is logged in termux_setup.log
. You can review it to troubleshoot.
Yes! Use the interactive menu to select only the features you need.
- Always run
pkg update
before executing the script for better results. - Use
zsh
with plugins likeoh-my-zsh
for a modern terminal experience.