User Tools

Site Tools


termux

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)

Backup

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

KeyExplanation
CTRL+aMove cursor to the beginning of line
CTRL+cAbort (send SIGINT to) current process
CTRL+eMove cursor to the end of line
CTRL+kDelete from cursor to the end of line
CTRL+uDelete from cursor to the beginning of line
CTRL+wClear prompt before word (a word is a set of characters after a space)
Volume Up+EEscape key
Volume Up+TTab key
Volume Up+1F1 (and Volume Up+2 F2, etc)
Volume Up+0F10
Volume Up+BAlt+B, back a word when using readline
Volume Up+FAlt+F, forward a word when using readline
Volume Up+XAlt+X
Volume Up+wUp arrow key
Volume Up+aLeft arrow key
Volume Up+sDown arrow key
Volume Up+dRight arrow key
Volume Up+PPage Up
Volume Up+NPage Down
Volume Up+.CTRL+\ (SIGQUIT)
Volume Up+VShow the volume control
Volume Up+QShow extra keys view
Volume Up+KAnother 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

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.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
termux.txt · Last modified: 15-05-2023 13:59 by wim