Skip to content

Easily set up a full Linux desktop environment on Android using Termux with hardware acceleration and audio support. Supports both Native and PRoot configurations.

License

Notifications You must be signed in to change notification settings

Prime-TITAN-CameraMan/termux-desktops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Termux Desktops: Full Linux GUI on Android with Hardware Acceleration

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

The project is based on—

  • PRoot: Debian & Ubuntu, because they are beginner-friendly for everyone.
  • DE: XFCE4, because it's lightweight with full-featured desktop environment.
  • Hardware Acceleration: There's no documentation for hardware acceleration, because hardware acceleration is already settled in my scripts you can install the desktop environment using following steps and the hardware acceleration shall work alongwith the desktop environment. Whenever, you run the desktop environment using my script, hardware acceleration will work too.

Note

For native Termux: We're using Zink as hardware acceleration. So, make sure to check if your Android device supports Vulkan or not. If it supports, continue.

For PRoot distro: We're going to use VirGL, which is totally supported by all of Android devices




Basic Termux Requirements

  • 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)

Update & install some essential packages in Termux at first before proceeding:

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


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 proot distribution desktop: Debian, Ubuntu

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



How to install Termux Native Desktop

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



How to Install Native Termux Desktop with 1-Click

To install the desktop without any kind of commands running work, click on the 1-Click Installation.



How to use PRoot applications on native Termux Desktop

All informations and process regarding PRoot applications on native Termux are available here



How to fix Termux Storage, Microphone and Other Services Problem in Termux Desktop

All informations and process are available here



Credits & Inspiration

This project is inspired by:

About

Easily set up a full Linux desktop environment on Android using Termux with hardware acceleration and audio support. Supports both Native and PRoot configurations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages