Script to install Nvidia driver in Debian Squeeze with one click

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







# NVIDIA-Installer-Squeeze
# Enrique Molina
# GNU Public License V.3
if [ $USER != root ]; then
echo "¡Is necessary be root!"
exit 0
echo "[Add Repository] [Please Wait]"
sleep 2
echo "deb 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
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

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 ./

VIA | kikefree

  • CARMELLAHorn21

    I will recommend not to hold back until you earn enough amount of money to buy goods! You should just take the credit loans or credit loan and feel yourself free

  • travis

    SUCCESS!!! Tried everything and they all b0rked me good. This one worked perfect. It removed a couple of packages but I had no issues re-adding those. Can finally play a couple of games. Thanks much.

  • Vince

    Worked like a charm !! Thanks !

  • yo9fah

    Zinovsky, works great good man! :)

  • yo9fah

    WARNING: Unable to locate/open X configuration file.

    New X configuration file written to ‘/etc/X11/xorg.conf’

    So, thanks again! Good job!

  • batov

    very good work thaaaaaaaaaaaaaaaaaanks!

  • Detlef Müller

    Fails for me.
    Instead of the legacy-96-xx Driver needed
    for my card, some other is installed.

    kernel log says:

    NVRM: The NVIDIA GeForce4 MX 440 with AGP8X GPU installed in this system is
    NVRM: supported through the NVIDIA 96.43.xx Legacy drivers. Please
    NVRM: visit for more
    NVRM: information. The 195.36.31 NVIDIA driver will ignore
    NVRM: this GPU. Continuing probe…
    NVRM: No NVIDIA graphics adapter found!

  • A Vd Sluis

    Thanks for the script, it worked like a charm.

  • ob

    Thank you SO much for this!

  • cornelius

    WOW!! Thank you for your script! You SAVED me!! God bless you!!

    Kind regards,

  • Pingback: nvidia drivers in Squeeze()

  • fthieul

     Thanks for this script. It works very well for me (Debian Wheeze/Sid) after substituing “Squeeze” into “Wheeze”.


  • Pingback: Nvidia 302.17 Has Been Released! Install In Ubuntu12.04, LinuxMint13, Fedora17 - Techpublic()

  • Ruslan Nagiev

    Thank you very much!! You EXTREMELY help me! (Debian Squeeze, x86)
    Best regards,Ruslan G. Nagiev

  • fisherman421

    Installed all necessary nvidia Debian packages enabling the easy configuration of a dual monitor setup. Thanks.

  • Tiago

    Thanks.. this script was very helpfull..

  • esd

    Muy agradecido

  • g warne

    Thanks, m. zinoune! Your script worked great and saved me a lot of time and headache. I wonder why more tutorials are not written up like this. Great idea!

  • Andreas H.

    Great Job, Thanks!
    That’s what I’m looking for a long time.
    Greetings from Germany,

  • jason

    thanks man. I didn’t use chmod though but it worked. Awesome work. I tried installing on my own but i couldn’t shut down xserver.

  • Sunheng TIENG

    Installation finished but my Debian 6.0.6 failed to start.

    There is only a blink cursor appeared while it try to load X System.

  • Sunheng TIENG

    How can I restore my Debian back to previous working state?
    Is there anyways to fix this problems?
    Debian 6.0.6 64 AMD 64 bits.

  • Andrzej

    Thak you. Greetings from Poland.

    Debian Wheezy 64bit User.

  • alien

    Wow, it’s may be automated too.. Cool