cmost wrote:I always compile my own nvidia driver, that way I can use the latest one. If I were you, I'd update to the latest nvidia 302.17 driver. You might as well update your kernel too, since later kernels have better hardware support. I've been using the latest Liquorix 3.4.x kernel and corresponding headers along with the latest nvidia driver and everything is creamy as butter on my amd64 rig. Here's how to do it.
First, go to here:
ftp://download.nvidia.com/XFree86/Linux-x86_64/ and fetch the latest nvidia driver. Save it to /home/username/nvidia/
Optionally, you can also download the latest nvidia-settings utility, grab it here:
ftp://download.nvidia.com/XFree86/nvidia-settings/NOTE: replace "username" in /home/username with YOUR actual username!Next, go to your terminal and enter this command to modify your Apt sources:
- Code: Select all
sudo gedit /etc/apt/sources.list
Copy and paste the following to the end of the file, save it.
- Code: Select all
## Liquorix Kernel - latest Debian Kernel
deb http://liquorix.net/debian sid main
deb http://liquorix.net/debian sid main future
Close Gedit, then back in your terminal, issue
- Code: Select all
sudo apt-get update
Now open Synaptic
- Code: Select all
sudo synaptic
Do a keyword search on "Linux image"
Mark the following packages for installation. Note: You can leave your existing kernel in place, but I would uninstall any proprietary nvidia drivers and also the xserver-xorg-video nouveau (this module will be disabled by the proprietary nvidia installer so leaving it isn't a big deal) and associated dependencies before you restart.
- Code: Select all
linux-headers-3.4.0-3.dmz.2-liquorix-amd64
linux-headers-liquorix-amd64
linux-image-3.4.0-4.dmz.2-liquorix-amd64
linux-image-liquorix-amd64
Note: These are the latest liquorix packages as of today's date! Pick the newest ones, they're updated regularly.
You will also need some compilation tools, so search for and mark (including dependencies):
- Code: Select all
make
gcc
gcc-4.6
gcc-4.6-base
build-essential
Click 'Apply' to install (and remove) any marked packages.
Next, reboot...your shiny new 3.4 Liquorix kernel is selected by default in Grub 2. If not, highlight it to boot the new kernel.
If you removed nouveau, you will not be able to start the X server. This is normal. If nouveau is still functional, you'll arrive at the login screen as usual. If X didn't start, cancel any attempt to trouble-shoot (we know why) and you should wind up at a command prompt. If you're at the login screen, type ALT+F1 to arrive at a command prompt. Login with your username and password.
If you arrived at a graphical login screen, you'll need to kill the xserver before proceeding with installing nvidia's proprietary driver.
- Code: Select all
sudo /etc/init.d/mdm stop
Now let's install the nvidia driver!
- Code: Select all
cd /home/username/nvidia
ls -l
sudo sh *302.17*.run
Accept the agreement, then follow the prompts. Make sure you install the 32 bit libs, don't let it modify your /etc/X11/xorg.conf file. If the nouveau module is still present, nvidia will attempt to disable it, which will require a reboot so you'll have to repeat the above steps to get back to this point.
Once the proprietary nvidia driver is installed, you can either reboot or simply issue this command:
- Code: Select all
sudo /etc/init.d/mdm restart
You should arrive at your normal graphical login screen!

Log into the system normally and you will have the latest and greatest kernel and nvidia drivers.
Now, if you want nvidia-settings, there are two ways to go about it. The quickest and easiest method is to simply install the older version from the package manager, but block any recommended packages. The older version works fine with the newer drivers. To do that, issue this command in a terminal
- Code: Select all
sudo apt-get install nvidia-settings --no-install-recommends
To compile the latest version from the downloaded file, follow these steps:
Using the file manager, navigate to /home/username/nvidia
Right-click on the 'nvidia-settings-302.17.tar.bz2' and extract it.
Next, go into the new 'nvidia-settings-3.2.17' folder
Right-click somewhere and choose 'Open in Terminal' to open a command prompt in this location. (Alternately, open the Terminal from a shortcut and then simply cd to /home/username/nvidia/nvidia-settings-3.2.17 to get there.)
Before we can do anything, we need a few dependencies. Issue this command:
- Code: Select all
sudo apt-get install libgtk2.0-dev libxv-dev libxxf86vm-dev m4
Now, there's one little fiddly thing we need to take care of on amd64 based systems before we build nvidia-settings.
In the terminal, type:
- Code: Select all
cd src/libXNVCtrl
make
cd ..
cd ..
Now, we can type
- Code: Select all
make
sudo make install
Note: the build will take some time - pay attention if it fails with any errors as you likely need a dependency. Once it builds successfully, type 'sudo make install' followed by your root password to install it.
Type the following to launch the utility
- Code: Select all
nvidia-settings
Enjoy!

I did all as you instructed for changing the Kernel to latest, although the new kernel image shows up in image list, I am not able to make it 'run' or boot with the new kernel, please help me with the exact command to do so, I tried what I guess could be! I am attaching the output below please check and help me, so that than I can proceed with Nvidia driver!
ashfaq@faizaff ~ $ uname -r
3.2.0-2-amd64
ashfaq@faizaff ~ $ su
Password:
faizaff ashfaq # apt-cache search linux-image
alsa-base - ALSA driver configuration files
linux-headers-3.2.0-2-amd64 - Header files for Linux 3.2.0-2-amd64
linux-headers-3.2.0-2-rt-amd64 - Header files for Linux 3.2.0-2-rt-amd64
linux-image-3.2.0-2-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-2-amd64-dbg - Debugging infos for Linux 3.2.0-2-amd64
linux-image-3.2.0-2-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-2-rt-amd64-dbg - Debugging infos for Linux 3.2.0-2-rt-amd64
linux-image-2.6-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-headers-3.4.0-7.dmz.1-liquorix-amd64 - Header files for Linux 3.4.0-7.dmz.1-liquorix-amd64
linux-image-3.4.0-7.dmz.1-liquorix-amd64 - Linux 3.4.0 for 64-bit PCs
linux-image-liquorix-amd64 - Linux image for liquorix on 64-bit PCs
faizaff ashfaq # apt-get install linux-image 3.4.0-7.dmz.1-liquorix-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-3.4.0-7.dmz.1-liquorix-amd64' for regex '3.4.0-7.dmz.1-liquorix-amd64'
Note, selecting 'linux-image-3.4.0-7.dmz.1-liquorix-amd64' for regex '3.4.0-7.dmz.1-liquorix-amd64'
Note, selecting 'linux-modules-3.4.0-7.dmz.1-liquorix-amd64' for regex '3.4.0-7.dmz.1-liquorix-amd64'
Note, selecting 'linux-image-3.4.0-7.dmz.1-liquorix-amd64' instead of 'linux-modules-3.4.0-7.dmz.1-liquorix-amd64'
Package linux-image is a virtual package provided by:
linux-image-3.4.0-7.dmz.1-liquorix-amd64 3.4.0-11
linux-image-3.2.0-2-rt-amd64 3.2.9-1
linux-image-3.2.0-2-amd64 3.2.9-1
You should explicitly select one to install.
E: Package 'linux-image' has no installation candidate
faizaff ashfaq # uname -r
3.2.0-2-amd64
faizaff ashfaq # apt-get install linux-image-3.4.0-7.dmz.1-liquorix-amd64 3.4.0-11
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package 3.4.0-11
E: Couldn't find any package by regex '3.4.0-11'
faizaff ashfaq # uname -r
3.2.0-2-amd64
faizaff ashfaq # apt-get install linux-image-3.4.0-7
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.4.0-7.dmz.1-liquorix-amd64' for regex 'linux-image-3.4.0-7'
linux-image-3.4.0-7.dmz.1-liquorix-amd64 is already the newest version.
linux-image-3.4.0-7.dmz.1-liquorix-amd64 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
faizaff ashfaq # uname -r
3.2.0-2-amd64
faizaff ashfaq #
I want to use this new image as my Kernel "linux-image-3.4.0-7.dmz.1-liquorix-amd64 - Linux 3.4.0 for 64-bit PCs" But my system still boots with "3.2.0-2-amd64" I am a newbee yes, and need your help, thanks in advance.