Install a full Linux desktop environment on your Android device with Termux X11 ( VNC optional) and also enable hardware acceleration
2,241
stars
620
commits
Shell
primary language
Aug 27, 2026
updated
custom during the setup):package: Distro Containers • :mechanical_arm: Hardware Acceleration • :wine_glass: Wine • :bulb: Others
[!NOTE] This Only Works On Termux From GitHub Or F-Droid. Avoid using Termux from Google Play that doesn't work due to API limitations.
| Component | Requirement | Download |
|---|---|---|
| Android Version | 8.0+ | |
| Termux | Latest | GitHub • F-Droid |
| Termux:X11 | Latest | GitHub |
| Termux-API | Latest | GitHub |
| RAM | 3GB+ | |
| Storage | 3-4GB | |
| Internet | 1.5-2GB | |
| VNC Viewer | Optional | RealVNC • NetHunter Kex |
[!TIP] Click on the Blue links to see all the available Styles for that De/Wm
| Desktop Environments | Window Managers |
|---|---|
| Xfce | Openbox |
| LXQt | i3 |
| MATE | dwm |
| GNOME | bspwm |
| Cinnamon | Awesome |
| KDE Plasma | Fluxbox |
| IceWM | |
| WMaker |
[!TIP] Fresh installations are recommended for best results.
[!IMPORTANT]
$\textsf{\color{#d73a49}{ANDROID 12+ USERS}}$
Disable Phantom Process Killer before installation. Learn how
bash <(curl -Lf https://raw.githubusercontent.com/sabamdarif/termux-desktop/main/setup-termux-desktop)
bash <(curl -Lf kutt.to/setup-termux-desktop)
[!TIP] You can also do a lite install which will not install all the optional packages. To do that, first run
export LITE=trueorexport LITE=1, then run the installer
Full Installation Guide: Watch on YouTube
tx11start [options]
Options:
--xstartup: Start the user-specified xstartup.--nogpu: Disable GPU acceleration.--legacy: Enable legacy drawing.--nodbus: Start without using dbus-launch.tx11start --nogpu --legacy).--help: Show help.tx11start to start Termux:X11 with gpu accelerationtx11start --xstartup cinnamon-session to start cinnamon even if you setup with xfce or anything elsetx11start --nogpu to start Termux:X11 without gpu accelerationtx11start --nogpu --legacy to start Termux:X11 without gpu acceleration and -legacy-drawingtx11start --nodbus to start Termux:X11 without dbus-launchtx11start --nodbus --nogpu to start Termux:X11 without gpu acceleration and dbustx11start --nodbus --nogpu --legacy to start Termux:X11 without gpu acceleration and dbus and with -legacy-drawingtx11start --nodbus --legacy to start Termux:X11 without dbus and use -legacy-drawing (nodbus and gpu)tx11start --legacy to start Termux:X11 with -legacy-drawing (with dbus and gpu)tx11start --debug --OTHER-PARAMETERS To see log of that command
tx11start --debug --nogpu To see tx11start --nogpu's log
tx11stop [-f]
Options:
-f: Force stop.--help: Show help.vncstart [options]
Options:
--nogpu: Disable GPU acceleration.--help: Show help.vncstop [-f]
Options:
-f: Force stop.--help: Show help.gui [options]
Options:
--start: Start GUI (use vnc or tx11 as arguments).--display: Launch the current desktop environment on another X11 display server over the same network.--stop: Stop GUI.--kill: Stop all GUI sessions.--help: Show help.gui --start / gui -l to start Termux guigui --stop / gui -s to stop guigui --display / gui -d <IP_ADDRESS>:<DISPLAY_PORT> To launch the current desktop environment on another X11 display server over the same networkgui -l / --start vnc to start VNCgui -l / --start tx11 to start Termux:X11gui -s / --stop vnc to stop VNCgui -s / --stop tx11 to stop Termux:X11gui -k / --kill / -kill to kill both vncserver and Termux:x11 At Oncegui --display / gui -d <IP_ADDRESS>:<DISPLAY_PORT> To launch the current desktop environment on another X11 display server over the same network. For more click :- Heresetup-termux-desktop [options]
Options:
--change style: Change desktop style.--change hw: Modify hardware acceleration settings.--reset: Reset all changes.--remove: Uninstall Termux Desktop.--local-config: Start the installation from a pre-made config file.--help: Show help.setup-termux-desktop --change style To Change Desktop Style
setup-termux-desktop --change hw To Change Hardware Acceleration Method
setup-termux-desktop --change pd To Change Installed Proot-Distro
setup-termux-desktop --change autostart To change autostart behaviour
setup-termux-desktop --change display To change termux:x11 display port
setup-termux-desktop --change de To switch between different desktop environment or window manager
setup-termux-desktop --reinstall icons / themes /config To Reinstall Icons / Themes / Config
setup-termux-desktop --reinstall icons,themes,..etc To Reinstall Them At Once
setup-termux-desktop --reset To Reset All Changes Made By This Script Without Uninstalling The Packages
setup-termux-desktop --remove / -r To Remove Termux Desktop
setup-termux-desktop --local-config / -config Start the installation from a pre-made config file > Each time you install the desktop environment or make some changes using the script it writes all your config to the /data/data/com.termux/files/usr/etc/termux-desktop/configuration.conf file. Copy that somewhere else, so next time when you want to install the desktop environment with that old config all you have to do is setup-termux-desktop --local-config /path/to/configuration.conf
setup-termux-desktop --debug (At the start) To generate a log file for any of the above commands
setup-termux-desktop --debug --install To create a log of whole installation processTermux-AppStore License: GPL
chroot-distro License: GPL
This project is licensed under the GNU General Public License v3.0
Copyright (C) 2024 sabamdarif
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Special thanks to:
If you enjoy this project, consider giving it a star! :star2:
If you find Termux Desktop useful and would like to support its development, consider buying me a coffee! Your support helps me maintain and improve this project.
0x1d216cf986d95491a479ffe5415dff18dded7e71TCjRKPLG4BgNdHibt2yeAwgaBZVB4JoPaD13Q7xf3qZ9xH81rS2gev8N4vD92L9wYiKHDJkMCnBAFG14TV3BqZKmbbjD8Pi1zKLLG60x1d216cf986d95491a479ffe5415dff18dded7e71Every contribution, no matter how small, helps keep this project alive and growing! ❤️
Shell
83.2%
Python
16.8%
Install a full Linux desktop environment on your Android device with Termux X11 ( VNC optional) and also enable hardware acceleration
2,241
stars
620
commits
Shell
primary language
Aug 27, 2026
updated
custom during the setup):package: Distro Containers • :mechanical_arm: Hardware Acceleration • :wine_glass: Wine • :bulb: Others
[!NOTE] This Only Works On Termux From GitHub Or F-Droid. Avoid using Termux from Google Play that doesn't work due to API limitations.
| Component | Requirement | Download |
|---|---|---|
| Android Version | 8.0+ | |
| Termux | Latest | GitHub • F-Droid |
| Termux:X11 | Latest | GitHub |
| Termux-API | Latest | GitHub |
| RAM | 3GB+ | |
| Storage | 3-4GB | |
| Internet | 1.5-2GB | |
| VNC Viewer | Optional | RealVNC • NetHunter Kex |
[!TIP] Click on the Blue links to see all the available Styles for that De/Wm
| Desktop Environments | Window Managers |
|---|---|
| Xfce | Openbox |
| LXQt | i3 |
| MATE | dwm |
| GNOME | bspwm |
| Cinnamon | Awesome |
| KDE Plasma | Fluxbox |
| IceWM | |
| WMaker |
[!TIP] Fresh installations are recommended for best results.
[!IMPORTANT]
$\textsf{\color{#d73a49}{ANDROID 12+ USERS}}$
Disable Phantom Process Killer before installation. Learn how
bash <(curl -Lf https://raw.githubusercontent.com/sabamdarif/termux-desktop/main/setup-termux-desktop)
bash <(curl -Lf kutt.to/setup-termux-desktop)
[!TIP] You can also do a lite install which will not install all the optional packages. To do that, first run
export LITE=trueorexport LITE=1, then run the installer
Full Installation Guide: Watch on YouTube
tx11start [options]
Options:
--xstartup: Start the user-specified xstartup.--nogpu: Disable GPU acceleration.--legacy: Enable legacy drawing.--nodbus: Start without using dbus-launch.tx11start --nogpu --legacy).--help: Show help.tx11start to start Termux:X11 with gpu accelerationtx11start --xstartup cinnamon-session to start cinnamon even if you setup with xfce or anything elsetx11start --nogpu to start Termux:X11 without gpu accelerationtx11start --nogpu --legacy to start Termux:X11 without gpu acceleration and -legacy-drawingtx11start --nodbus to start Termux:X11 without dbus-launchtx11start --nodbus --nogpu to start Termux:X11 without gpu acceleration and dbustx11start --nodbus --nogpu --legacy to start Termux:X11 without gpu acceleration and dbus and with -legacy-drawingtx11start --nodbus --legacy to start Termux:X11 without dbus and use -legacy-drawing (nodbus and gpu)tx11start --legacy to start Termux:X11 with -legacy-drawing (with dbus and gpu)tx11start --debug --OTHER-PARAMETERS To see log of that command
tx11start --debug --nogpu To see tx11start --nogpu's log
tx11stop [-f]
Options:
-f: Force stop.--help: Show help.vncstart [options]
Options:
--nogpu: Disable GPU acceleration.--help: Show help.vncstop [-f]
Options:
-f: Force stop.--help: Show help.gui [options]
Options:
--start: Start GUI (use vnc or tx11 as arguments).--display: Launch the current desktop environment on another X11 display server over the same network.--stop: Stop GUI.--kill: Stop all GUI sessions.--help: Show help.gui --start / gui -l to start Termux guigui --stop / gui -s to stop guigui --display / gui -d <IP_ADDRESS>:<DISPLAY_PORT> To launch the current desktop environment on another X11 display server over the same networkgui -l / --start vnc to start VNCgui -l / --start tx11 to start Termux:X11gui -s / --stop vnc to stop VNCgui -s / --stop tx11 to stop Termux:X11gui -k / --kill / -kill to kill both vncserver and Termux:x11 At Oncegui --display / gui -d <IP_ADDRESS>:<DISPLAY_PORT> To launch the current desktop environment on another X11 display server over the same network. For more click :- Heresetup-termux-desktop [options]
Options:
--change style: Change desktop style.--change hw: Modify hardware acceleration settings.--reset: Reset all changes.--remove: Uninstall Termux Desktop.--local-config: Start the installation from a pre-made config file.--help: Show help.setup-termux-desktop --change style To Change Desktop Style
setup-termux-desktop --change hw To Change Hardware Acceleration Method
setup-termux-desktop --change pd To Change Installed Proot-Distro
setup-termux-desktop --change autostart To change autostart behaviour
setup-termux-desktop --change display To change termux:x11 display port
setup-termux-desktop --change de To switch between different desktop environment or window manager
setup-termux-desktop --reinstall icons / themes /config To Reinstall Icons / Themes / Config
setup-termux-desktop --reinstall icons,themes,..etc To Reinstall Them At Once
setup-termux-desktop --reset To Reset All Changes Made By This Script Without Uninstalling The Packages
setup-termux-desktop --remove / -r To Remove Termux Desktop
setup-termux-desktop --local-config / -config Start the installation from a pre-made config file > Each time you install the desktop environment or make some changes using the script it writes all your config to the /data/data/com.termux/files/usr/etc/termux-desktop/configuration.conf file. Copy that somewhere else, so next time when you want to install the desktop environment with that old config all you have to do is setup-termux-desktop --local-config /path/to/configuration.conf
setup-termux-desktop --debug (At the start) To generate a log file for any of the above commands
setup-termux-desktop --debug --install To create a log of whole installation processTermux-AppStore License: GPL
chroot-distro License: GPL
This project is licensed under the GNU General Public License v3.0
Copyright (C) 2024 sabamdarif
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Special thanks to:
If you enjoy this project, consider giving it a star! :star2:
If you find Termux Desktop useful and would like to support its development, consider buying me a coffee! Your support helps me maintain and improve this project.
0x1d216cf986d95491a479ffe5415dff18dded7e71TCjRKPLG4BgNdHibt2yeAwgaBZVB4JoPaD13Q7xf3qZ9xH81rS2gev8N4vD92L9wYiKHDJkMCnBAFG14TV3BqZKmbbjD8Pi1zKLLG60x1d216cf986d95491a479ffe5415dff18dded7e71Every contribution, no matter how small, helps keep this project alive and growing! ❤️
Shell
83.2%
Python
16.8%