how to install desktop from kali command line code example
Example: how to install gnome kali linux
$ sudo apt update && sudo apt install kali-desktop-gnome
# Then select gdm3 instead of light dm when prompted #
$ sudo apt update && sudo apt install kali-desktop-gnome
# Then select gdm3 instead of light dm when prompted #