[SIZE=“5”][CENTER]Howto Install NVidia drivers In Debian or Ubuntu
-aka-
Getting 3D in Debian or Ubuntu with NVidia[/CENTER][/SIZE]
Installing the proprietary NVidia drivers in Debian (or Ubuntu, a Debian spin-off) is surprisingly easy. Not as easy as they’d be if they were open-source, but I digress… ![]()
[CENTER][COLOR=“DarkRed”]
[SIZE=“5”]STOP! This thread is outdated and is here for historical purposes only. Please read the bottom of this post under the heading “EDIT”.[/SIZE][/CENTER]
[SIZE=“4”]Requirements:[/SIZE]
[ul]
[li]Your kernel headers must matched your installed kernel. If you roll your own kernels, this is already handled. Otherwise, use the command: uname -a…to identify your running kernel, and use your package manager to install the corresponding kernel header package.[/li][li]Make sure the build-essential meta package is installed, which allows the drivers to compile in the first place.[/li]apt-get install build-essential
[li]If you do build your own kernels, leave out the Riva FB drivers, and do build the appropriate AGPart module if you have an AGP architecture.[/li][/ul]
[SIZE=“4”]Steps to install:[/SIZE]
[ol]
[li]Download NVidia’s Linux drivers and save them someplace where you’ll remember them later.[/li][li]Save anything you’re working on and log out of your desktop session.[/li][li]Go to a virtual terminal (ALT+CTRL+F1)[/li][li]Login as root [SIZE=“1”][COLOR=“Gray”]Note: In Ubuntu, you are already root… sort of. Yes, I know, this is dumb. To get full root in Ubuntu, run the following command: sudo su -[/SIZE][/li][li]Terminate your graphical user environment. There are a few ways to do this; the easiest is to /etc/init.d/kdm stop if you’re using the KDE display manager, /etc/init.d/gdm stop if you’re running the Gnome display manager, or if you’re using the X display manager:/etc/init.d/xdm stop[/li][li]Navigate to the directory where you downloaded your drivers earlier.[SIZE=“1”][COLOR=“Gray”] Note: If you don’t know how to do this part, you need to first go over the absolute basics: Absolute basics …you can always post here if you need help with something specific, but please at least read that first if you’re having trouble navigating in a non-graphical environment.[/SIZE][/li][li]Install the NVidia drivers with the following command: sh NVIDIA-Linux-x86-1.0-9629-pkg1.run --x-module-path=/usr/lib/xorg/modules/ -aqNX…where “NVIDIA-Linux-x86-1.0-9629-pkg1.run” should be the actual name of the NVidia driver you’re trying to install. [SIZE=“1”][COLOR=“Gray”]Tip: You can start typing the name of the file, then hit the TAB key and your system will automatically complete the filename for you. That makes it a lot easier to type long filenames without making typos.[/SIZE][/li][li]Once you’ve got the new drivers installed, just start your display manager back up and logout of your virtual terminal. Here are the commands to do so with KDM, GDM and XDM respectively:[/li]/etc/init.d/kdm start && exit
/etc/init.d/gdm start && exit
/etc/init.d/xdm start && exit
[li]To test your new 3D Drivers, log back in to a desktop session and run the following command in a terminal: glxinfo | grep render[COLOR=“Gray”][SIZE=“1”]Note: the “|” is a pipe symbol, not an “i” or an “L”. [/SIZE] You should see something similar to the following: direct rendering: [B]Yes[/B][/li]OpenGL renderer string: GeForce 6800 GT/AGP/SSE/3DNOW!
GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
…If “Direct Rendering” reads as “yes”, congratulations! If not, feel free to post here, and we’ll see what we can do to help you out.
[/ol]
[COLOR=“DarkRed”][SIZE=“7”]EDIT[/SIZE]
OK, this thread is completely obsolete! For Debian users, I recommend avoiding my silly little script and instead using the excellent sgfxi, which will automatically download and install the ideal graphics drivers for your NVidia or ATI video card. To install it, simply do the following as root:
cd /usr/local/bin;wget -Nc smxi.org/sgfxi;chmod +x sgfxi
To execute the script, simply drop to a VT and run the command ‘sgfxi’ as root.
Or if you prefer to be able to install the drivers with a normal user account, you could do something like this:
:~# visudo[/code] ...and add a line like this:[code]%video ALL=/usr/local/bin/sgfxi[/code]Then you'd be able to install the drivers by dropping to a VT, then running [code]sudo sgfxi
[SIZE=“1”]NOTE: This script is for real Debian distros only, not for Ubuntu. If Ubuntu users don’t like their distro’s way of packaging drivers, I’ve heard good things about the Envy script.[/SIZE]

