How can I properly install Nvidia driver and toolkit and samples?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite
1












Working on ubuntu 16.04 I want to install sudo sh cuda_9.1.85_387.26_linux.run or basically make that command setup all the 3 mentioned in my question, what I first did :



1- ctrl+alt+f1



2-sudo service lightdm stop



3-sudo init 3



4-sudo sh cuda_9.1.85_387.26_linux.run



It gave me I failed message for the driver so I checked the log and found that Nouveau is conflicting with Nvidia's installation process, to disable it I did :



5-Created a file:



sudo vim /etc/modprobe.d/blacklist-nouveau.conf


6-It has this content :



blacklist nouveau



options nouveau modeset=0



7-sudo update-initramfs -u
to regenerate the kernel



8-reboot



Then I repeated the steps 1 to 4 and got this error: the driver installation is unable to locate the kernel source please make sure that the kernel source and packages are installed correctly or pass the location in a '--kernel-source-path'.



Now using command 7 I got the regenerating in /boot/initrd.img-4.13.0-36-generic and trying the command uname -r I got 4.13.0-36-generic so the kernel should be there I guess? how do I continue from there to finish my installation and these errors.










share|improve this question

























    up vote
    0
    down vote

    favorite
    1












    Working on ubuntu 16.04 I want to install sudo sh cuda_9.1.85_387.26_linux.run or basically make that command setup all the 3 mentioned in my question, what I first did :



    1- ctrl+alt+f1



    2-sudo service lightdm stop



    3-sudo init 3



    4-sudo sh cuda_9.1.85_387.26_linux.run



    It gave me I failed message for the driver so I checked the log and found that Nouveau is conflicting with Nvidia's installation process, to disable it I did :



    5-Created a file:



    sudo vim /etc/modprobe.d/blacklist-nouveau.conf


    6-It has this content :



    blacklist nouveau



    options nouveau modeset=0



    7-sudo update-initramfs -u
    to regenerate the kernel



    8-reboot



    Then I repeated the steps 1 to 4 and got this error: the driver installation is unable to locate the kernel source please make sure that the kernel source and packages are installed correctly or pass the location in a '--kernel-source-path'.



    Now using command 7 I got the regenerating in /boot/initrd.img-4.13.0-36-generic and trying the command uname -r I got 4.13.0-36-generic so the kernel should be there I guess? how do I continue from there to finish my installation and these errors.










    share|improve this question























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      Working on ubuntu 16.04 I want to install sudo sh cuda_9.1.85_387.26_linux.run or basically make that command setup all the 3 mentioned in my question, what I first did :



      1- ctrl+alt+f1



      2-sudo service lightdm stop



      3-sudo init 3



      4-sudo sh cuda_9.1.85_387.26_linux.run



      It gave me I failed message for the driver so I checked the log and found that Nouveau is conflicting with Nvidia's installation process, to disable it I did :



      5-Created a file:



      sudo vim /etc/modprobe.d/blacklist-nouveau.conf


      6-It has this content :



      blacklist nouveau



      options nouveau modeset=0



      7-sudo update-initramfs -u
      to regenerate the kernel



      8-reboot



      Then I repeated the steps 1 to 4 and got this error: the driver installation is unable to locate the kernel source please make sure that the kernel source and packages are installed correctly or pass the location in a '--kernel-source-path'.



      Now using command 7 I got the regenerating in /boot/initrd.img-4.13.0-36-generic and trying the command uname -r I got 4.13.0-36-generic so the kernel should be there I guess? how do I continue from there to finish my installation and these errors.










      share|improve this question













      Working on ubuntu 16.04 I want to install sudo sh cuda_9.1.85_387.26_linux.run or basically make that command setup all the 3 mentioned in my question, what I first did :



      1- ctrl+alt+f1



      2-sudo service lightdm stop



      3-sudo init 3



      4-sudo sh cuda_9.1.85_387.26_linux.run



      It gave me I failed message for the driver so I checked the log and found that Nouveau is conflicting with Nvidia's installation process, to disable it I did :



      5-Created a file:



      sudo vim /etc/modprobe.d/blacklist-nouveau.conf


      6-It has this content :



      blacklist nouveau



      options nouveau modeset=0



      7-sudo update-initramfs -u
      to regenerate the kernel



      8-reboot



      Then I repeated the steps 1 to 4 and got this error: the driver installation is unable to locate the kernel source please make sure that the kernel source and packages are installed correctly or pass the location in a '--kernel-source-path'.



      Now using command 7 I got the regenerating in /boot/initrd.img-4.13.0-36-generic and trying the command uname -r I got 4.13.0-36-generic so the kernel should be there I guess? how do I continue from there to finish my installation and these errors.







      16.04 drivers nvidia kernel






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 15 at 9:05









      Talar

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Do you confirm you have pre-installation dependencies installed (check §2.3 and §2.4 of Cuda Installation Guide)?



          If so, you just have to follow step by step Quick Start Guide ( starting §4.1.5.2 in your case)



          Looks like you miss kernel header, xorg.conf generation and variables links ($PATH...) steps.






          share|improve this answer




















          • I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
            – Talar
            Mar 15 at 10:09










          • the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
            – Talar
            Mar 15 at 10:37










          • I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
            – Talar
            Mar 15 at 10:48










          • Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
            – Talar
            Mar 15 at 11:06










          • ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
            – Talar
            Mar 15 at 13:53










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015096%2fhow-can-i-properly-install-nvidia-driver-and-toolkit-and-samples%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          Do you confirm you have pre-installation dependencies installed (check §2.3 and §2.4 of Cuda Installation Guide)?



          If so, you just have to follow step by step Quick Start Guide ( starting §4.1.5.2 in your case)



          Looks like you miss kernel header, xorg.conf generation and variables links ($PATH...) steps.






          share|improve this answer




















          • I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
            – Talar
            Mar 15 at 10:09










          • the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
            – Talar
            Mar 15 at 10:37










          • I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
            – Talar
            Mar 15 at 10:48










          • Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
            – Talar
            Mar 15 at 11:06










          • ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
            – Talar
            Mar 15 at 13:53














          up vote
          0
          down vote













          Do you confirm you have pre-installation dependencies installed (check §2.3 and §2.4 of Cuda Installation Guide)?



          If so, you just have to follow step by step Quick Start Guide ( starting §4.1.5.2 in your case)



          Looks like you miss kernel header, xorg.conf generation and variables links ($PATH...) steps.






          share|improve this answer




















          • I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
            – Talar
            Mar 15 at 10:09










          • the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
            – Talar
            Mar 15 at 10:37










          • I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
            – Talar
            Mar 15 at 10:48










          • Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
            – Talar
            Mar 15 at 11:06










          • ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
            – Talar
            Mar 15 at 13:53












          up vote
          0
          down vote










          up vote
          0
          down vote









          Do you confirm you have pre-installation dependencies installed (check §2.3 and §2.4 of Cuda Installation Guide)?



          If so, you just have to follow step by step Quick Start Guide ( starting §4.1.5.2 in your case)



          Looks like you miss kernel header, xorg.conf generation and variables links ($PATH...) steps.






          share|improve this answer












          Do you confirm you have pre-installation dependencies installed (check §2.3 and §2.4 of Cuda Installation Guide)?



          If so, you just have to follow step by step Quick Start Guide ( starting §4.1.5.2 in your case)



          Looks like you miss kernel header, xorg.conf generation and variables links ($PATH...) steps.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 15 at 9:41









          Boby

          11




          11











          • I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
            – Talar
            Mar 15 at 10:09










          • the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
            – Talar
            Mar 15 at 10:37










          • I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
            – Talar
            Mar 15 at 10:48










          • Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
            – Talar
            Mar 15 at 11:06










          • ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
            – Talar
            Mar 15 at 13:53
















          • I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
            – Talar
            Mar 15 at 10:09










          • the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
            – Talar
            Mar 15 at 10:37










          • I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
            – Talar
            Mar 15 at 10:48










          • Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
            – Talar
            Mar 15 at 11:06










          • ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
            – Talar
            Mar 15 at 13:53















          I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
          – Talar
          Mar 15 at 10:09




          I have referred to the first part of your answer and apparently I don't have the pre-installation dependencies installed, I got an error for gcc version and for sudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) I got yum command not found, any further guidance regarding the commands I should use to solve these 2 issues.
          – Talar
          Mar 15 at 10:09












          the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
          – Talar
          Mar 15 at 10:37




          the sections 2.3 2.4 don't have a distribution mentioned or such, not even a guidance to how to execute that step differently per distributions.
          – Talar
          Mar 15 at 10:37












          I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
          – Talar
          Mar 15 at 10:48




          I ran sudo apt-get install gcc apparently I have the newest version 4:5.3.1-1ubuntu1 but when I type gcc version I get an error, no such file or directory.
          – Talar
          Mar 15 at 10:48












          Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
          – Talar
          Mar 15 at 11:06




          Oh ok then apparently I have both as that last command gave the output linux-headers-1.13.0-37-generic is already installed, then I switched to the second link in your answer precisely this part Reboot into runlevel 3 by temporarily adding the number "3" and the word "nomodeset" to the end of the system's kernel boot parameters. I didn't quite understand the command I should un, before I just did sudo init 3
          – Talar
          Mar 15 at 11:06












          ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
          – Talar
          Mar 15 at 13:53




          ok so I didn't replace quiet splash with 3 nomodeset instead I added it in front of ro quiet splash because your way just didn't wok which lead me to do some more digging, but the screen is just stuck on the Ubuntu logo.
          – Talar
          Mar 15 at 13:53

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1015096%2fhow-can-i-properly-install-nvidia-driver-and-toolkit-and-samples%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?