120 字
1 分鐘
【雜記】Termux

遷移自 HackMD

Termux Widget#

Termux official Github page

img-termux-miscs-1

Terminal window
# at Termux ~/
mkdir .shortcuts
chmod 700 -R .shortcuts/
  • Then move the desired scripts into the .shortcuts/ folder
  • (At Android Home Page) Create a widget
  • The scripts should show on the widget list (as shown above)

改字型#

Reference(Youtube vid)

Terminal window
cp <the ttf chosen> ~/.termux/font.ttf

ESC Key#

Editing ~/.termux/termux.properties

Terminal window
#...
# Back Key
back-key=escape
#...

Login Script and MOTD(Message of Today)#

Reference

  • ~/../usr/etc/motd
  • ~/../usr/etc/termux-login.sh

Host sshd Service#

HOSTING

Terminal window
passwd # 設定termux的密碼(如果已設定則可略過)
pkg install openssh
sshd

CONNECTING FROM CLIENT 不像一般的sshd埠號開放22,Termux對外開放的埠固定為8022。

ssh u0_a256@<IP_ADDR> -p 8022
【雜記】Termux
https://blade520.com/posts/termux-miscs/
作者
Blade/磯江
發佈於
2024-11-12
許可協議
CC BY-NC-SA 4.0