Skip to content

T4P4N/Awesome-Termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Awesome Termux Awesome

Introduction

  • Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.

Termux:Addons

Termux has some extra features. You can add them by installing addons:

Termux:API Access Android and Chrome hardware and ABI/API features.

Termux:Boot Run scripts when your device boots.

Termux:Float Run Termux in a floating window.

Termux:Styling Have color schemes and powerline-ready fonts customize the appearance of the Termux terminal.

Termux:Task An easy way to call Termux executables from Tasker and compatible apps.

Termux:Widget Start small scriptlets from the home screen.

Shells in Termux Official Repository

Customizing Termux

  • Enable Dark UI Mode in Termux Add this line to your ~/.termux/termux.properties
use-black-ui=true
  • Disable Vibration/haptic feedback Add this line to your ~/.termux/termux.properties
bell-character=ignore

Text Editors and IDEs in Termux Official Repository

  • emacs : Extensible, customizable text editor-and more
  • joe : Wordstar like text editor
  • jupp : user friendly full screen text editor
  • micro : Micro is a terminal-based text editor that aims to be easy to use and intuitive (notepad like keybindings crtl+c crtl+v etc.)
  • nano : nano is a small and friendly editor.
  • ne : Easy-to-use and powerful text editor
  • sed : GNU stream text editor (More useful in bash scripting)
  • vim : Vi IMproved - enhanced vi editor
  • neovim : Neovim is an extension of Vim: feature-parity and backwards compatibility are high priorities.
  • zile : Lightweight clone of the Emacs text editor
  • codiad :

Package Management

Termux uses apt and dpkg for package management, similar to Ubuntu or Debian. Many quirks from Ubuntu are carried over here.

Install package(s):

pkg i <package name>

Update and upgrade packages:

pkg up <package name>

Remove/Uninstall Package(s):

pkg un <package name>

List files 'owned' by package:

pkg f <package name>

Reinstall a Package(s):

pkg re <package name>

Show some info about package(s):

pkg sh <package name>

Search package(s):

pkg se <package name> or <regex>

List all packages:

pkg list-a

List all installed packages:

pkg list-i
  • A quick warning for root users: if you prefer to use apt over pkg - never run it as root as you will mess up file permissions and SELinux contexts so you won't be able to use it as normal user. If you did this and your environment was broken, do not ask for help - this is your own fault !

  • Read wiki to learn more

Servers & Daemons

Termux is capable of accessing remote devices by using some common tools. It is also possible to turn a device running Termux into remote controlled server.

  • FTP Server (requires busybox):
busybox tcpsvd -vE 0.0.0.0 2121 busybox ftpd -w path/to/serve

Warning: -w allows upload and don't use port below 1024 or else you may get permission denied error.

busybox httpd -p 0.0.0.0:8080
  • HTTP Proxy Server
tinyproxy -d

Tinyproxy

Termux Services

To install termux services, run

pkg i termux-services

To then enable and run a service, run

sv-enable <service> 

If you only want to run it once, run

sv up <service> 

To later stop a service, run:

sv down <service> 

Or to disable it

sv-disable <service>

Some IRC Clients

  • ERC is an IRC client for Emacs.
  • irssi is an IRC client.
  • weechat is an IRC chat client.

Proot (Run Linux Distributions inside Termux)

Opens possibility to install way more packages, by default very hard or impossible to install on termux.

  • Arch (Thanks to sdrausty)
  • Archstrike (just modifies the pacman.conf file)
  • Blackarch (just modifies the pacman.conf file)
  • Debian (Thanks to sp4rkie)
  • Fedora (Thanks to nmilosev)
  • Slackware (Thanks to gwenhael)
  • Ubuntu (Thanks to neo-oli)
  • Alpine Linux (Thanks to Hax4us)

Termux Related Stuff That might be useful

Keyboard Shortcuts

The following shortcuts are available when using Termux with a hardware (e.g. bluetooth) keyboard and also with hacker's keyboard on most devices:

  • Ctrl + Alt + C → Create new session
  • Ctrl + Alt + R → Rename current session
  • Ctrl + Alt + or N → Next session
  • Ctrl + Alt + or P → Previous session
  • Ctrl + Alt + → Open drawer
  • Ctrl + Alt + → Close drawer
  • Ctrl + Alt + F → Toggle full screen
  • Ctrl + Alt + M → Show menu
  • Ctrl + Alt + U → Select URL
  • Ctrl + Alt + V → Paste
  • Ctrl + Alt + + or - → Adjust text size
  • Ctrl + Alt + 1-9 → Go to numbered session
  • Source Termux-Wiki

Some aliases that i use:

alias a='startarch' # For starting termux arch
alias cls='clear'
alias e='logout'
alias gcl='git clone'
alias h='htop'
alias j='jobs'
alias nano='nano -m' # Enable Touch/Mouse Support in nano
alias p='pwd'
alias q='exit'
alias rf='rm -rf'
alias weather='curl wttr.in/delhi-india' # change the place to yours
alias pst=termux-clipboard-get # paste
alias cpy=termux-clipboard-set # copy
alias open=termux-open # open with external app

Root users(*use at your own risk)

  • Fix equalizer not working sudo pkill audiofx

  • Fix other audio related issues sudo pkill audioserver

  • Kill a unresponsive app sudo pkill app_name

  • Show all saved wifi passwords xml sel -t -v "/WifiConfigStoreData/NetworkList/Network/WifiConfiguration//string/text()" /data/misc/wifi/WifiConfigStore.xml

  • Make sure you have xmlstarlet installed if not pkg i xmlstarlet, Works only on Android oreo maybe?Anyway Try it out!
  • List all open ports of your device sudo netstat -tulpn
  • Even works without root/sudo on some devices
  • Get all battery & usage related stats sudo dumpsys batterystats

  • Get the list of all running processes of android sudo ps aux

  • Enable write acess to external sdcard

  • First install magisk module named ExSDCard Access Enabler

  • Than Restart your device & paste this in termux

ln -sf /mnt/media_rw/SDCARDNUMBER ext1sdcard

SDCARDNUMBER will be something like this 8982-18F9 ext1sdcard is now your sdcard with read & write permissions.

FAQ

Read The FAQs here