Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/T4P4N/Awesome-Termux

Awesome Termux :- Bash Scripts, Wiki, Articles,Shells & Many More...
https://github.com/T4P4N/Awesome-Termux

List: Awesome-Termux

awesome-list awesome-termux termux termux-awesome-list termux-recommended-for-android

Last synced: about 2 months ago
JSON representation

Awesome Termux :- Bash Scripts, Wiki, Articles,Shells & Many More...

Awesome Lists containing this project

README

        

# Awesome Termux [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/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 wiki](https://wiki.termux.com/wiki/Main_Page)
* [Github](https://github.com/termux/)
* [Gitter](https://gitter.im/termux/termux)
* [Facebook Page](https://facebook.com/termux/)
* [Facebook Group](https://facebook.com/groups/termux/)
* [Twitter](https://twitter.com/termux)
* IRC Channel #Termux on freenode

### [How termux is different from Linux](https://wiki.termux.com/wiki/Differences_from_Linux)

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

[Termux:API](https://f-droid.org/en/packages/com.termux.api)
Access Android and Chrome hardware and ABI/API features.

[Termux:Boot](https://f-droid.org/en/packages/com.termux.boot)
Run scripts when your device boots.

[Termux:Float](https://f-droid.org/en/packages/com.termux.window)
Run Termux in a floating window.

[Termux:Styling](https://f-droid.org/en/packages/com.termux.styling)
Have color schemes and powerline-ready fonts customize the appearance of the Termux terminal.

[Termux:Task](https://f-droid.org/en/packages/com.termux.tasker)
An easy way to call Termux executables from Tasker and compatible apps.

[Termux:Widget](https://f-droid.org/en/packages/com.termux.widget)
Start small scriptlets from the home screen.

### Shells in Termux Official Repository
- Zsh
- Bash
- Fish
- Nushell
- Beanshell
- Xonsh
- IPython
- TCSH
- [Read Wiki to learn more](https://wiki.termux.com/wiki/Shells)

### 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
```
- [Oh-my-termux](https://github.com/4679/oh-my-termux)
### 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 :
* Read wiki of [Text Editors](https://wiki.termux.com/wiki/Text_Editors) or [IDEs](https://wiki.termux.com/wiki/IDEs) to learn more

### 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
```
Update and upgrade packages:
```
pkg up
```
Remove/Uninstall Package(s):
```
pkg un
```
List files 'owned' by package:
```
pkg f
```
Reinstall a Package(s):
```
pkg re
```
Show some info about package(s):
```
pkg sh
```
Search package(s):
```
pkg se or
```
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](https://wiki.termux.com/wiki/Package_Management)

### 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.

- SSH server:
[Check this if you are using sshd](https://github.com/tomhiggins/TermuxSSHDsetup)

- HTTP Server:
```
busybox httpd -p 0.0.0.0:8080
```

- HTTP Proxy Server
```
tinyproxy -d
```
[Tinyproxy](https://tinyproxy.github.io/)

- MySQL/MariaDB Server
[Read
wiki page here](https://wiki.termux.com/wiki/MariaDB)
or
[Read the blog post here](https://www.nosware.com/web/install-mysql-server-termux-android/290/)

- Music Player Daemon aka mpd
[Read the wiki page here](https://wiki.archlinux.org/index.php/Music_Player_Daemon)
Or
[Watch the Video Here](https://youtu.be/mfs3TKj9DVA)

- Bypass NAT
[Read the wiki page here](https://wiki.termux.com/wiki/Bypassing_NAT)

* [Read wiki to learn more it includes setting up ftpd, sshd, port forwarding, tor](https://wiki.termux.com/wiki/Remote_Access)

### Termux Services
To install termux services, run
```
pkg i termux-services
```
To then enable and run a service, run
```
sv-enable
```
If you only want to run it once, run
```
sv up
```
To later stop a service, run:
```
sv down
```
Or to disable it
```
sv-disable
```
* [Read wiki to learn more](https://wiki.termux.com/wiki/Termux-services)

### 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)
* [Read wiki to learn more](https://wiki.termux.com/wiki/PRoot)

### Termux Related Stuff That might be useful
- [Termux-Launcher](https://github.com/amsitlab/termuxlauncher)
- [Termux-WebUI](https://github.com/wcchoi/swell.sh/)
- [Termux-ADB](https://github.com/MasterDevX/Termux-ADB)
- [Atilo (Automated Linux installer for termux)](https://github.com/YadominJinta/atilo)
- [Lazymux (Automated pentesting tools installer for termux)](https://github.com/Gameye98/Lazymux)
- [Graphical Environment(x-11) for termux](https://wiki.termux.com/wiki/Graphical_Environment)
- [Termux Machine Learning](https://github.com/sanheensethi/Installing-ML-In-Termux-Python)
- phpmyadmin
[Read the blog post here](https://parzibyte.me/blog/en/2019/04/28/install-apache-php-7-android-termux/)
- Android as VPS using termux [Read Here](https://dev.to/b3nsh4/android-phone-into-a-vps-hosting-server-hosting-apps-nginx-music-server-and-a-lot-14on)
- Termux Dotfiles worth checking out [Click ME!](https://github.com/onlurking/termux)

### Keyboard Shortcuts
The following shortcuts are available when using Termux with a hardware (e.g. bluetooth) keyboard and also with [hacker's keyboard](https://f-droid.org/en/packages/org.pocketworkstation.pckeyboard/) 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](https://wiki.termux.com/wiki/Main_Page)

### 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](https://github.com/Magisk-Modules-Repo/ExSDCard)
- 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](https://wiki.termux.com/wiki/FAQ)