Mittwoch, 12. Mai 2010

nVidia 195.36.24 on Ubuntu 10.04 Lucid Lynx

Ubuntu 10.04 is running Nouveau driver as default for nVidia-GPUs. If you need vdpau for Video-Encoding you have to install nVidias proprietary Driver.

Uninstall Noveau

sudo apt-get remove nvidia*
apt-get remove xserver-xorg-video-nouveau
Add this lines to /etc/modprobe.d/blacklist.conf
blacklist nouveau
blacklist nvidiafb

Install driver from Packet Source

Install nVidia driver from Ubuntu repository to later upgrade it to the latest Version. I know it's not a clean way, but after hours of trying this is a working.
apt-get install libvdpau-dev libvdpau1 nvidia-kernel-common nvidia-185-modaliases nvidia-glx-185 nvidia-settings
Download the latest driver from nVidia Support and extract them
wget http://de.download.nvidia.com/XFree86/Linux-x86_64/195.36.24/NVIDIA-Linux-x86_64-195.36.24-pkg2.run
chmod a+x NVIDIA-Linux-x86_64-195.36.24-pkg2.run
./NVIDIA-Linux-x86_64-195.36.24-pkg2.run -x
You will also need your kernel headers. Download them if you haven't done yet.
apt-get install linux-headers-`uname -r`
ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux
You cannot install the nVidia drivers while X is running.
ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
Let's switch the runlevel to kill X. The bootsplashscreen made some trouble for me so you'd better switch it off first and reboot.
Open /boot/grub/grub.cfg and find your first menuentry. In my case:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set ba89659b-be12-4e7e-b075-5a5ffc80e65f
        linux   /vmlinuz-2.6.32-22-generic root=/dev/mapper/MAG-root ro   quiet splash
        initrd  /initrd.img-2.6.32-22-generic
}
remove "quiet splash", safe the file and reboot.
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set ba89659b-be12-4e7e-b075-5a5ffc80e65f
        linux   /vmlinuz-2.6.32-22-generic root=/dev/mapper/MAG-root ro 
        initrd  /initrd.img-2.6.32-22-generic
}
Now you can open TTY1 by pressing [Ctrl] + [Alt] + [F1], login as root (or use sudo) and execute
init 1
Select "drop to a root shell" (you do not need networking). The nVidia installer doesn't like the single mode, so now go to
init 3
Now run NVIDIA-Linux-x86_64-195.36.24-pkg2.run! If you use 64bit, please see 32bit OpenGL Modules to fix.
./NVIDIA-Linux-x86_64-195.36.24-pkg2/nvidia-installer


32bit OpenGL Modules

Warning: Unable to perform the runtime configuration check for 32-bit library 'libGL.so.1' ('/usr/lib32/libGL.so.195.36.24'); this is typically caused by the lack of a 32-bit compatibility environment. Assuming successful installation.
sudo apt-get install ia32-libs linux32 lib32asound2

2 Kommentare:

  1. Sadly I cannot install the linux-headers-2.6.34-14-generic and am therefore left to temporary live without proper graphics driver. I'm on Ubuntu 1004 here, but am using the Kernel from ppa:suraia/ppa.

    AntwortenLöschen
  2. Henrik Hellström31. Oktober 2011 um 12:01

    After failing for a couple of hours, this guide made it work in five minutes. Great work! Thanks a bunch!

    AntwortenLöschen