How to install Nvidia driver in Ubuntu 12.10

Updated: 11-Apr-2013 09:58am HKT
N.B.: Don’t install nvidia-current official package to prevent errors or malfunction of X window.

I just built my most powerful PC ever for studying. As it’s running Ubuntu 12.10 with a Nvidia graphic card, GT610 chipset. I got a little bit problem when upgrading the display card driver to Nvidia official 310.40. The following error message will be shown when execute the file directly.

nvidia 310.40 error 1

 

nvidia 310.40 error 2

The error message redirects users by referring the readme section, however there is no step-by-step guide or explain the solution in detail. Below is the step-by-step guide for those people using Ubuntu for installing Nvidia driver version 310.40 or later.

  1. Download the Linux driver in Nvidia official website. Please select the correct platform of your system, 32-bit or 64-bit.
  2. Edit /etc/default/grub and reboot the PC to text mode
    • sudo vi /etc/default/grub
    • change the boot parameter from

      GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

      to

      GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash text”

    • update grub settings

      update-grub2

    • reboot the PC to text mode
  3. Login the PC by using any user account
  4. Go to the driver location and run it directly

    sudo sh xxx.run

  5. Follow the on-screen instruction. Choose backup existing X configuration and dkms support
  6. After completed, edit /etc/default/grub again and change it back to GUI mode
    • sudo vi /etc/default/grub
    • change the boot parameter from

      GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash text”

      to

      GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

    • update grub settings

      update-grub2

    • reboot the PC to GUI mode
  7. Login any user account, the Nvidia settings icon will be ready in the program list.

Please leave your comment on the topic