View Single Post
Old 15-11-2006, 03:49 AM   #1 (permalink) Top
Anti-Trend
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 536
Status: Offline

My Computer

Lightbulb Howto: Install NVidia drivers In Debian or Ubuntu

Howto Install NVidia drivers In Debian or Ubuntu
-aka-
Getting 3D in Debian or Ubuntu with NVidia


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...


STOP! Before proceeding, make sure to backup your xorg.conf! Ubuntu may break your xorg.conf, and it's always nice to have a point of reference.
Also, I've written a script to make this much easier for *ubuntu users.


Requirements:
  • Your kernel headers must matched your installed kernel. If you roll your own kernels, this is already handled. Otherwise, use the command:
    Code:
    uname -a
    ...to identify your running kernel, and use your package manager to install the corresponding kernel header package.
  • Make sure the build-essential meta package is installed, which allows the drivers to compile in the first place.
    Code:
    apt-get install build-essential
  • 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.

Steps to install:
  1. Download NVidia's Linux drivers and save them someplace where you'll remember them later.
  2. Save anything you're working on and log out of your desktop session.
  3. Go to a virtual terminal (ALT+CTRL+F1)
  4. Login as root 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:
    Code:
    sudo su -
  5. Terminate your graphical user environment. There are a few ways to do this; the easiest is to
    Code:
    /etc/init.d/kdm stop
    if you're using the KDE display manager,
    Code:
    /etc/init.d/gdm stop
    if you're running the Gnome display manager, or if you're using the X display manager:
    Code:
    /etc/init.d/xdm stop
  6. Navigate to the directory where you downloaded your drivers earlier. Note: If you don't know how to do this part, you need to first go over the absolute basics: http://anti-trend.homelinux.org/lite...ect_02_02.html ...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.
  7. Install the NVidia drivers with the following command:
    Code:
    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. 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.
  8. 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:
    Code:
    /etc/init.d/kdm start && exit
    Code:
    /etc/init.d/gdm start && exit
    Code:
    /etc/init.d/xdm start && exit
  9. To test your new 3D Drivers, log back in to a desktop session and run the following command in a terminal:
    Code:
    glxinfo | grep render
    Note: the "|" is a pipe symbol, not an "i" or an "L". You should see something similar to the following:
    Code:
    direct rendering: Yes
    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.

Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
The Following 3 Users Say Thank You to Anti-Trend For This Useful Post: Show me >>
Whats this? Ultra Flat Keyboard
Ultra Flat Keyboard
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Dell £18.98 Free £18.98 In Stock Rated: 0 out of 5 - Number of votes: 0
Misco.co.uk £7.95 £4.69 £12.64 In Stock Rated: 4 out of 5 - Number of votes: 1354
inkcartridgedirect.org.uk £5.78 £4.99 £10.77 In Stock Rated: 1 out of 5 - Number of votes: 1