Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

  1. #1
    Join Date
    Nov 2012
    Beans
    4

    Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    THE ZITE WAY

    I am posting this because I want to share my way of installing Ubuntu 12.10 x64 with a newer Nvidia card. The problem happens on install with 12.04 and 12.10 x64. The problems with nouveau drivers that prevent progress to an install screen or really to do anything. They just don't seem to work well with the newer cards. I always used an alternate install CD but that is no longer an option. This is a step by step guide how to install Ubuntu 12.10 x64 with a new Nvidia card with out any kind of rigging to get it to work (installing on another computer transferring hard drive or installing with another video card) NOTE: I have no clue if this works with 32bit or that this is even a problem. I found out this way of doing it by finding so many different post across the internet, about 30 installs, and just blind luck. I have this process down in my head and I have done it about 10 times so far with it always turning out the same way. I also can't be much help as I don't know that much about Linux, I just some how get things done that I want. I hope this is a problem other people are having or I will feel a little awkward typing all this up or that this same guide exists some where else.. If this is helpful please spread it around so others can find this. I had no luck Googling this issue as Nvidia Ubuntu Install Freeze etc is flooded with so many other issues.

    (updated to larger images)

    Boot from your Ubuntu 12.10 x64. Once the Ubuntu screen pops up hit F8 quickly. Choose your language.
    http://i284.photobucket.com/albums/l...e/IMAG0003.jpg

    Next hit F6 to bring up other options and select nomodeset and hit ESC.
    http://i284.photobucket.com/albums/l...e/IMAG0004.jpg

    Install Ubuntu as you normally would. It will be in a low graphics setting. I choose not to install updates or third party programs during install. You can do this after the install. Lets make sure you pull out as many things that can go wrong during install. We already are having enough issues as is.
    http://i284.photobucket.com/albums/l...e/IMAG0006.jpg
    http://i284.photobucket.com/albums/l...e/IMAG0007.jpg
    http://i284.photobucket.com/albums/l...e/IMAG0008.jpg
    http://i284.photobucket.com/albums/l...e/IMAG0012.jpg

    Reboot computer.

    During the BIOS boot up hold down your shift key until the grub boot menu pops up. Select Advanced options for Ubuntu.
    http://i284.photobucket.com/albums/ll35/zite83/ubuntu_large/IMAG0014.jpg

    Next select Recovery Mode
    http://i284.photobucket.com/albums/l...e/IMAG0015.jpg

    In recovery mode now just select resume normal boot.

    http://i284.photobucket.com/albums/l...e/IMAG0016.jpg


    You will get a warning about graphical drivers, this is what we want, just hit OK
    http://i284.photobucket.com/albums/l...e/IMAG0017.jpg

    Now just login.

    http://i284.photobucket.com/albums/l...e/IMAG0019.jpg

    Open Firefox and navigate to Nvidia's website and download the proper drivers. This will differ for you depending on your card, for me it was 500 series Linux-64x.
    http://i284.photobucket.com/albums/l...e/IMAG0020.jpg

    You may get a few errors along the way just click Leave Closed.
    http://i284.photobucket.com/albums/l...e/IMAG0021.jpg

    Navigate to where you downloaded your file. Right click on the file and go to properties.
    http://i284.photobucket.com/albums/l...e/IMAG0023.jpg

    Change the permissions so you can execute the file.

    http://i284.photobucket.com/albums/l...e/IMAG0024.jpg

    Next we need to edit a file so open a terminal window by either Ctrl+Alt+T or through unity.

    PHP Code:
    sudo nano /etc/modprobe.d/blacklist.conf 
    http://i284.photobucket.com/albums/l...e/IMAG0027.jpg

    Navigate to the bottom of the file and insert the following code.
    PHP Code:
    blacklist amd76x_edac  #this might not be required for x86 32 bit users.
    blacklist vga16fb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv 
    http://i284.photobucket.com/albums/l...e/IMAG0028.jpg

    Save and exit editor.

    Now type the following commands
    PHP Code:
    sudo apt-get remove --purge nvidia
    http://i284.photobucket.com/albums/l...e/IMAG0029.jpg

    PHP Code:
    sudo apt-get install build-essential 
    http://i284.photobucket.com/albums/l...e/IMAG0030.jpg

    PHP Code:
    sudo apt-get install linux-headers-$(uname -r
    If for some reason (name -r) part does not work just type uname -r and copy what it prints out to the end of linux-headers-
    http://i284.photobucket.com/albums/l...e/IMAG0033.jpg

    Once finished with that close your terminal and logout of Ubuntu
    http://i284.photobucket.com/albums/l...e/IMAG0034.jpg

    Once at the login screen press Ctrl+Alt+F1 which will bring you to command promt. Type in your username and password.
    http://i284.photobucket.com/albums/l...e/IMAG0035.jpg

    Type in the following command to stop x-server.
    PHP Code:
    sudo service stop lightdm 
    http://i284.photobucket.com/albums/l...e/IMAG0036.jpg

    Navigate to your download directory or where ever you saved your drivers from Nvidias website.
    PHP Code:
    cd Downloads 
    http://i284.photobucket.com/albums/l...e/IMAG0037.jpg

    Now lets execute the drivers. (??? = what ever version you downloaded) A quick tip for less typing just type sudo ./N then hit your tab key.
    PHP Code:
    sudo ./NVIDIA-LINUX-x??_??-???.??.run 
    http://i284.photobucket.com/albums/l...e/IMAG0039.jpg

    Click Accept
    http://i284.photobucket.com/albums/l...e/IMAG0040.jpg


    Might say script failed ignore and hit ok.
    http://i284.photobucket.com/albums/l...e/IMAG0041.jpg


    Should start building your drivers.
    http://i284.photobucket.com/albums/l...e/IMAG0042.jpg

    Yes to 32bit OpenGL drivers, even though the picture says no.
    The 32bit openGL stuff is important to 64bit users with 32bit apps including wine.. Thanks BicyclerBoy
    http://i284.photobucket.com/albums/l...e/IMAG0043.jpg

    Click Yes for nvidia-xconfig
    http://i284.photobucket.com/albums/l...e/IMAG0044.jpg


    Next screen should ask for some clean up, click ok.
    http://i284.photobucket.com/albums/l...e/IMAG0045.jpg


    You should now be back at the command prompt. Now reboot.

    PHP Code:
    sudo reboot 
    Everything "should" work.




    Last edited by zite83; November 18th, 2012 at 02:22 AM.

  2. #2
    Join Date
    Nov 2012
    Beans
    11

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Okay, so here's my issue. I can't run


    sudo apt-get install build-essentials

    From what I saw, it's that this was deleted from the repositories. What do?
    Last edited by mof920; November 17th, 2012 at 05:37 AM.

  3. #3
    Join Date
    Nov 2012
    Beans
    4

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Quote Originally Posted by mof920 View Post
    Okay, so here's my issue. I can't run


    sudo apt-get install build-essentials

    From what I saw, it's that this was deleted from the repositories. What do?
    First always make sure you do an update

    PHP Code:
    sudo apt-get update 
    Also make sure you are doing build-essential with out the S. I've made the mistake before.

    PHP Code:
    sudo apt-get install build-essential 

  4. #4
    Join Date
    Feb 2010
    Location
    Nr BrandsHatch, S'oaks UK
    Beans
    1,241
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Hi!. zite83,

    Nice job on the 'How To' for the newer 64 bit Nvidia cards. All the illustrations were a good idea, pity they are not easier to read.

    Actually, all you suggest is equally applicable to 32 bit cards.

    My version follows much the same route, with acknowledgement to my main source: MAFoEllfen's Magnum Opus in the Installation & Upgrades Forum 'Blank Screen' Sticky.

    See Post #36: http://ubuntuforums.org/showthread.php?t=2075318

    And the Sticky, Post #280:http://ubuntuforums.org/showthread.php?t=1743535&page=81.

    The only thing I would question is the nouveau blacklist does not include the blacklists that both Nvidia-installer and Jockey/nvidia-current put in the blacklist files they create:
    # Added for nvidia driver.
    blacklist nouveau
    blacklist lbm-nouveau
    options nouveau modeset=0
    alias nouveau off
    alias lbm-nouveau off
    I have no idea if they are all necessary, but I have found, and others have Posted, that: "blacklist nouveau" alone, is not always effective.

    Chao!, bogan.
    Last edited by bogan; November 18th, 2012 at 07:18 AM. Reason: spelling, Post detail added
    "Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
    They did things differently in those days, apparently!!

  5. #5
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    re: the 32 bit openGL build question in nVidia installer.

    The 32bit openGL stuff is important to 64bit users with 32bit apps including wine..

    Before 12.04 this required you to install ia32bit-libraries..
    With 12.04 & later this seems to have disappeared into a multi-arch library.

    For old legacy programs you may need to install
    - ia32-lib-multiarch
    Multi-arch versions of former ia32-libraries

    The better way for headers files is:
    Code:
    apt-get install linux-headers-`uname -r`
    I think the blacklisting & the headers packages is probably all that is needed to allow "jockey" to work.

  6. #6
    Join Date
    Nov 2012
    Beans
    4

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    I will update the images, I wish I could give my sources but found out how to do this from many websites over a long period of time. Will update this as more help comes out. Thanks for the replies.
    Last edited by zite83; November 18th, 2012 at 01:57 AM.

  7. #7
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Correction
    The right way to do the linux headers is via a meta package so it always matches & is auto updated.

    apt-get install linux-headers-generic

    You need a warning about rebuilding the nVidia kernel interface with every kernel update or is this now handled with dkms ?

  8. #8
    Join Date
    Feb 2010
    Location
    Nr BrandsHatch, S'oaks UK
    Beans
    1,241
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Hi!, zite83 & BicycleBoy,

    I agree about the warning of the possible need to reinstall an Nvidia downloaded driver after a kernal update.

    In theory Nvidia drivers from v304 onwards are DKMS compatible and the need should no longer exist.

    In practice - vide the most recent update - if the header files are not correctly updated, or DKMS has been 'Cleaned', or is not available, the kernal module does not get recreated for the new kernal, result - disaster, with no warning up front.

    This last update to 3.5.0.19-generic left me with a very low res and no Launcher or Toolbar, with both 304.51 and 310.16. I WAS VERY DISAPPOINTED!

    On further reading of "THE ZITE WAY", using the recovery mode approach can lead to problems as it can be very unstable and unpredictable in 12.10.
    It also leads nvidia-installer to require resetting the level to 3 [ 'telinit 3' ] and restarting the installation.

    Another minor point, with the NVIDIA-XXX-XXX.run file, several option defaults are set to 'NO', so there is a need to navigate to your choice with the 'Tab' or 'Arrow' keys. Something not obvious to a first comer or 'noob', several Post report 'failed installations', due to that.

    I fully realise, from personal experience, that trying to cover every known possible difficulty leads to an intimidatingly long screed, and is to be avoided.

    Chao!, bogan.
    "Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
    They did things differently in those days, apparently!!

  9. #9
    Join Date
    Feb 2010
    Location
    Nr BrandsHatch, S'oaks UK
    Beans
    1,241
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    Hi!, zite83,

    In my last Post I wrote:
    Code:
    ...  the recovery mode approach can lead to problems as it can be very unstable
     and unpredictable in 12.10
    In your PM you wrote:
    I would just mount and enable networking and use wget to get my drivers but for some reason, when I try to do that in recovery mode with 12.10 it just locks up and I can't get to a tty screen.
    That is precisely what I was referring to.

    However, there is a 'Workround' - in fact, 3 - when it hangs, either press 'Ctrl+c', which - after a pause - will take you to a TTY root login prompt, or 'CTRL+Alt+Del', which will take you back to the Recovery menu.

    Alternatively, in the Grub menu script edit mode - press 'e' - edit the Linux boot line to read: "rw single --verbose text" instead of: " ro recovery nomodeset"; which - after a display of system messages - will go direct to the TTY root login prompt, in Read/Write mode.

    Chao!, bogan.
    Last edited by bogan; November 18th, 2012 at 11:55 AM. Reason: spacing
    "Better Solutions may bring Worsened Problems": After Lao Tse, b. circa 405BC. a contemporary of Confucius, who died circa 600BC.
    They did things differently in those days, apparently!!

  10. #10
    Join Date
    Jun 2012
    Beans
    43

    Re: Guide: How to Install Ubuntu 12.10 with newer Nvidia cards

    I know this is old, but I just want to add somethings. First off, I added those entries to blacklist. I rebooted and nouveau is still loaded. second, after I login (if still using nouveau because they were still loaded and after installing the nvidia drivers) unity is broke. You mentioned that above I think. The only way I can get around this is to put
    Code:
    nouveau.blacklist=1
    to the kernel line in grub.cfg. What am I doing wrong? Is it because I am using the liquorix kernel?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •