Termux
Termux
Termux
Introduction
User interface
How to use the application.
Software
How you can install more software.
Hardware
How to use an external keyboard and mouse.
Facility
Google Play
F-Droid
Addons
Termux has some additional features. You can add them by
installing plugins:
Termux:API
Access Android and Chrome hardware features.
Termux: Boot
Run script(s) when your device starts.
Termux: Float
Run Termux in a floating window.
Termux: Styling
Have powerline-ready color schemes and fonts customize the
appearance of the Termux terminal.
Termux: Task
An easy way to call Termux executables from Tasker and compatible
applications.
Termux: Widget
Launch small scriptlets from the home screen.
Frequent questions
Termux FAQ
What is a termux?
I am a beginner. What can I use termux for?
Can I do hacking with Termux?
How can I get help on a specific package?
Can I contribute?
Community
Can't find a solution in the FAQ ?
General questions
Can I contribute?
Yes, contributions are welcome. Termux is an open source application and is
based on user contributions.
You can search the source code for all Termux parts on Github . However, the
main components are:
If you can.
We have some tools that can help you hack, like hydra (brute force tool) or
nmap (network scanner). We have a ton of compilers (Clang, Rust, Go, etc.) and
interpreters (Bash, Perl, Python, etc.). The radare2 reverse engineering tool is
available. Additionally, Termux can run metasploit-framework, allowing
Termux users to do some serious hacking stuff!
Tools like aircrack-ng or tcpdump can be found in the Termux root package
repository. To enable it, see Package_Management #
Installation_root_packages . But please note that Aircrack-ng requires wifi
monitor mode which is not available for most devices.
The Gitter and Google+ communities are moderated. All questions like How to
hack wifi? How to hack Facebook account ? , Can you teach me how to use
the Brute/crack/hack tool? will be deleted.
Warning: There are many "Termux hacking tutorials" on the Internet that
provide suspicious software intended to be used as hacking tools. Most of
them are made for clickbait and do not work in the real world. Some of them
force the user to install malware on their devices. We are not responsible for
broken Termux installations, bricked devices and lost data.
Consider researching Termux on the Internet, i.e. the Termux site: github.com
You may want to take a look at the Bash guide to learn how to use shell. Also,
browse the Termux Wiki to learn more about using the Termux app.
If you are searching for a specific package, use the pkg search {pkg_name}
command with changing '{pkg_name}' to the actual package name. Install the
necessary packages with pkg install {pkg_name} . For example, if you are
interested in programming, you can try packages like python , nodejs , ruby ,
clang , and others. Code (text) editors are also available: vim , nano , micro ,
etc...
Development Environments
Linux differences
Package management
Is Termux down?
Is Termux down? I am getting this error:
Unable to install
Termux was unable to install the boot packages.
Check your network connections and try again
This happens when a new installation cannot connect to the website for some
reason to download and install the boot packages. If this message continues
to repeat itself on consecutive attempts, try resetting your network
connections:
2. Wait a moment.
3. Turn it off again. Make sure Wi-Fi and/or mobile network are enabled.
Bad ISP. There may be various problems, such as spoofing the domain or
blocking the IP address/subnet of the resource (censorship).
The 2 cases listed above can be solved by VPN. Please note that IP addresses
of free VPNs may be blacklisted.
What is a termux?
Termux is a terminal emulator for Android. The key difference from other
terminal emulators is its own package repository with a large set of various
utilities.
Application
External SD cards are usually formatted in FAT32 or exFAT file systems which
do not have support for Unix permissions (chmod/chown) and special files
such as sockets or symbolic links. Also, Android enforces the noexec mount
option for user storage, so you won't be able to run binaries.
Are there buttons like 'ctrl' or 'esc' available in Termux?
Main article: Touch keyboard
Yes. You may want to refer to the Touch Keyboard page for information on
available key combinations and how to enable the row of additional keys .
packages
Can I install all Termux packages?
Probably not, some packages are known to conflict with each other, for
example Dropbear and OpenSSH. But you can still install most of the
packages, this will take about 3.5 GB of space on the internal storage.
1. Use apt install * on an empty directory. This will produce an error and this
is exactly the result you want for step one. Study the output to discover
conflicting packages, then find a way to select only packages that do not
cause conflicts.
2. Install using the globbing file . For example, apt install [ah]* will install all
packages that begin with the letters ah. But this will probably also cause
conflicts.
Also install the man tool to view man pages for various tools. Use pkg install
man to install man . Writing man man or man info information can help both
beginners and advanced users. For example, man busybox will display the man
page for the 'busybox' package.
You can try to build a package with a specific version yourself. The scripts
and build environment are located on Github in the termux-packages
repository .
I updated the termux packages as root and now I get
'permission denied' as a non-root user.
The main problem is trying to manipulate files that were modified as the
superuser. This is likely an SELinux context issue, which can be confirmed by
checking that the output of /system/bin/getenforce is 'Enforcing'.
For individual files, we can fix the file context at the root ( restorecon <file-
name> ) and revert ownership of the affected file ( chown <user>:<group> <file-
name> ). Note that <user> and <group> are running id as a non-root user. In
case many files are affected (e.g. due to package upgrade), change the
directory to /data/data/com.termux/ and run restorecon -R . and chown -R
<user>:<group> . Recursively apply changes.
termux environment
If the only output you see is [Process completed - press Enter] or a variation
thereof, your Termux environment is broken. You can try to fix this by using a
failsafe session.
If you have installed the OpenSSH daemon, you can start it with the sshd
command. Also, the "standard" SSH port on Termux is 8022. So, to connect to
Termux via SSH, you need to use the command ssh -p 8022 {ip_address} ,
substituting {ip_address} with the real IP of the remote device.
Please note that Termux supports password and public key authentication. All
information can be found on the #SSH remote access page.
Yes it is! But there are some differences with traditional Linux distributions.
Firstly, Termux is not an operating system, it is a terminal application, a text-
based interface to the shell. Secondly, Termux is a pre-built environment. Its
directory structure is slightly different than that defined by the FHS standard.
That is, in the Linux distribution we have /bin , but in Termux it is $PREFIX/bin
where $PREFIX refers to /data/data/com.termux/files/usr . This makes a big
difference in installing and building packages.
See this topic " etc is in the wrong place " and Main article: Differences from
Linux for more directory structure and environment information of $PREFIX
The terminal throws an error because we don't have access to main /bin of
the Android root directory (for non-rooted), instead we use prefixed bin i.e.
$PREFIX/bin .
#! /bin/{program}
Use proot 's termux-chroot to set up a chroot that mimics a normal Linux
filesystem in Termux.
Create a suitable chroot (proot) environment and try to run binaries from it.
Edit
CONTENT to top
The Term
Introducti
facility
Accessori
frequent q
communit