I can't install cuda 7 on ubuntu 14.04 on a dedicated server

Hi,

I have a GPU server rented on rapidswitch.com

Intel i7
32GB RAM
480GB SSD
2 graphic cards:

  • Nvidia 750Ti
  • on board (would be IntelA? HD Graphics 4600)
    ubuntu server 14.04 x64

They have turned off the on board VGA.

After that, I entered via ssh and installed cuda-7 and 346 drivers

sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb
sudo apt-get update
sudo apt-get install cuda

Then I run VNC server and started a new remmote session.

I go to Applications > System tools > Administration > NVIDIA X Server Settings

And it says: “You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server”

I close de VNC session, and do it:

sudo killall Xvnc4
sudo lightdm stop
sudo nvidia-xconfig

Using X configuration file: “/etc/X11/xorg.conf”.
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’

sudo lightdm start

vncserver :7 -depth 24 -localhost

But the problem remains: “You do not appear to be using the NVIDIA X driver…”

Any help or advice will be welcomed.

Thanks

I have set related variables via /etc/environment

CUDA_HOME=/usr/local/cuda-6.5
LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64
PATH=“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/anaconda/bin:/usr/local/cuda-6.5/bin”

Not that it matters, but if you installed CUDA 7:

After that, I entered via ssh and installed cuda-7 and 346 drivers

> sudo dpkg -i cuda-repo-ubuntu1404_7.0-28_amd64.deb

There would be no reason to set all your environment variables as if you had CUDA 6.5:

I have set related variables via /etc/environment

CUDA_HOME=/usr/local/cuda-6.5

Anyway, the X-server thing is probably an interaction with the use of VNC. The setup steps you have shown are probably not enough to properly establish a remote desktop that is GPU-X-accelerated.

If you want to verify the CUDA installation, try running nvidia-smi and also try running one or more CUDA samples, as discussed in the linux getting started guide:

http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/index.html#abstract

Thanks for your response.

The cat /etc/environment was ok (sorry, i copied to the message the content of the former intent)

CUDA_HOME=/usr/local/cuda-7.0 
LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/anaconda/bin:/usr/local/cuda-7.0/bin"

nvidia-smi said:

Tue Jun 16 17:44:06 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 346.46     Driver Version: 346.46         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 750 Ti  Off  | 0000:01:00.0     N/A |                  N/A |
| 40%   31C    P0    N/A /  N/A |      7MiB /  2047MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0            C+G   Not Supported                                         |
+-----------------------------------------------------------------------------+

Thanks txbob!