Skip to content

Install Gnome Desktop Environment In Termux using Proot-Distro

Notifications You must be signed in to change notification settings

sabamdarif/gnome-in-termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6bda547 Β· Mar 20, 2025

History

56 Commits
Jan 11, 2024
Mar 18, 2024
Mar 20, 2025
Jul 18, 2024
Jul 17, 2024
Jul 18, 2024
Aug 20, 2024
Aug 20, 2024
Aug 8, 2024
Dec 3, 2024

Repository files navigation

Easily Install Gnome Desktop in Termux

GitHub stars GitHub issues

Features:

  • πŸ”ˆ Fixed Audio Output
  • 🌐 2 Browsers (Chromium & Mozilla Firefox)
  • πŸ“Ί VLC Media Player work fine
  • πŸ“š Easy To Setup
  • πŸ’» Login Issue Fixed
  • πŸ’» Termux:x11 For Display Server
  • πŸ”¨ Gnome Software Preinstalled (working)
  • πŸ“š And Much More

This is just for test so don't think everything will work

If one distro don't work so try another one

Installation:

  1. If you are using android 12 or higher then first disable phantom process killer Tutorial
  2. Install Termux apk from HERE
  3. Now copy pest this in termux πŸ‘‡
  4. curl -Lf https://raw.githubusercontent.com/sabamdarif/gnome-in-termux/main/setup.sh -o setup.sh ; bash setup.sh
    
    • Now Select CORE Or FULL(recomended)

      DEMO IMAGES:
      CORE FULL
      img img
  5. Use Termux:x11 (Better than VNC)
  6. Enjoy πŸ˜„

How To Setup Vnc:

If it doesn't work, then don't ask me because it didn’t work for me either

vnc setup steps: For Debian Based Distro
  sudo apt install  tigervnc-standalone-server tigervnc-tools -y

  mkdir -p "$HOME/.vnc"

  nano $HOME/.vnc/xstartup

  export XDG_CURRENT_DESKTOP="GNOME"
  gnome-shell --x11 # paste it inside xstartup file

  chmod +x "$HOME/.vnc/xstartup"

  sudo echo "$YOUR_USER_NAME ALL=(ALL) NOPASSWD: /usr/sbin/service dbus start" | sudo tee -a /etc/sudoers

  sudo nano /bin/vncstart

  #!/usr/bin/env bash
  sudo service dbus start
  vncserver -geometry 2580x1080 #Add your screen size

  sudo chmod +x /bin/vncstart

  sudo nano /bin/vncstop

  #!/usr/bin/env bash
  if [ "\$1" == "-f" ]; then
  pkill Xtigervnc
  else
  vncserver -kill :*
  fi
  rm -rf /.vnc/localhost:*.pid
  rm -rf /tmp/.X1-lock
  rm -rf /tmp/.X11-unix/X1

  sudo chmod +x /bin/vncstop

NOTE:

  • Type DISTRO-NAME to login into DISTRO CLI.
  • Type DISTRO-NAME -r to login as root user
  • Type DISTRO-NAME -tx11 to use gnome with Termux-x11
  • Type DISTRO-NAME -remove to remove the distro

Like If You Install Debian So Just Type debian -r / debian -tx11 / debian -remove

Warning:

  • In future if you upgarde the system the desktop will fail to launch.

    Fix:

    • First stop gui and relogin into your distro cli
    • Then run the below command inside your distro then start gui again
for file in $(find /usr -type f -iname "*login1*"); do rm -rf $file
   done

If you like our work then dont forget to give a Star :)