注意修改想应的NVIDIA版本号

#!/bin/bash
aptitude install debconf-utils debhelper dpatch gettext html2text intltool-debian po-debconf module-assistant gcc nvidia-kernel-common ntpdate linux-headers-$(uname -r)
if [ -e NVIDIA-Linux-x86-173.14.05-pkg1.run ] ; then
    wget -c http://us.download.nvidia.com/XFree86/Linux-x86/173.14.05/NVIDIA-Linux-x86-173.14.05-pkg1.run
fi

if [ -x NVIDIA-Linux-x86-173.14.05-pkg1.run ] ; then
    chmod +x NVIDIA-Linux-x86-173.14.05-pkg1.run
fi

./NVIDIA-Linux-x86-173.14.05-pkg1.run