0、update kali linux before install
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
aptitude -r install linux-headers-$(uname -r)
apt-get install nvidia-kernel-$(uname -r)
aptitude install nvidia-kernel-dkms
aptitude install nvidia-xconfig
nvidia-xconfig
glxinfo | grep -i "direct rendering"
aptitude install mesa-utils
lsmod | grep nvidia
reboot