1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How to get NVIDIA drivers installed on Ubuntu?

Discussion in 'Linux / BSD / Mac OS X' started by Yin, Feb 10, 2008.

  1. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    Hello TPU'ers

    I just attempted to install Ubuntu and Nvidia graphics drivers and I am running into a brick wall now.
    I got Ubuntu 7.10 installed and just before it starts up it prompts me with a msg saying it can't detect my video card and I have to run it in 800x600.

    So I searched around for a guide on how to do so and I came across this one.

    http://ubuntuforums.org/showthread.php?p=4119312

    I followed the instructions and after the reboot I still get the same msg and I try to install them again but as I run the Nvidia file

    sudo sh (driver name)

    the screen pops up and goes I've installed the drivers already.

    what should I do?

    Thanks
     
  2. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    press ctrl+alt+F1 or open a terminal.
    Then type
    Code:
     sudo dpkg-reconfigure xserver-xorg 
    to get a wizard to set your GUI up. Follow it. At one point it asks which drivers to use. Select it as nvidia. You have do all of this with the keyboard.
     
    Yin says thanks.
  3. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    Thanks I've just tried that and I'm gonna reboot see if it works
     
  4. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    I've just rebooted and I am still stuck on a 800x600 reso.

    Just curious about this when I go to
    Applications>Systems Tools>Nvidia X Server Settings
    a prompt comes up saying
    "You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run 'nvidia-xconfig' as root), restart the X server.

    So I opened a terminal and typed 'nvidia-xconfig'

    Using X configuration file: "/etc/X11/xorg.conf"

    ERROR: Unable to write to directory '/etc/X11'.
     
  5. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    x11 is owned by the root and only root has permission to write to it.
    To login as root restart the computer and while grub starts press esc to get the menu. Select recovery mode. when it starts it asks for username and password.
    The usrname is root and password would have been set by you while installing. If you have doubt about the password, go to user management and set the password for root.
    After you login (it will be a cui) type that command or start x to start the GUI.

    Alternatively(before trying the above method) type
    Code:
    sudo nvidia-xconfig
    remember that sudo is for running a command with root priviliges.
     
    Yin says thanks.
  6. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    oh so root is basically an admin user? and sudo is a command for that?

    okay I'll try that now
     
  7. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    Yup. Root is made so that one doesn't screw up the system. Ubuntu takes it to one step extra where it doesn't allow root and other super powers users to login from the main login screen. Oh and to restart only the x-server(GUI) ctrl+alt+bckspace does it.
     
    Yin says thanks.
  8. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    oh I was gonna say it didn't work but I didn't restart it
    So back to recovery mode and sudo nvidia-xconfig then ctrl+alt+backspace?

    I find this strange when I was installing Ubuntu it was working perfectly on 1280x1024 (live mode) but when I install it, i get this msg saying it can't detect my graphics card and monitor.
     
  9. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    shrugs still not working, maybe I should start from step 1 again =/
     
  10. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    With sudo you don't need recovery mode.
    Just open terminal and type sudo nvidia-xconfig
    then press ctrl+alt+backspace.
     
    Yin says thanks.
  11. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    $ glxinfo | grep direct

    try the above command and tell me the output.
     
    Yin says thanks.
  12. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
  13. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    Just try restarting once if it still doesn't work try
    sudo dpkg-reconfigure xserver-xorg
    again.
    You have to run the wizard totally. It even asks for your monitor settings.
     
    Yin says thanks.
  14. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    after typing
    glxinfo | grep direct
    that looks like a problem
     
  15. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    just run
    sudo dpkg-reconfigure xserver-xorg
    again and again. You'll get it right(use up and down arrow keys to view previously typed commands in terminal)
     
    Yin says thanks.
  16. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    ok i ran it again and it finishes after i choose my colour bit (16 and 24) i picked 24
    then i typed
    glxinfo | grep direct
    same results
     
  17. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    did you enable higher resolutions?
     
  18. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    I think so?
    when in the "sudo dpkg-reconfigure xserver-xorg" interface I picked 1280x1024@60hz 24-bit Colour and I picked the Nvidia graphic driver
     
  19. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    So did it work after restarting(higher resolution)?
    Maybe its better if you try Ubunutu forums.
     
  20. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32
    nope I'll go and ask more places, thanks for the help
     
  21. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    The thing is I've never used Nvidia are you sure you don't get the option for higher resolution.
    Also did you get a message to enable restricted drivers?
     
  22. BXtreme

    BXtreme New Member

    Joined:
    Feb 5, 2007
    Messages:
    1,324 (0.45/day)
    Thanks Received:
    4
    Location:
    Kolkata, India
    ya, the restricted driver manager allows to download/install those drivers automatically, as on my dell 1520. I connected an external display, and p00f 1440x900@75hz was infront of me. Installing the driver manually may also force the user to do the settings manually, well it might be a different case here, or a corrupted X11 file...there can be many other cases too....
     
  23. xfire

    xfire New Member

    Joined:
    Nov 22, 2007
    Messages:
    1,395 (0.52/day)
    Thanks Received:
    193
    Location:
    Hyderabad,India
    installing manually gives the control panel.
    CCC for ati.
     
  24. BXtreme

    BXtreme New Member

    Joined:
    Feb 5, 2007
    Messages:
    1,324 (0.45/day)
    Thanks Received:
    4
    Location:
    Kolkata, India
    too bad i don't use the panel anyway, most ppl who tend to switch to linux for whatever reason other than gaming only look for 'how to change the res to the native on of the monitor', so automated is ieasy for them. so, what options does the cp offer ? esp. in nvidia ? same as windows ?
     
  25. Yin

    Yin

    Joined:
    Feb 19, 2006
    Messages:
    542 (0.16/day)
    Thanks Received:
    32

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page