Install Kali Linux desktop environment to generic Debian

If you like the kali Linux environment but you want to use the OS for everyday use, it is recommended to do not to use Kali Linux itself. Kali Linux has its own purpose and does amazing in that way. But for everyday use is better to use some standard distribution in my case I use Debian. But you easily take the Kali interface and use it on Debian. In a few steps, I’m going to show you how you can do it.

# first we need add the kali linux repository to apt
echo "deb kali-rolling main non-free contrib" | tee -a /etc/apt/sources.list
apt-get update

# Now we get error because there is no public key in our key storage
#Err:4 kali-rolling InRelease
# The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6

# next we need to add the repository key to apt
wget -q -O - | apt-key add
apt-get update

# now we can install the kali-xfce
# in the install select the lighdm
sudo apt install -y kali-desktop-xfce

# after that, restart and you shoud be in the kali xfce enviroment.
# this installation also change the grub wallpaper etc. 

# if you do not select the lighdm at install there could be problem at login screen. So you need to disable the sddm and enable the lightdm
sudo systemctl enable lightdm && sudo systemctl disable sddm