I installed the CUDA-7.5 toolkit on Ubuntu 14.04 virtualbox, even though I did not have nvidia graphics card or an nvidia GPU (did this to get comfortable with the cuda environ on my system, before running it on an amazon GPU instance).
But it messed up my ubuntu virtualbox login screen - the login screen loops back to itself, and the ~/.xsession-errors says:
Xlib: extension “GLX” missing on display “:0”
Now, I want to uninstall what I did - first try uninstalling nvidia driver alone, and then the complete cuda toolkit if that doesn’t work.
To uninstall the CUDA Toolkit, run the uninstallation script provided in the bin directory of the toolkit. By default, it is located in /usr/local/cuda-7.0/bin:
$ sudo /usr/local/cuda-7.0/bin/uninstall_cuda_7.0.pl
To uninstall the NVIDIA Driver, run nvidia-uninstall:
$ sudo /usr/bin/nvidia-uninstall
But I dont see those files in /usr/local/cuda-7.5/bin/ or in /usr/bin/
What should I do?
sudo apt-get remove --purge nvidia-*
to remove all nvidia drivers and libraries, an I am left with just libcuda1-352 (a cuda runtime lib), when I run
dpkg -l | grep -i nvidia
. And, more importantly, I can now log back in to my X session.
My question now: Can I use this libcuda1-352 to compile a CPU-only C/C++ code through NVCC?