Saturday, April 16, 2016

drivers - Setting up fresh Ubuntu install for programming assignment - Nvidia, CUDA, NSight

I have been having a tough time setting up an environment to run a specific software in and it has come down to getting a fresh HDD to install linux on. I am trying to modify a software called Cura specifically the CuraEngine. It was developed under linux and has dependencies that I could not fulfil on windows (from what I understand). So I am specifically installing a linux based system. I then need to install CUDA; I have a Nvidia 750Ti installed in the machine. I plan to write some kernels to accelerate the 3DModel -> G-code generation process for the project.


I have tried quite a few times now to get this working but the process always breaks down after I install the nvidia drivers. I have been using the method described here to install along with trying from the CUDA toolkit download. For the second method I have had to shutdown lightdm and run the .run from the command line to get the drivers installed. All attempts have been from fresh installs of Ubuntu also.


Each attempt results in the driver being installed (from what I can tell, no errors upon install), but upon restarting the computer and a login the background of the desktop and the mouse appear but nothing else, I can Ctrl+Alt+F1 to a terminal. Worth noting right now maybe, that before the drivers are installed the shortcut Ctrl+Alt+F1 displays a black screen but after the install and a reboot it works though I can't login properly. So I assume the driver has been installed and is running but I am not sure how to check properly. I ran the command in step 5 of the install guide I'm using but my machine did not display the desired result of "Kernel driver in use: Nvidia".


To try and fix this issue I tried to use sudo apt-get purge nvidia-current and rebooted but still couldn't login. I also tried unity --replace and received errors pertaining to an "OpenGL module".


I currently am now at the point of an install seen below, also under "System -> Software & Updates -> Addditional Drivers" it shows no additional drivers.
enter image description here


Now this is the point at the install that I would restart and try to log back in and see if NSight Eclipse would recognize my GPU as a CUDA enabled device. But I am afraid I will not be able to log back in as usual.


In there something I can do right now that would be easier than essentially blocking myself out? Why am I being blocked out? What should my next steps be?


EDIT: Because I can use Ctrl+Alt+F1 to get to a terminal I also managed to install ccsm and set the unity plugin to installed, which failed to solve the problem. But as I tried to find the link I used I found this link and it looks like it might solve the problem of seeing the desktop. I am going to try it.


I also just realized that I can probably re-run the test in step 5 of manual linked above to check if the driver installed worked after the reboot.


EDIT2: Running the command dconf reset -f /org/compiz/ from the first edit displays an error from "Cannot autolaunch D-Bus without X11 $DISPLAY". As for the tests from the 5th step. On the first the output from the lspci -vnn | grep -i VGA -A 12 is too long and I am not sure how to scroll up I'm a newb. For the second glxinfo | grep OpenGL | grep render returns an error "Unable to open display".


I am not sure what the command specifically does but I have seen it in some of the links today export DISPLAY=:0. I ran this and then ran the dconf reset -f /org/compiz/ successfully but setsid unity errors saying "Plugin opengl not loaded, Plugin init failed: unityshell" ... " Compiz (opengl) - Fatal: glxQueryExtensionString is NULL for screen 0".

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...