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'd like to install the latest and greatest straight from NVIDIA, but I get an error message saying I need to log out of an X environment or something. Obviously using the default drivers doesn't deliver the best results.

What exactly can I do to install the latest drivers? If it matters, I have a 2GB GeForce GTX 660 Ti.

share|improve this question
Can you check on that "X environment", so that we can see what it is? – Frederik Popp May 4 '13 at 20:24

Before install driver, first close desktop manager:

sudo service lightdm stop

For install propretary nvidia driver, follow this step:

1) download driver from: (select correct gpu, operating system and architecture (32 o 64 bit))

2) required: linux headers (if not installed) and other stuff:

sudo apt-get install build-essential linux-headers-`uname -r`

3) ctrl+alt+F4 (or another tty) and login.

4) install driver.

sudo sh <script NVIDIA>

Installer will configure and build module for your kernel. If anything ok, you must be able to restart your desktop manager with nvidia driver. (nvidia installer write xorg.conf: check correct configuration.)

5) restart desktop manager:

sudo service lightdm start

check if module was mounted on kernel:

lsmod | grep nvidia

N.B. Possible issue:

gcc version are different between driver and installed copy of gcc

Read /var/log/Xorg.0.log for error, if xserver fail during startup.

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.