2011年4月24日 星期日

cuda on ubuntu

* Please make sure your PATH includes /usr/local/cuda/bin
* Please make sure your LD_LIBRARY_PATH
* for 32-bit Linux distributions includes /usr/local/cuda/lib
* for 64-bit Linux distributions includes /usr/local/cuda/lib64:/usr/local/cuda/lib
* OR
* for 32-bit Linux distributions add /usr/local/cuda/lib
* for 64-bit Linux distributions add /usr/local/cuda/lib64 and /usr/local/cuda/lib
* to /etc/ld.so.conf and run ldconfig as root

* Please read the release notes in /usr/local/cuda/doc/

* To uninstall CUDA, delete /usr/local/cuda
* Installation Complete

2011年4月21日 星期四

[HOWTO] Install NVIDIA drivers manually on Lynx

Copy from
http://ubuntuforums.org/showthread.php?t=1467074

[HOWTO] Install NVIDIA drivers manually on Lynx

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

Well, i am one of those users who never install Nvidia drivers from repository, but manually - by downloading from Nvidia`s website. It was never a pain in the rear on previous Linux distros (including Karmic), but i failed to do so on Lynx. Whenever i tried to install it, i got an error:
Code:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.I read somewhere that they changed the way nvidia drivers get installed on Lynx (correct me if i`m wrong), so it took me some time to figure out how to do that. So, here is the guide:


1) Download Newest Nvidia drivers from their website
2) Open module blacklist as admin: (i use gedit for text file editing)
Code:
sudo gedit /etc/modprobe.d/blacklist.conf3) Add these lines and save:

Code:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv4) Uninstall any previously installed Nvidia drivers:

Code:
sudo apt-get --purge remove nvidia-*5) Reboot your computer
6) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)
7) Login and cd to the directory where you saved your file
Install drivers
Code:
sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run9) Start GDM
Code:
sudo service gdm startEnjoy

P.S. if you are having trouble with my method, there is an updated one, posted by trespuntos - maybe it will solve your problem.

--------------------------------------------------------------------------------
Last edited by AndyBoy_LV; May 3rd, 2010 at 08:41 AM..