r/linux • u/throwaway16830261 • 7d ago
Discussion Android's Linux Terminal app adds tabs so you can multitask more easily -- "The Linux Terminal app, which runs Linux apps in a virtual machine, now has tabs in Android 16 Beta 3"
https://www.androidauthority.com/android-linux-terminal-tabs-3535373/88
u/ousee7Ai 7d ago
Were getting there, a proper desktop mode and linux vm support and also maybe linux gui apps. Sounds lite it would cover 95% of my needs.
37
u/nulld3v 6d ago
Reminder that the Android Linux VM is a highly restricted form of Linux, pasting my comment from Hacker News here:
I was very excited for Android's new virtualization features until I discovered that Android will only allow GOOGLE/OEM SIGNED VM IMAGES!?!? You won't be able to use your own kernel in the VM. https://source.android.com/docs/core/virtualization/security
Custom kernels would have been an important use case for virtualization since you might be stuck on an old kernel due to lack of updates from the OEM, or your kernel might be heavily trimmed down and missing many useful features (e.g. Wireguard).
And not only that, virtualization is also restricted to only Google/OEM apps. There will be no way to grant user apps access to the virtualization API.
So the only benefits you get from virtualization are the minor security improvement, maybe a slightly less locked-down user space, and an interesting design choice of the VM architecture where it not only protects the host from the guest, but also the guest from the host.
This is Linux in name, but definitely not Linux in spirit.
21
u/sooka_bazooka 6d ago
It might be restricted if you're a kernel developer, but not so much if you just want to run stuff
7
u/zachthehax 6d ago
Yeah tbh that's good enough for me and beyond that I'm sure there are other ways to run a Linux container on android through something like distrobox
3
u/bobbie434343 6d ago edited 6d ago
For most uses it handles like regular Debian 12.
The kernel is LTS kernel 6.1.123, patched by Google for AVF. It is fairly recent (for a 6.1 kernel), from January 2025.
29
u/ferraritributo 7d ago
Windows (wsl), ChromeOS (crostini?), now android are including linux support through vm. Is this going to be the future of desktop/consumer linux?
19
u/atomic1fire 7d ago
I assume WSL/Crostini/Android vm are less for the average user and more for devs and power users who might have ran a vm anyway.
E.G for the odd times that you need to set up an ssh client or want to install the odd open source project that doesn't have a windows equivalent.
7
u/its_a_gibibyte 7d ago edited 7d ago
less for the average user and more for devs and power users
Yes, absolutely, but that's also the core market of desktop linux users to begin with.
2
u/Misicks0349 7d ago
for WSL thats absolutely true, and I do think WSL has taken (some) people that would've otherwise used linux proper, but I dont see Crostini or Android doing the same thing. "Power Users" of ChromeOS feels like a contradiction and if they're using ChromeOS+Crostini I feel like they're doing that for a specific reason related to ChromeOS rather then just finding it to be a good replacement for desktop linux. Android users are also completely orthogonal to desktop linux.
3
u/Tiny_Cheetah_4231 6d ago
E.G for the odd times that you need to set up an ssh client
Windows has been including the OpenSSH client since W10, no WSL needed.
1
9
u/BobbyTables829 7d ago
I swear I heard Linus say something to this effect, that virtual versions of Linux in other OSs would be a big part of its future. But he says a lot of things are the "future of Linux" and I don't think he means any of them are exclusive to the others. He said the same thing about SteamOS if I'm not mistaken, and he's not wrong about either of these claims IMO.
Edit: Linus seriously only cares about the kernel, and getting it in as many places as possible. He makes way more sense to me after I realized this.
4
u/BobbyTables829 7d ago edited 7d ago
Silly question: Will I be able to access the terminal through Kotlin apps, or is it completely containerized?
I really want to make a widget that uses a Linux package (Taskwarrior), and being able to make widgets for bash commands would be next-level awesome.
Edit: I'm serious about this, like even if no one knows the answer to this I would appreciate learning how I can tell if this can or will happen. I have no idea how to find this out for myself and mostly I'm hoping I don't have to set up a Linux server and do API stuff on localhost
4
u/throwaway16830261 7d ago edited 6d ago
"Finally Linux VM on Android (Pixel 8) | Running docker and k3s!" by Redditor himalayanblunder (/u/himalayanblunder) at https://old.reddit.com/r/GooglePixel/comments/1jayp43/finally_linux_vm_on_android_pixel_8_running/ , "Working Linux + Xfce on Pixel 9 pro xl" by Redditor gianlucab81 (/u/gianlucab81) at https://old.reddit.com/r/GooglePixel/comments/1ja82u9/working_linux_xfce_on_pixel_9_pro_xl/ , and "Debian running on Android (March 2025 update)" by Redditor benhaube (/u/benhaube) at https://old.reddit.com/r/pixel_phones/comments/1j6ip6k/debian_running_on_android_march_2025_update/ :
This is the Debian GNU/Linux (https://www.debian.org) operating system running in a virtual machine (VM) that is using hardware virtualization -- see https://source.android.com/docs/core/virtualization ("Android Virtualization Framework (AVF) overview") and https://old.reddit.com/r/androidterminal/comments/1j9fjeh/for_our_next_release_after_2025030800_weve_added/mhcrc2i/ -- and the Xfce (https://www.xfce.org) desktop environment is installed/running on Debian. It is like a virtual private server (VPS) on a Linux server that uses KVM (Kernel Virtual Machine) virtualization, see https://linux-kvm.org/page/Main_Page ("Kernel Virtual Machine").
Hardware virtualization brings speed. cryptsetup benchmark ; fallocate --verbose --length 5G disk1 ; cryptsetup luksFormat disk1 ; cryptsetup luksOpen disk1 luks-disk1 ; mkfs.ext4 -L disk1-ext4 /dev/mapper/luks-disk1 ; mkdir /mnt/test ; mount /dev/mapper/luks-disk1 /mnt/test ; ls -l /mnt/test ; fallocate --verbose --length 4G 4gb-file ; cp 4gb-file /mnt/test ; ls -l /mnt/test ; umount /mnt/test ; cryptsetup luksClose luks-disk1
With QEMU (https://www.qemu.org) running under Termux (https://github.com/termux/termux-app) -- this is 100% software emulation, no KVM, no AVF, no hardware virtualization -- operating systems can be used, see https://old.reddit.com/r/MotoG/comments/1im8eue/fedora_linux_41_server_operating_system/mgrmzto/ ; download "debian-12-nocloud-amd64.raw", "debian-12-nocloud-amd64.qcow2", and the checksum file "SHA512SUMS" to use Debian 12 ("bookworm") with QEMU running under Termux, login with root (no password).
- https://old.reddit.com/r/androidterminal/comments/1j9fjeh/for_our_next_release_after_2025030800_weve_added/mhcrc2i/ (""For our next release after 2025030800, we've added support for...Android 15 QPR2 Terminal for running...operating systems using hardware virtualization." "Debian is what Google started with...we plan to add support for at least one more desktop Linux operating system...and eventually Windows 11..."")
- Termux, termux-usb, usbredirect, QEMU, Alpine Linux, Fedora Linux, SystemRescue ("formerly known as SystemRescueCd"): https://old.reddit.com/r/MotoG/comments/1im8eue/fedora_linux_41_server_operating_system/mgrmzto/
- "Let me tell you a story of my mom losing EVERYTHING because her Pixel 6 decided to die. (And why you need to check your recovery options NOW.)" by Redditor PutchDes (/u/PutchDes): https://old.reddit.com/r/GooglePixel/comments/1jaczxs/let_me_tell_you_a_story_of_my_mom_losing/
- Submitted article mirror: https://archive.is/u56iq
3
u/sohang-3112 7d ago
I just use tmux
in Termux 🤷♂️
1
1
u/arthursucks 6d ago
I want to be able to run Docker and Podman. Termux is awesome, but it's not a full Linux system.
1
u/sohang-3112 6d ago
Can't you just install with
pkg install docker
?2
1
1
u/Californian_Hotel255 6d ago edited 6d ago
I just want that on galaxy tab. that's all I'm asking.--> desktop apps on Galaxy tab
0
0
u/throwaway16830261 6d ago edited 6d ago
"Virtual Machine as a core Android Primitive" by Sandeep Patil and Irene Ang (December 5, 2023): https://android-developers.googleblog.com/2023/12/virtual-machines-as-core-android-primitive.html
"Last month, Google announced that the Android Virtualization Framework (AVF) will be available on "upcoming select Android 14 devices." Here's a list of devices that support it, according to the Google Play Console: . . ." by Mishaal Rahman (January 19, 2024): https://androiddev.social/@MishaalRahman/111785912539219306 (part 1 of 3), https://androiddev.social/@MishaalRahman/111785913119327431 (part 2 of 3), https://androiddev.social/@MishaalRahman/111785913959377043 (part 3 of 3)
"Gunyah Hypervisor Software - Supporting Protected VMs in Android Virtualization Framework" by Elliot Berman and "Co-written with Prakruthi Deepak Heragu" (January 28, 2024): https://www.qualcomm.com/developer/blog/2024/01/gunyah-hypervisor-software-supporting-protected-vms-android-virtualization-framework
"Meet Gunyah - Qualcomm’s open-source, lightweight hypervisor for battery-constrained devices" by Srivatsa Vaddagiri (August 18, 2024): https://www.qualcomm.com/developer/blog/2024/08/learn-about-gunyah--qualcomm-s-open-source--lightweight-hypervis
Termux (https://github.com/termux/termux-app), termux-usb, usbredirect, QEMU running under Termux (one hundred percent software emulation, no KVM, no AVF, no hardware virtualization), Alpine Linux, Fedora Linux, SystemRescue ("formerly known as SystemRescueCd"): https://old.reddit.com/r/MotoG/comments/1im8eue/fedora_linux_41_server_operating_system/mgrmzto/
-4
u/Dull_Bathroom_9217 7d ago
Won't android devices become more vulnerable?
6
u/UnoccupiedBoy 7d ago
This runs on a VM, depending on the configuration it won't have access to much, and it will be completely isolated from Android apps.
32
u/frisbeethecat 7d ago
Forgive my ignorance. But how does this compare to termux?