I install the gcc and kernel-source by YAST. I download NVIDIA*.run file from official site, and blacklist the nouveau driver and reboot.
Then Ctrl+Alt+F1, init 3, ./NVIDIA*.run
I get error: The kernel header fiie ‘/usr/src/linux/include/linux/version.h’ does not exist. The most likely reason for this is that the kernel source files in ‘/use/src/linux’ have not been configured.
Adding to the advice by Knurpht, if you insist on using the Nvidia .run file be aware that you have to uninstall the drm-kmp-default package first, then you need to install kernel-devel and kernel-default-devel, which carry the configuration needed by a standard install.
AFAIK the source packages as installed are not configured, so you need to provide a kernel configuration yourself.
Also note that likely your laptop is an “Optimus” system, so you need Bumblebee and simply installing the .run file is likely to bring you a lot of trouble.
I did forget to uninstall drm-kmp-default package before installing kernel-*devel, I will try your advice.
How to provide kernel configuration myself? Could you talk it more?
And now I have drm-kmp-default, kernel-devel and kernel-default-devel installed, what should I do next? Should I uninstall these three packages and reinstall kernel-*devel? Or another option: reinstall OS?
On some systems it is possible to turn off the Intel GPU from the UEFI/BIOS, Most notebooks do not have that option though. So check the UEFI/BIOS settings
Hi
Is the system up to date, that is an old kernel, I would guess the development packages installed are for a later kernel. Make sure you system is all up to date first.
If that doesn’t work, you do NOT need kernel sources to install the Nvidia driver “the hard way” with the .run installer, unless you are doing kernel development work (and so don’t need our help to configure it )
You are running the standard -default kernel, so NO need for kernel-vanilla or other flavors…
I have just the following installed here and the .run installer builds as intended:
bruno@LT_B:~> zypper se -i kernel-de
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+----------------------+---------------------------------------------------------+--------
i+ | kernel-default | The Standard Kernel | package
i+ | kernel-default-devel | Development files necessary for building kernel modules | package
i+ | kernel-devel | Development files needed for building kernel modules | package
bruno@LT_B:~>
Thanks for your help. The output of zypper is following:
myname@linux-1:~> zypper se -i kernel-de
S | Name | Summary | Type
---+----------------------+---------------------------------------------+-------
i+ | kernel-debug-devel | Development files necessary for building -> | package
i+ | kernel-default | Standard Kernel | package
i | kernel-default-devel | Development files necessary for building -> | package
i | kernel-devel | Development files needed for building ker-> | package
myname@linux-1:~>
drm-kmp-default is NOT compatible with the Nvidia driver, so DO NOT re-install it after having installed Nvidia. It is better to check and uninstall drm-kmp-default before beginning the Nvidia installation, just to be sure that it is out of the way.
You have incompatible versions of the kernel packages in **bold **as already suggested by malcolmlewis.
Please update your kernel-default package first of all, it should match the -devel packages installed.
kernel-source kernel-source-vanilla kernel-vanilla-devel are not needed to install graphics drivers and may be uninstalled if you don’t need them for other purposes.
I uninstalled drm-kmp-default, and updated kernel-default package to match -devel version. I uninstalled kernel-source package. Then reboot.
After login, I ctrl +alt +f1. Then login as root. I run init 3, then ./NVIDIA*.run. I accept all default configuration and successfully finished installation. Then I reboot, finally I see the black screen.