Cheatsheet for Setting up Termux on Android Smartphones
Quickly setting up Termux on Android smartphones for development. This article is part of the Edge Development Cheatsheet series. Termux is a useful software for emulating Linux environment in Android (much better than the ADB shell). As part of the Smartphone Setup Cheatsheet, this article elaborates on how to setup Termux. Also note that this is mostly based on my personal development requirements, which are focused on AI-related computing tasks. It might not perfectly suits you if you’re more interested in App development and GUI debugging. A useful repo: sanwebinfo/my-termux-setup System-level setup for Termux. Common packages during system setup: Set up development environments. Termux doesn’t support VSC (Visual Studio Code) remote server, but you can set up an open-source code-server as an alternative. Install code-server via Tur repo: Configure the server via  Launch the server: Now you will be able to access the code UI via http://ip:8080 with the configured password. Note that the config path will be slightly different (under  Termux doesn’t support miniconda. Install Python:  See more of the Edge Development Cheatsheet series.Installation
System Setup
Update packages
termux-change-repopkg update && pkg upgradeSetup SSH
pkg install opensshwhoamipasswdifconfigsshdssh -p 8022 <username>@<ip> Install packages
pkg install tsupkg install gitpkg install wgetpkg install curlpkg install cmakepkg install tmuxpkg install htopEnvironment Setup
Code
~/.config/code-server/config.yaml. For example:bind-addr: 0.0.0.0:8080
auth: password
~/.tsu) if you run in tsu mode.Python
pkg install python