LinuxDroidMaster / Termux-Desktops

Collection of scripts to launch Desktops with audio in Termux X11 and how to use hardware acceleration
https://www.youtube.com/@LinuxDroidMaster/videos
GNU General Public License v3.0
447 stars 52 forks source link
termux termux-desktop termux-hardware-acceleration termux-x11

Android on Linux: Termux X11 Desktops

Collection of scripts to launch Desktops with audio in Termux X11. You have also all the information needed to install your prefered Linux Distro and connect to it in the following steps.

⚠️ If you want to see the information as it was before the update (as shown in most of the videos) check this out: README_old.md

You can see it all explained on my Youtube channel: LinuxDroidMaster

πŸ“š Index





Linux Environments Preview

All environments are configured with XFCE4 Desktop but you can change it

Proot distro (Debian) Native Chroot (Debian)



🏁 First steps

We are going to use Termux and Termux X11 in order to have a full Linux Desktop in our Android devices.

Basic packages you need to install on Termux:

pkg update
pkg upgrade
pkg install x11-repo
pkg install termux-x11-nightly
pkg install tur-repo
pkg install pulseaudio
pkg install proot-distro
pkg install wget
pkg install git


βš”οΈ Termux native VS Proot-distro VS Chroot

When setting up Linux on your Android device, you have several options to choose from. Understanding the differences between them can help you decide which environment best suits your needs:

1. Termux Native

Termux native refers to running Linux commands directly within the Termux app without any additional virtualization or containerization. It provides a lightweight and straightforward way to access Linux utilities on your Android device.

2. Proot-Distro

Proot-Distro is a method that utilizes proot (PRoot is a user-space implementation of chroot, mount --bind, and binfmt_misc) to run a full Linux distribution inside a chroot environment. This approach allows you to install and use a wide range of Linux distributions without root access. However, it may have some limitations compared to native installations.

3. Chroot

Chroot is a Unix command that changes the apparent root directory for the current running process and its children. In the context of running Linux on Android, chroot is often used to create a separate Linux environment alongside the Android system. While it provides a more isolated environment compared to Termux native, it may require more advanced setup and additional tools.

Summary

Consider your requirements and preferences when choosing the Linux environment for your Android device.



Comparison of Linux Environments on Android

Feature Proot Native Chroot
Needs Root? ❌ (No) ❌ (No) βœ… (Yes)
Many Linux Apps? βœ… (Yes) ❌ (Limited) βœ… (Yes)
Performance Moderate πŸ’Ό Good πŸš€ Good πŸš€


🐧 How to install proot distributions: Ubuntu, Debian, Arch, Kali Nethunter, Parrot OS, PostMarket OS

Click on the different icons to see how you can install the distribution of your choice. All of them have a video explaining the process

Alpine Ubuntu Debian Arch Kali NetHunter Parrot OS PostMarket Void
Alpine Logo Ubuntu Logo Debian Logo Arch Logo Kali Logo Kali Logo PostMarket Logo Void logo


πŸ’€ How to install Chroot distributions: Ubuntu, Debian, Box64Droid

Click on the different icons to see how you can install the distribution of your choice. All of them have a video explaining the process

Ubuntu Debian Box64Droid (Ubuntu) Arch
Ubuntu Logo Debian Logo Debian Logo Arch Logo


πŸ’» How to install Termux Native Desktop

You have all the information to install a native Termux Desktop and all the available apps here.