How to install Ubuntu Gnome Desktop in Termux (not flashback) | No Root

 


Ubuntu uses Gnome Desktop environment as their default desktop, But installing it in Termux can be tricky.


So In this article we will install Gnome Desktop Environment (not flashback) in Termux and the best part is that it doesn't require root access.


For Installing Gnome Desktop we will be using Ubuntu 18.04 as in Termux Gnome works fine with it.


Prerequisite

Termux
VNC viewer
4GB of storage





Installing Ubuntu 18.04

So first thing you should always do is to update your repositories, so execute following


pkg update


Then install dependencies


pkg install proot wget -y


Next execute following to get the installation script


wget https://raw.githubusercontent.com/MFDGaming/ubuntu-in-termux/master/ubuntu.sh


Now open the script with a text editor


nano ubuntu.sh


Here you need to change ubuntu version to bionic

Then just save the file with CTRL X Y and ENTER

Then just execute the script


bash ubuntu.sh


Now before starting ubuntu, open startubuntu.sh file


nano startubuntu.sh


and paste following in it after /dev


command+=" -b /dev/null:/proc/sys/kernel/cap_last_cap"


Then just save the file,

And  now start ubuntu


./startubuntu.sh



Installing Gnome Desktop


Now first thing we have to do is to update repositories


apt update


Then execute following to install Gnome Desktop


apt install gnome-shell gnome-terminal gnome-tweaks gnome-shell-extension-ubuntu-dock nautilus nano gedit dbus-x11 tigervnc-standalone-server -y


Next we have to configure xstartup for Gnome, so first create VNC directory


mkdir ~/.vnc


and open xstartup file


nano ~/.vnc/xstartup


and paste following in it


#!/bin/bash

export XDG_CURRENT_DESKTOP="GNOME"
service dbus start
gnome-shell --x11


then save the file and give it executable permission to it


chmod +x ~/.vnc/xstartup


Now just start vncserver


vncserver


at first start you have to create a password for it which will be used while connecting to it


Then go to VNC viewer app and create a connect with localhost:1 and connect to it with your VNC password.


And few things you have to keep in mind that we have installed minimal gnome version, so by default you will see just a solid color wallpaper in it, You can change  that and also you need to enable ubuntu dock. I would recommend you to watch above video for that.


So That's we can install Ubuntu Gnome Desktop and it works fine with Ubuntu 18.04, So go and give it a try.





Post a Comment (0)
Previous Post Next Post