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 am trying to install and run some CUDA exemples in Ubuntu 12.04. First of all, I downloaded all .run files from http://developer.nvidia.com/cuda-downloads, then followed the instructions at http://developer.nvidia.com/nvidia-gpu-computing-, until I got hung up on the first step:

  1. Exit the GUI if you are in a GUI environment by pressing Ctrl-Alt-Backspace. Some distributions require you to press this sequence twice in a row; others have disabled it altogether in favor of a command such as sudo /etc/init.d/gdm stop . Still others require changing the system runlevel using a command such as /sbin/init 3 to exit the GUI.

When I type the command sudo /etc/init.d/gdmstop, it returns: gdm command not found

Can anybody help me exit my GUI in order to continue?

Thank you in advance.

share|improve this question

1 Answer 1

I had similar problems when installing in 11.10 (I don't know if 12.04 is supported).

To exit the GUI, use sudo service lightdm stop (Ubuntu now uses lightdm instead of gdm).

Once you have exited the GUI, and before you run the install script, make sure to completely unload nVidia's kernel module. To do this, I used "dkms", but I don't remember the commands used.

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.