This repository provides a script to set up a development environment in the Termux app for Android. It updates and upgrades packages and installs various useful tools and dependencies.
- What is Termux
- Why Termux
- What Can You Do With This
- Requirements
- Quick Setup
- Manual Setup
- Remote Access
- Contributing
- License
Termux is an Android terminal emulator and Linux environment application that works directly with no rooting or setup required. A minimal base system is installed automatically, additional packages are available using the package manager.
Termux provides:
- Portability: Termux allows you to carry a powerful and customizable Linux environment wherever you go. You can use your Android device as a portable development platform without the need for a separate computer.
- Command Line Interface: Termux provides a full-fledged command line interface, giving you access to a wide range of command-line tools, utilities, and programming languages. This allows you to perform tasks and run scripts efficiently, similar to working on a traditional Linux system.
- Educational and Learning Tool: Termux serves as an excellent educational resource for learning about Linux, command line tools, and programming. It allows beginners to get hands-on experience with a Linux environment and helps advanced users explore new possibilities and experiment with different technologies.
I learned basic Go programming in Termux.
Whether you are a beginner learning to code or an experienced developer, Termux offers a flexible and convenient platform to explore, experiment, and write code on your Android device.
By running the setup script in this repository, you can set up the following development environment in Termux:
- Python
- Clang
- Node.js
- Rust
- Golang
- Ruby
- SQLite
- Perl
- Java
- An Android device with the Termux app installed. You can download Termux from the Google Play Store or F-Droid. F-Droid version is recommended
- Internet connectivity to download packages and dependencies during the setup process.
To quickly set up the development environment, just copy and paste it to your Termux app:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/jothi-prasath/termux-dev-setup/master/setup.sh)"
This command downloads the setup.sh script from this repository and executes it using bash.
- Open Termux and install curl
pkg install git
- Run the following command to clone this repository:
git clone https://github.com/jothi-prasath/termux-dev-setup.git
- Navigate to the cloned repository:
cd termux-dev-setup
- Make the setup script executable:
chmod +x setup.sh
- Run the setup script to set up the development environment:
./setup.sh
The script will update and upgrade packages, clean up unnecessary files, and install the required packages and dependencies.
- After the script completes, you will have a fully set up development environment in Termux. You can now start using the installed tools and packages for your development tasks.
If you want to remotely access your Termux environment from a Desktop/Laptop, you can follow these steps:
-
Make sure your Termux app is running and your Android device is connected to the same network.
-
Set a password for the SSH server by running the following command in Termux:
passwd
- Note down the IP address of your Android device. You can find it by running the following command.
ifconfig
- Note down the Username of your Android device. You can find it by running the following command.
whoami
- On your Desktop, open terminal or command prompt.
- Replace
termux-ip
with the IP address andtermux-username
with the Username:
ssh termux-username@termux-ip -p 8022
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request.
This repository is licensed under the MIT License. You are free to modify, distribute, and use the scripts in this repository in accordance with the terms of the license.