一键在 Debian Squeeze 中安装 Nvidia 驱动程序的脚本

这是一个不错的脚本,可让您在 Debian Squeeze 中轻松安装 Nvida 驱动程序

.

.

.

.

.

.

#!/bin/bash
# NVIDIA-Installer-Squeeze
# Enrique Molina
#
# GNU Public License V.3
if [ $USER != root ]; then
echo "¡Is necessary be root!"
exit 0
fi
echo "[Add Repository] [Please Wait]"
sleep 2
echo "deb https://ftp.debian.org/debian/ squeeze main contrib non-free" >> /etc/apt/sources.list
echo "[Update Repository]"
sleep 2
aptitude update
aptitude safe-upgrade
echo "[Installing Nvidia-Kernel-Module]"
sleep 2
VERSION=`uname -r`
aptitude install nvidia-kernel-$VERSION nvidia-glx
aptitude install nvidia-xconfig
nvidia-xconfig
echo "[Installing Nvidia-Settings]"
sleep 2
aptitude install nvidia-settings
echo "[Is necessary reboot to apply the changes]"
echo -n "[Do you want reboot now {y/n}]: " ; read var
case $var in
y)
reboot
;;
n)
exit
esac

下载脚本

在 debian Squeeze 中安装 Nvidia 的简单脚本(563 字节 2011-09-13 15:04:17)

首先解压,使其可执行,然后使用以下命令安装它

 su chmod +x nvidia-installer-squeeze.sh ./nvidia-installer-squeeze.sh

威盛 | kikefree