Kali Linux GNOME desktop in android

 Hi guys welcome to Mr.Ethical yt . Today we are going to install Kali Linux GNOME in android device without root.


Installation 

First install the nethunter ROOTLESS in termux if you don't know how to install it you can follow my blog post to install it.
After you have installed nethunter start the nethunter command line interface in termux.
nh 

Update and upgrade it's repositories.

sudo apt-get update &&  apt-get upgrade-y 

Install the gnome desktop with the below command.

sudo apt install dbus-x11 gnome-session-flashback gnome-terminal  -y

Install x11-repo, xorg-xhost and tigervnc.

pkg install x11-repo -y && pkg install tigervnc xorg-xhost -y  

Start the vncserver.

vncserver -geometry 1280x720 -listen tcp :1 && DISPLAY=:1 xhost + 

Now let's create a stortcut to start the gnome .

nano /usr/local/bin/vncstart

Paste the code given below in the file and save it.

#!/bin/sh

rm -rf /run/dbus/pid

dbus-daemon --system

dbus-launch 

DISPLAY=:1 $HOME/.vnc/xstartup

Grant the excecutable permission to it.

chmod +x /usr/local/bin/vncstart

Change present working directory to $HOME.

cd $HOME

Create a directory with name .vnc 

mkdir .vnc

change to .vnc directory.

cd .vnc

Create a xstartup file with nano .

nano xstartup 

Paste the below code to it.

#!/bin/sh

export XKL_XMODMAP_DISABLE=1

unset SESSION_MANAGER

unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

gnome-panel &

metacity &

gnome-flashback &

Give the excecutable permission to it.

chmod +x xstartup

Start the gnome by running the vncstart.

vncstart

Open the gnome desktop with nethunter kex.



Post a Comment (0)
Previous Post Next Post