Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
Termux
An Android terminal emulator and Linux environment app
There is a wiki
Warning: Do not mix installations of
Termux and Addons between Google Play and F-Droid. There are compatibility issues when mixing installations from these Internet portals
We use Termux on LineageOS 18 (Android 11)
Packages
Solving issues: Termux packages
List all installed packages
pkg list-installed | less -S
Packages which are handy to have installed
- coreutils
- dnsutils
- openssh
- procps
- vim
Keys
Touch keyboard
Keep the volume up key pressed while tapping key or SHIFT+key
Some keys
Key | Explanation |
---|---|
CTRL+a | Move cursor to the beginning of line |
CTRL+c | Abort (send SIGINT to) current process |
CTRL+e | Move cursor to the end of line |
CTRL+k | Delete from cursor to the end of line |
CTRL+u | Delete from cursor to the beginning of line |
CTRL+w | Clear prompt before word (a word is a set of characters after a space) |
Volume Up+E | Escape key |
Volume Up+T | Tab key |
Volume Up+1 | F1 (and Volume Up+2 F2, etc) |
Volume Up+0 | F10 |
Volume Up+B | Alt+B, back a word when using readline |
Volume Up+F | Alt+F, forward a word when using readline |
Volume Up+X | Alt+X |
Volume Up+w | Up arrow key |
Volume Up+a | Left arrow key |
Volume Up+s | Down arrow key |
Volume Up+d | Right arrow key |
Volume Up+P | Page Up |
Volume Up+N | Page Down |
Volume Up+. | CTRL+\ (SIGQUIT) |
Volume Up+V | Show the volume control |
Volume Up+Q | Show extra keys view |
Volume Up+K | Another variant to toggle extra keys view |
ssh
Install the openssh package
pkg install openssh
Start the ssh deamon with
sshd
Set a password with
passwd
Login form the computer with (yes the port is 8022, not 22)
ssh -p 8022 1.2.3.4
sshfs
Smartphone
Read Termux-setup-storage
Do:
- 'Settings > Apps & notifications > See all ## apps > Termux > Permissions > Denied Files and Media > Set to “Allow management of all files” > Back (repeat) until back in the main screen
- Run termux-setup-storage
- Do cd ~/storage
- If the directory ~/storage is not present
- Run termux-setup-storage again
- Check again: cd ~/storage
Computer
Make, as root, a local directory
mdkir /mnt/smartphone chown wim:wim /mnt/smartphone chmod 771 /mnt/smartphone
As normal user do
sshfs 192.168.78.120: /mnt/smartphone/ -p 8022
Enter the password
ls /mnt/smartphone/
Should result in the showing up of the directory
downloads
Useful links
Move files
Server to Termux to Phone
- Install termux-setup-storage . Do
- pkg install termux-setup-storage
- Run termux-setup-storage
- Install wget
- pkg install wget
- Download the file
- cd /data/data/com.termux/files/home/downloads
- wget IPaddress/filename
- Move the file
- mv filename /storage/emulated/0
- Open a file browser and put the file in the folder you want it to be in (als long as the desired folder shows up , is permitted
Issues
- Check the firewalls involved for permissions
crontab
pkg install cronie termux-services # Restart termux sv-enable crond crontab -e
Test a cron job
Wifi
Termux-wifi-enable does not work on Android 11 because of new restrictions imposed by Android, Google.
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.