Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm just newbie with Ubuntu/Linux. Actually I am attempting to install Pyrit which requires GPU acceleration.

I have dual-booted Ubuntu 13.04 and Windows 7 in my Desktop PC Gigabyte G31M-ES2C with:

  • Processor: Intel Core 2 Duo
  • RAM: 4.00 GB
  • Graphics:
    • Integrated Intel Graphics
    • Nvidia GT 520 (I think with Optimus)

I have tried many times to install CUDA but unsuccessfully. Can someone explain to me how to install it with details?

I've heard about Bumblebee, which might help me with an Optimus card. How can I make use of it? I've heard I have to uninstall Nouveau first.

When I tried with Bumblebee everything seemed perfect except the following error appears:

optirun glxgears -info
  ERROR-Bumblebee daemon has not been started yet or the socket path /var/<...>
  ERROR-Could not connect to bumblebee daemon - is it running?

I need a way to install Pyrit or just CUDA, any help is appreciated.

share|improve this question
    
Please take it easy on us: there is no need for ALL UPPERCASE, no need for big bold parts. –  guntbert Jun 21 '13 at 17:42
    
@guntbert big bold parts don't happen by intention - if you type: #include <stdio.h> - this is getting big too ?! –  dschinn1001 Jun 21 '13 at 21:32
    
@dschinn1001 true, but it is easy to format it correctly - but I am too tired to edit the complete post :-) –  guntbert Jun 21 '13 at 21:45
    
@guntbert and people says I'm creepy for checking out the preview... :/ –  Braiam Aug 2 '13 at 2:02

2 Answers 2

I've found this relatively simple approach for installing CUDA in Ubuntu. Unfortunately, the page seems to be incomplete and outdated (12.04).

https://help.ubuntu.com/community/Cuda

Also, I've found this easy script

http://ammar.gr/?p=701

Which namely only works for 12.04, but according to Jiří Doubravský, it also works on 12.10 and 13.04.

share|improve this answer

This description is working with hybrid-cards of nvidia, who contains CUDA chipset (additionally in some cases with 'Optimus'-feature) like those with letter 'M' as graphics-cards for notebooks.

no question - linux-headers have to be installed first suiting to your installed kernel.

in case of hybrid-chipsets like CUDA with Optimus this following package might NOT work entirely :

NVIDIA-Linux-x86_64-310.51.run

you instead should try this package:

NVIDIA_CUDA_SDK_1.1_Beta_Linux.run

You can download it here:

http://www.nvidia.de/object/cuda_1_1_beta.html

In this example the 1 year old graphics hypbrid chipset with GeForce 540M CUDA Optimus (notebooks) - CUDA_SDK_1.1_Beta is working quite good ...

On desktop in terminal one first needs to do:

export PATH=${PATH}:/usr/local/cuda/bin

and on 32-bit-machines this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-current:/usr/lib32/nvidia- current

but on 64-bit-machines this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib:/usr/local/cuda/lib64

I have kernel 3.9.0 and after:

Strg-Alt-F1 (use Ctrl instead of Strg on most non-German keyboards)

apt-get update

then it depends on your system what works better:

either this package for 32-bit:

apt-get install nvidia-current

or either this package for 64-bit:

apt-get install nvidia-current-updates

(never mix these both packages !)

I simply went out of x:0 with looking for x-window processes (gdm, lightdm, xdm, kdm and else ... ) with top and then ended all concerning x:0-processes with killing them manually:

(in protected mode resp. Strg-Alt-F1)

kill -9 PID number-of-PID

( this works more explicitly than xdm stop, gdm stop or kdm stop resp. lightdm stop and commands like init or telinit are not to recommend here in 12.10 - I write this here, because in many tutorials regarding nvidia these stopping commands are always told )

Then finally I simply ran off that package:

./NVIDIA_CUDA_SDK_1.1_Beta_Linux.run

when finish do not forget then:

 gdm start
 kdm start
 lightdm start

following is necessary in case of geforce-cards with cuda-optimus:

back to desktop with:

Strg-Alt-F7

there type into terminal

sudo add-apt repository ppa:bumblebee/stable

sudo apt-get update

sudo apt-get install --reinstall bumblebee virtualgl linux-headers-generic

(otherwise installation of cuda-sdk-package has no effect)

sudo reboot

now you should have wobbly graphics best working with compiz and cairo-dock and icon-fusion !!!

(remark: later after installing kernel 3.10 - Nvidia-driver CUDA-SDK-1.1 was accepted by 3.10 without further problems)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.