LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu 6.06 direct rendering nvidia driver installation (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-6-06-direct-rendering-nvidia-driver-installation-461088/)

BlinDlucK 07-05-2006 01:11 AM

Ubuntu 6.06 direct rendering nvidia driver installation
 
After a couple of years of downtime with linux I've decided to mess with it again. I'm quasi familiar with the workings and what not but I need a little help getting direct rendering enabled.

Specs:
Asus A7V600-X mobo
Nvidia 6800
Athlon XP 2200+

I followed this guide on how to install nvidia drivers... but it's from last year.

Here's a snippet:
Quote:

Before you start you have to make sure the following things are installed (see points "a","b","c"). If not, you can install them following these steps:

Open either Terminal or Konsole and type:

uname -r (this will tell you the name and version of the kernel you are using)

Open either Synaptic or Kynaptic

a) press the "Search" button and put "header" in the search field

you will see a list of files, find "linux-headers-the name you got from uname -r"

for example if your kernel is "2.6.10-5-386", the headers will be "linux-headers-2.6.10-5-386"

click on the files and select "Mark for installation"

b) press the "Search" button and put "linux-source" in the search field

you will see a list of files, find "linux-source-the name you got from uname -r"

click on the file and select "Mark for installation"

c) press the "Search" button and put "build-essential" in the search field

click on the file and select "Mark for installation"


d) Press the "Apply" button.

You can close Synaptic (or Kynaptic) after it has finished installing the headers.


Ok, now let's begin:

1) uninstall nvidia-glx (if you don't have it just go to step 2)

2) remove the file manually:
sudo rm /etc/init.d/nvidia-glx

3) sudo apt-get install gcc (just in case)

ctl-alt-f1 (so as to get to the command line, not a windowed terminal, but out of the graphical interface GUI)

login with your username and password (if required)

sudo /etc/init.d/gdm stop (or "kdm stop" if you use KDE)

cd “directory where you have the nvidia installer”

If you have Ubuntu 64bit type: **
sudo sh NVIDIA-Linux-x86_64-1.0-7667-pkg2.run

Otherwise if you have Ubuntu 32 bit type:
sudo sh NVIDIA-Linux-x86-1.0-7667-pkg2.run

If you have Ubuntu 64bit you can't install OpenGL32bit compatibility libraries, so when the installer asks whether to install it just answer no OR you may want to try a workaround which Draugen found but which I haven't tried myself (look at the PROBLEMS SECTION at the end of the guide: point 5).

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

sudo nano /etc/X11/xorg.conf
scroll the file down until you find the line with “Modules” and comment out (by putting a "#" before the line) the 2 lines I put in blue and add Load "glx". It should look like the example below:


Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
#Load "dri"
#Load “GLcore”
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"

Then find the section Device and make sure the word I put in red is “nvidia”:

Section "Device"
Identifier "NVIDIA Corporation NV40 [GeForce 6200 TurboCache]"
Driver "nvidia"
BusID "PCI:1:0:0"


CTRL+O to save (yes, use the same name and overwrite the file)
CTRL+X to exit

sudo /etc/init.d/gdm start (or "kdm start" if you use KDE)

Now you have installed the new nvidia driver.

Here is what my X11.conf looks like:
Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Mon May 15 13:23:42 PDT 2006

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#  sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "Files"

        # path to defoma fonts
    FontPath        "/usr/share/X11/fonts/misc"
    FontPath        "/usr/share/X11/fonts/cyrillic"
    FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/Type1"
    FontPath        "/usr/share/X11/fonts/100dpi"
    FontPath        "/usr/share/X11/fonts/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load          "i2c"
    Load          "bitmap"
    Load          "ddc"
    Load          "extmod"
    Load          "freetype"
  # Load          "glx"
    Load          "int10"
    Load          "type1"
    Load          "vbe"
    Load          "glx"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc104"
    Option        "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device" "/dev/input/mice"
    Option        "Protocol" "ExplorerPS/2"
    Option        "ZAxisMapping" "4 5"
    Option        "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "stylus"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "stylus"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "eraser"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "eraser"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier    "cursor"
    Driver        "wacom"
    Option        "Device" "/dev/wacom"          # Change to
    Option        "Type" "cursor"
    Option        "ForceDevice" "ISDV4"              # Tablet PC ONLY
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    HorizSync      28.0 - 51.0
    VertRefresh    43.0 - 60.0
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "NVIDIA Corporation NV40 [GeForce 6800]"
    Driver        "nvidia"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "NVIDIA Corporation NV40 [GeForce 6800]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    SubSection    "Display"
        Depth      1
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      4
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      8
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      15
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      16
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection    "Display"
        Depth      24
        Modes      "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

I'm not sure what I'm doing wrong. And would realllly appreciate any help, I'd like to be able to use a fully functional distro.

Thanks!


**edit - wow. Nevermind... before posting this thread all I did was:
Code:

sudo apt-get install nvidia-glx nvidia-kernel-common
Then I looked at my xconf and realize that I wasn't using vesa (I had previously changed "driver" "nvidia" to "diver" "vesa" in order to get back into X and I realized that I was actually using the nvidia driver but still had "load glx" commented out".

I just went back and uncommented it and everything is working fine.

I guess I'll leave this thread up because it contains everything you really need in order to get the nvidia drivers installed. the only part missing was the
Code:

sudo apt-get install nvidia-glx nvidia-kernel-common

Now how do I get the control panel enabled so I can see temperatures and whatnot?

BlinDlucK 07-05-2006 01:46 AM

Ok I guess I type:
Code:

sudo nvidia-settings
into the terminal... How can I create a link or a shortcut to this somewhere?


All times are GMT -5. The time now is 05:10 PM.