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

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
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
add a comment |Â
up vote
0
down vote
favorite
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
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
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
16.04 drivers nvidia kernel
asked Mar 15 at 9:05
Talar
1
1
add a comment |Â
add a comment |Â
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.
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 forgcc versionand forsudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)I gotyumcommand 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 ransudo apt-get install gccapparently I have the newest version 4:5.3.1-1ubuntu1 but when I typegcc versionI 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 partReboot 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 didsudo 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
 |Â
show 1 more comment
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.
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 forgcc versionand forsudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)I gotyumcommand 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 ransudo apt-get install gccapparently I have the newest version 4:5.3.1-1ubuntu1 but when I typegcc versionI 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 partReboot 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 didsudo 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
 |Â
show 1 more comment
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.
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 forgcc versionand forsudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)I gotyumcommand 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 ransudo apt-get install gccapparently I have the newest version 4:5.3.1-1ubuntu1 but when I typegcc versionI 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 partReboot 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 didsudo 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
 |Â
show 1 more comment
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.
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.
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 forgcc versionand forsudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)I gotyumcommand 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 ransudo apt-get install gccapparently I have the newest version 4:5.3.1-1ubuntu1 but when I typegcc versionI 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 partReboot 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 didsudo 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
 |Â
show 1 more comment
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 forgcc versionand forsudo yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r)I gotyumcommand 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 ransudo apt-get install gccapparently I have the newest version 4:5.3.1-1ubuntu1 but when I typegcc versionI 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 partReboot 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 didsudo 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
 |Â
show 1 more comment
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password