

You should be able to login to your session through the GUI without any problems or login-loops.ġ4) Create CUDA Samples. At this point you can switch the lightdm back on again by doing: $sudo service lightdm start $export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATHġ2) Verify the driver version: $cat /proc/driver/nvidia/version If they don’t, do : $sudo modprobe nvidiaġ1) Set Environment path variables: $export PATH=/usr/local/cuda-7.0/bin:$PATH Now check if device nodes are present:Ĭheck if /dev/nvidia* files exist. Say YES to installing CUDA Toolkit + Driverġ0) Installation should be complete. Notice to turn OpenGL flags off when install (IMPORTANT): $sudo bash cuda-7.0.28_n -no-opengl-libs The top line is a necessary step for installing the driver, it turns off the X window and prevents driver conflicts.Ĩ) Run the CUDA driver run file. Once there type: Ctrl + Alt + F1, and login to your user.ĥ) Go to the directory where you have the CUDA driver, and run $chmod +x cuda_7.0.28_n Nothing should have changed in loading up menu. $sudo rm /etc/X11/nfģ) Create the /etc/modprobe.d/nf file with : blacklist nouveau options nouveau modeset=0Ĥ) Reboot computer.

If you have one, remove it (assuming you have a fresh OS install).

ps: I have a GT 610 for display, Quadro K4200 for CUDA computing.Ġ) Download relevant n file: mine was: cuda_7.0.28_n (cuda_7.5.18_n has hard time of finding my kernel source file, don’t know why)Īlso run: $sudo apt-get remove -purge nvidia-* & apt-get autoremoveġ) start off with the regular GUI and Ubuntu working with no login problems.Ģ) No need to create an nf file. Finally, here is the one solution for me. There are multiple tutorials and guidelines available on internet but most of them didn’t works for my case and it actually causes me a lots of trouble of rebooting and reinstalling various packages and kernels. I was struggling for almost two days to try to figure out how to do it nicely and properly. I installed the CUDA toolkit 7.0 by following nVidia’s official website, however it ended up to be an infinite login loop error. The CUDA package is shipped with its own driver which seems to cause lots of trouble after replacing the default Linux driver. Apparently it is not an easy task to install nVidia graphic card driver and CUDA toolkit on Ubuntu Linux system.
