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

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 then 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 :)