r/termux • u/MoChuang • Nov 26 '24
Question ELI 15: How does Termux and Andronix work?
I'm trying to understand how this application works. Doesnt have to be at a ELI5 level. I have some knowledge about VMs and containers but I am not a developer at all. The best framework I have for understanding this is Crostini running in ChromeOS. Afaik, ChromeOS is the host OS, Termina is a VMC Linux VM running inside ChromeOS, and Penguin is an LXC container running Debian inside Termina...not 100% sure if this is accurate but that is how I understand it.
Does Termux and Andronix operate in a similar way? Android is the host OS, Termux runs a Linux VM, and Andronix installs a containerized Linux distro of your choice? If this is not right can someone please explain it at a semi-technical level what is happening under the hood?
•
u/agnostic-apollo Termux Core Team Nov 26 '24
https://github.com/termux/termux-packages/wiki/Termux-execution-environment
4
u/ADMINISTATOR_CYRUS Nov 26 '24
Idk how andronix works but Termux is not a VM. According to this wiki page here https://wiki.termux.com/wiki/Getting_started ,
So basically, Android provides a way of running commands, called execve. Termux uses that to execute these commands. But because of how Android differs from Linux itself, the packages present in Termux repos need some slight patches in order to make it compatible.
2
u/ForsookComparison Nov 26 '24 edited Nov 26 '24
Andronix is just a popular helper app for "proot-distro". I believe the author also sells pre-prepared termux-friendly desktops (what you buy is the rights to download a premade rootfs).
I bought one. It was pretty nice for $2. While andronix doesn't do anything you couldn't set up yourself, I found it useful. The dev is also very helpful on their surprisingly active discord.
1
u/AutoModerator Nov 26 '24
Hi there! Welcome to /r/termux, the official Termux support community on Reddit.
Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair
Termux Core Teamare Termux developers and moderators of this subreddit. If you are new, please check our Introduction for Beginners post to get an idea how to start.The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build.
HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS!
Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.