星期二, 6月 01, 2010

Ubuntu 10.04 與 CUDA

sudo apt-get install gcc-4.3 g++-4.3
SIMPLE Change = sudo update-alternatives --config gcc
1. Download the latest Driver Ver. From NVIDIA
## 確認完全DELETE nv driver
2. sudo apt-get purge nvidia-*
3. sudo nano /etc/modprobe.d/nvidia-graphics-drivers.conf
blacklist vga16fb
blacklist nouveau
blacklist lbm-nouveau
blacklist nvidia-173
blacklist nvidia-96
blacklist nvidia-current
blacklist nvidiafb

4. sudo nano /etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
5. reboot

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

i was in the same situation as denali. after researching a little, this method let me install nvidia drivers. I hope it can help some of you


sudo nano /etc/modprobe.d/blacklist.conf

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

(remember last space)

sudo gdm-stop
sudo apt-get --purge remove nvidia-*

RESTART

(after this ubuntu boots with some graphical errors like white lines and incorrect resolution)

sudo gdm-stop
sudo apt-get --purge remove xserver-xorg-video-nouveau

RESTART

(after this, ubuntu boots with no graphical errors BUT CANT GET INTO TERMINAL with gdm stopped so cant install nvidia drivers)

So heres the tricky part

sudo nano /etc/modprobe.d/blacklist-framebuffer.conf

and you need to comment 'blacklist vesafb' and add 'blacklist vgafb16' (both without quotes)

sudo nano /etc/initramfs-tools/modules

and add 'fbcon' and 'vesafb' (dont forget last space)

sudo update-initramfs -u

sudo nano /etc/default/grub

search for 'GRUB_CMDLINE_LINUX=' and ADD (dont delete) vga=771 or 795 (according to your resolution)

sudo update-grub

RESTART

sudo gdm-stop

now can enter terminal and install NVIDIA drivers. and they will install without errors.

沒有留言: