Script to install Nvidia driver in Debian Squeeze with one click

by
Share this Article: Facebook0Google+0Twitter4LinkedIn0Reddit0StumbleUpon1

This is a nice script that will allow you to install Nvida driver in Debian Squeeze the easy way

.

.

.

.

.

.

#!/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 http://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

Download the script

 Easy Script to install Nvidia in debian Squeeze (563 Bytes 2011-09-13 15:04:17)

First  extract, make it executable and then install it using the following commands

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

VIA | kikefree

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter4LinkedIn0Reddit0StumbleUpon1