In this passage I will install Linux container on Android via Termux app.
And I will build a development environment:
Desktop
VNC login
VSCode
Environment
Please note that the difference of devices and version of Termux may have unknown behaviours.
This is my environment:
Device
Architecture
Android Version
Termux
VNC App
OnePlus Ace 3V
aarch64/arm64
15
googleplay.2025.01.18
RVNC Viewer 4.9.2.60169
Waydroid x86-64
x86_64
11
0.119.0-beta.1
RVNC Viewer 4.9.2.60169
Info
In this guide, ArchLinux is the example.
Errata
Before delving into the text, it’s important to note that there may be some grammar or syntax errors present. This could be due to translation errors, typing mistakes, or the author’s unique writing style ( I’m a Chinese native speaker 😅 ).
Install Proot Container
Open Termux app.
Update packages.
1
apt update && apt upgrade
Install packages.
1
apt install proot proot-distro
Download and install ArchLinux.
1
proot-distro install archlinux
Login to Linux distribution.
1
proot-distro login archlinux
(Optional) Use fish shell for better experience.
1 2 3
pacman -Syu pacman -S fish chsh -s /bin/fish
Install VNC and Desktop on ArchLinux
Make sure you have logged in ArchLinux.
Update system packages.
1
pacman -Syu
Install desktop and VNC.
1
pacman -S tigervnc xfce4
Create New User
Make sure you have logged in ArchLinux.
Replace <username> with your username such as admin.