Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install and run some CUDA exemples in Ubuntu 12.04. First of all, I downloaded all .run files from, then followed the instructions at, 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

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


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.