
Keep your laptop in your bag! With Termux, your phone becomes a powerful Linux environment for coding, scripting, and automation on the go.
I used to think I needed to carry a laptop everywhere just to get real work done—until I discovered Termux. What started as a curiosity quickly became a game-changer. One moment I was stuck waiting in a coffee shop with just my phone; the next, I was spinning up a Python script, managing Git repos, and SSH-ing into a VPS—all from my pocket.
If you’ve ever felt boxed in by Android’s limitations, Termux will change the way you see mobile computing. Whether you’re a dev, hacker, or just someone who loves pushing tech to the edge, this guide is your launchpad.
Explore the guides below and unlock what your Android phone is truly capable of.
Table of Contents



What is Termux?
Termux is a terminal emulator for Android that provides a Linux environment with a command-line interface. Unlike traditional terminal emulators, Termux doesn’t require rooting your device or any special modifications. It allows you to run a variety of Linux packages, access a full-featured shell, and perform advanced operations directly on your Android device.
· · ─ ·𖥸· ─ · ·
Why Termux?
Android devices have become incredibly versatile, offering a wide range of applications and functionalities. One of the most exciting advancements for tech enthusiasts and developers is the ability to run a full-fledged Linux on Android environment. Enter Termux—a powerful, open-source terminal emulator that brings the functionality of Linux right to your Android device.
· · ─ ·𖥸· ─ · ·
Getting Started with Termux
In this chapter, you’ll embark on your Termux journey with a comprehensive guide to installation and initial setup. Learn how to install Termux on your Android device with clear, step-by-step instructions. As a beginner, you’ll discover what to expect when you first launch Termux and get acquainted with essential Linux commands tailored for Termux. We’ll explore the Termux package manager, providing insights on how to efficiently manage packages. Additionally, you’ll gain a foundational understanding of Termux’s file system structure, empowering you to navigate and manage files with confidence.
· · ─ ·𖥸· ─ · ·
Customizing Your Termux Environment
Dive into personalizing your Termux setup with this chapter. Begin by configuring your .bashrc
or .zshrc
files to create a tailored environment that suits your needs. Master Termux package management with a detailed guide on finding, installing, and updating packages, including recommendations for development tools, system monitoring, and more. Enhance the visual appeal of Termux by exploring themes and fonts, and stay updated with the latest methods for installing Termux-Styling in 2024. Learn to use termux-style
and other tools to customize Termux’s appearance, making it both functional and visually engaging.
· · ─ ·𖥸· ─ · ·
Automating Tasks with Termux
Explore the power of automation with Termux in this chapter. Start with an introduction to automation possibilities, showcasing what tasks can be streamlined using Termux. Follow detailed guides on installing and using Tesseract OCR, and learn how to set up and manage cron jobs for scheduling tasks like backups and updates. Discover how to write and run custom shell scripts within Termux to automate your workflows. Stay informed with alternatives for sending SMS in Termux after recent Google security updates. Additionally, find practical examples of automation scripts, including installing Python, syncing directories with rsync
, and using text-to-speech with eSpeak
. This chapter equips you with the knowledge to efficiently automate various tasks on your Android device using Termux.
· · ─ ·𖥸· ─ · ·
Development with Termux
Unlock your development potential with Termux in this chapter. Start with Python, learning to install it and utilize powerful libraries for tasks like converting WAV files to text using Whisper API, minifying JavaScript files, and automating WordPress updates. Explore how to convert EML files to HTML and PDFs to JPGs with Python scripts.
Next, dive into Node.js with a quick installation guide, and learn how to set up and use http-server
for local web development and share your server using localtunnel
.
For PHP enthusiasts, discover how to get started with PHP development on the go and access a PHP web server running on Termux.
Expand your programming skills with C and C++ by installing GCC and writing code directly within Termux.
Enhance your coding experience with various code editors, including Vim, Emacs, and Micro, with detailed installation and configuration guides.
Finally, master version control by installing Git in Termux, ensuring your code is managed and tracked effectively. This chapter provides a comprehensive guide for all your development needs on Termux.
Python
Node.Js
PHP
C
C++
Code Editors
Version Control with Git
· · ─ ·𖥸· ─ · ·
Networking and Security
Dive into networking and security with Termux in this chapter. Start by leveraging Termux for network diagnostics, using tools like ping
and traceroute
to troubleshoot and analyze network issues. Learn how to install and configure essential networking services, including SSH and FTP, with a detailed guide on setting up SSH and troubleshooting common issues.
Focus on security best practices to protect your Termux environment. Discover how to use GPG for encryption and secure communications. Explore penetration testing with Termux, installing and utilizing popular tools like Metasploit and Nmap, and delve into ethical hacking practices to test and improve your network’s security. This chapter equips you with the skills to manage and secure your network effectively using Termux.
· · ─ ·𖥸· ─ · ·
Advanced Usage of Termux
Explore advanced capabilities of Termux in this chapter. Begin by integrating Termux with Android, gaining insights into Termux’s interaction with Android APIs and practical uses of ADB for tasks such as retrieving the Android version.
Learn how to transform your Android device into a versatile server with guides on setting up web servers, MySQL/MariaDB, and PostgreSQL database servers. Discover how to remotely manage Linux servers using Termux, expanding its utility beyond your local device.
Delve into Bluetooth and IoT functionalities with Termux, automating Bluetooth tasks and connecting to and controlling IoT devices. This chapter provides a comprehensive look at advanced Termux applications, enabling you to maximize the potential of your Android device for various technical and automation tasks.
· · ─ ·𖥸· ─ · ·
Cool Projects You Can Do with Termux
Unleash your creativity with Termux through a range of exciting projects in this chapter. Start by exploring how to turn Termux into a media server, allowing you to stream and manage media directly from your Android device.
Please note: Due to changes in Google’s policies, projects dependent on ADB are no longer supported. Stay updated on alternative approaches and projects that align with current guidelines. This chapter provides inspiration and practical ideas to extend Termux’s functionality and integrate it into innovative projects.
· · ─ ·𖥸· ─ · ·
Classic Text Games with Termux
Dive into nostalgia with classic text-based games on Termux in this chapter. Enjoy Nethack, a legendary dungeon crawl game known for its depth and complexity. Relive the excitement of Ninvaders, a text-based clone of the iconic Space Invaders game. Challenge yourself with Bastet, a text-based version of Tetris that offers a unique and demanding gameplay experience. Finally, navigate the moon’s surface in Moon-Buggy, a simple ASCII game where you guide a moon buggy through obstacle-laden terrain. This chapter brings classic gaming experiences to your Termux environment, combining fun with the power of terminal-based gameplay.
· · ─ ·𖥸· ─ · ·
Troubleshooting and Tips
Navigate common challenges and optimize your Termux experience in this chapter. Start with solutions to frequently encountered issues, providing practical troubleshooting steps and resources for additional support through Termux forums and communities.
Enhance your Termux environment with optimization tips to boost performance and efficiency. Discover how to expand Termux’s capabilities by integrating external keyboards, OTG connections, and other accessories, unlocking new functionalities and improving your workflow. This chapter equips you with essential tools and strategies to ensure a smooth and productive Termux experience.