Reinstall Nvidia Driver

For those of you, who use the original NVIDIA display driver and have to reinstall it with every kernel update: Here is a little bashscript for your convenience.

    sudo /etc/init.d/kdm stop
    sudo chvt 1
    sudo sh ~/Downloads/NVIDIA-Linux-x86-*.run --ui='none' -aNq
    sudo /etc/init.d/kdm start
    sudo chvt 7

Save it e.g. as ~/.bin/, make it executable (chmod +x ~/.bin/ Then put your NVIDIA driver (only the newest version please) into ~/Downloads/ (or change the path above). Now run your script.

Attention: Save all your work, since kdm will be stopped! You’ll lose all unsaved work!


Want to comment? Send me an email!

Published on February 09, 2008.