DEV Community

loading...

Discussion on: Termux: Give me your use cases!

Collapse
voyeg3r profile image
Sérgio Araújo

Install termux-api

apt install termux-api
Enter fullscreen mode Exit fullscreen mode

ssh support

apt install openssh
Enter fullscreen mode Exit fullscreen mode

To get ssh port

logcat -s 'syslog'
Enter fullscreen mode Exit fullscreen mode

your current user:

whoami
Enter fullscreen mode Exit fullscreen mode

Now you have termux-clipboard-get and termux-clipboard-set

apt install python
pip install yturl
pip install neovim
Enter fullscreen mode Exit fullscreen mode

You can listen youtube videos with mpv

mpv --no-video url
Enter fullscreen mode Exit fullscreen mode

or

cat <<-'EOF' >> ~/.bashrc
yt(){
    mpv --no-video "$(yturl $(termux-clipboard-get))"
}
EOF
Enter fullscreen mode Exit fullscreen mode

Access you phone through ssh or copy files like

scp -P 8022 file.mp3 u0_a184@192.168.15.2:~/storage/music
Enter fullscreen mode Exit fullscreen mode

Add your own scripts

echo "PATH=~/bin:$PATH" >> ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

Now you can write some scripts there.

Collapse
33nano profile image
🇵​​​​​🇰​​​​​🇳​​​​​

Awesome stuff