Code SnippetsReinstall Nvidia Driver Syndicate content

Sat, 02/09/2008 - 03:41

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.

  1. #!/bin/bash
  2. sudo /etc/init.d/kdm stop
  3. sudo chvt 1
  4. sudo sh ~/Downloads/NVIDIA-Linux-x86-*.run --ui='none' -aNq
  5. sudo /etc/init.d/kdm start
  6. 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!


Post new comment

  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options