This is a preinstalled Kali-Linux Distro with Gnome Desktop.For Android 12 & 13,before you install it , disable phantom process killer.
Download kali.tar.xz to Device's Download folder first.
pkg up -y && pkg i -y zsh wget
wget https://github.com/atamshkai/Termux-Zsh/raw/main/zsh.tar.xz
tar -xvJf zsh.tar.xz && mv ~/zsh/.* ~/
rm -rf ~/zsh
chsh -s zsh
echo "killall pulseaudio &>/dev/null" >>~/.zshrc
echo "pulseaudio --start --exit-idle-time=-1; pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" >>~/.zshrc
pkg up -y && pkg i -y x11-repo && pkg i -y proot-distro pulseaudio termux-x11-nightly
termux-setup-storage
echo "DISTRO_NAME='Kali (kali)'" >>~/../usr/etc/proot-distro/kali.sh
proot-distro restore /sdcard/download/kali.tar.xz
exit
Before login to proot,start termux-x11 first.
termux-x11 :1
echo "proot-distro login kali --shared-tmp --bind /dev/null:/proc/sys/kernal/cap_last_cap" >>~/../usr/bin/kali
chmod +x ~/../usr/bin/kali
wget https://raw.githubusercontent.com/atamshkai/Kali-Linux-Gnome-Desktop-On-Termux-x11/main/proot-distro
rm -rf ~/../usr/bin/proot-distro
mv proot-distro ~/../usr/bin
chmod +x ~/../usr/bin/proot-distro
kali
apt update && apt install -y nautilus
export XDG_CURRENT_DESKTOP=GNOME
export PULSE_SERVER=127.0.0.1
export DISPLAY=:1
export XDG_SESSION_TYPE=x11
service dbus start
sleep 3
gnome-shell --x11 --sm-disable &
OR
gnome
If you upgrade the system,the desktop will fail to launch.
for file in $(find /usr -type f -iname "*login1*"); do
mv -v $file "$file.back"
done
echo "chmod u+s /usr/lib/dbus-1.0/dbus-daemon-launch-helper" >>~/.bashrc
mv -v /usr/share/applications/gnome-sound-panel.desktop /usr/share/applications/gnome-sound-panel.desktop.back
echo "export XDG_CURRENT_DESKTOP=GNOME" >>~/.bashrc
Login again
exit
apt update && apt install -y nautilus dbus-x11 gnome-shell gnome-shell-extension-dashtodock gnome-tweaks gedit gnome-terminal gnupg yaru-theme-gnome-shell yaru-theme-icon yaru-theme-gtk gnome-shell-extensions firefox-esr parole audacious pulseaudio
zsh shell will fail to launch gnome terminal
1920:1080