Wednesday, May 7, 2008

Geting And Installing the drivers for your Graphics Card In Ubuntu

Many people have problems with the drivers provided by the default ubuntu installation. This problem occurs specially in ubuntu as it believes in the real “Open Source” philosophy and doesnot include any closed source drivers in the distro.

The cards with usual problems are:

  1. ATI

  2. Nvidia


Intel cards usually work out of the box.


Now to find the cardthat you have, type the following in the terminal:


lspci | grep -i graph


Now check the presence of NVIDIA or ATI in the output


NVIDIA is present:

  • Get the driver binary from nvidia.com

  • Say it is “Nvidia-Linux-{architecture)-{version_number}.run”

  • Save it to desktop

  • Add the 8.04 CD to the Synaptic repository (Go to Adding The Repositories Section that explains repositories for guidance)

  • Install the build-essential package by executing the following in the terminal:


sudo apt-get install build-essential


  • Go to the virtual terminal by CTRL+ALT+F1

  • Login

  • Stop Gnome Display Manager by typing:


sudo /etc/init.d/gdm stop


  • Go to the desktop by:


cd Desktop


  • Execute the installer by:


sh NVIDIA*.run


  • Go thru the normal instructions, keeping your eyes open at all times.

  • After the install completes, start the Display Manager by :


sudo /etc/init.d/gdm start


  • Get back to the graphic terminal by CTRL+ALT+F7

Assuming that you din't goof up, you are done!!!


ATI is present:

  • Here you need to install XGL ( AFAIK AIGLX works, but it dint work for me... so goin with the general way)

  • Enable all repository components (See the Configuring Repositories post for a how to) .... and refresh the database.

  • Install XGL by executing:


sudo apt-get install xserver-xgl


  • Restart the X-Server by CTRL-ALT-BKSPC

  • Hopefully your work is done!!!

No comments: