Skip to content

Easily set up a full Linux desktop environment on Android using Termux with hardware acceleration and audio support. Also leverage full package compatibility using a Debian/Ubuntu PRoot distribution container.

License

Notifications You must be signed in to change notification settings

Prime-TITAN-CameraMan/Termux-Desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Termux-Desktop

Install a full Linux desktop environment on your Android device with Termux X11 and also with hardware acceleration alongwith desktop audio functional

Potential Issues

GL Hardware Acceleration for Adreno 6xx/7xx GPUs (except few specific ones, mentioned in the hwa setup) may not work. Vulkan acceleration may work but GL may not. Since I do not have a Adreno GPU, one of you Adreno 6xx/7xx users have to contact for on Discord, so I can test what is happening



Navigation

Warning

If you are using Mali GPU, or Adreno 6xx/7xx (except 710, 642L, 720 & 730) you don't need to setup HWA manually, in my Termux Desktop installation process it is included. If you use any other Adreno GPU then my script does not have automated HWA for it. So, you have to set it up manually through the documentation process guide


Basic Termux Requirements

The basic Termux requirments to install Termux on your Android without any problem

  • Android version must be 8 or higher
  • Minimum 512MB of RAM; Recommended 1.5GB of RAM
  • 50MB - 100MB of internet data for base Termux packages
  • Minimum 150MB of storage; Recommended 300MB of storage


First Steps

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

Warning

(NEVER USE THE GOOGLE PLAY STORE VERSION OF TERMUX AS IT IS OUTDATED) (NEVER TRY TO INSTALL TERMUX AND ITS APPS FROM DIFFERENT SOURCES, ALWAYS INSTALL FROM GITHUB)

Update & Upgrade all of Termux packages:

pkg update
pkg upgrade -y

Install essential packages in Termux:

pkg install -y x11-repo
pkg install -y termux-x11-nightly
pkg install -y pulseaudio
pkg install -y tur-repo
pkg install -y termux-api
pkg install -y proot-distro


Termux native VS PRoot-distro

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.

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.

Summary

  • Termux Native: Simple and lightweight, but with limited capabilities compared to full Linux distributions.
  • Proot-Distro: Allows running full Linux distributions without root access, but may have some limitations.


Comparison of Linux Environments on Android

Feature Proot Native
Needs Root? ❌ (No) ❌ (No)
Many Linux Apps? ✅ (Yes) ❌ (Limited)
Performance Moderate 💼 Good 🚀


How to install Full Termux Desktop (Manually)

In order to install the full XFCE4 desktop environment on Termux you have visit the documentation down below. Manually means you have to copy and paste each commands, good for power users



How to Install Full Termux Desktop with 1-Click (Automated)

To install the desktop without doing hardwork, you can use the automated script check the documentation below



How to install proot distribution desktop: Debian & Ubuntu

Click on the different text to see how you can install PRoot distributions of your choice. Alongwith XFCE4 desktop environment.

Warning

Not recommended, because if you run whole desktop inside PRoot environment, it will make your experience worse, because PRoot is slow. The reason I am telling to skip this because my installation process has a script using that you run run commands and applications on native, so your desktop performance gets no impact. This means your Termux native will be the main environment where you will run everything for performance, but for custom packages compatibility you can use my script to run certain applications which are installed inside PRoot environment, instead of running whole desktop, it will be visible & usable on Termux native desktop.



How to fix several services problem in Termux

In order to fix services issue such as Microphone, Camera, etc. on Termux, you have to install an additional package & app. Tap on Click Here to do it.



How to setup Hardware Acceleration manually on Termux

You can setup hardware acceleration on your Android manually if you want. But remember if you've a Vulkan-supported Mali GPU then my script will automatically set it up for you by it uses Zink and Vulkan Wrapper Android. If you are a power user want to change HWA or you have an Adreno GPU then tap on Click here

About

Easily set up a full Linux desktop environment on Android using Termux with hardware acceleration and audio support. Also leverage full package compatibility using a Debian/Ubuntu PRoot distribution container.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages