X server crash after installing NVIDIA-Linux-x86_64-390.25.run on a

I have download the driver from your website but after installing it, I reboot my machine and I immediatly got a black screen.
I would like to run “nvidia-bug-report.sh” but where could I get it ?

I am under Debian 9 and I would like to get both my screens working. I tried many things and read many forums but now I am completely lost.

Thanks for your help,
Frédéric

The script is installed along with the driver.

OK let’s get back to the begining.
I have reinstalled debian 9, since it has crashed again after my last attempt.
I call NVIDIA-Linux-x86_64-390.25.run and the file NVIDIA-Linux-x86_64-390.25.run is has follow

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Feb 23 17:31:20 2018
installer version: 390.25

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> License accepted.
-> Installing NVIDIA driver version 390.25.
-> Performing CC sanity check with CC="/usr/bin/cc".
ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

I looked in the debian package, there is no ‘kernel-source’ but there is :
nvidia-driver - NVIDIA metapackage
nvidia-kernel-source - NVIDIA binary kernel module source
nvidia-vdpau-driver - Video Decode and Presentation API for Unix - NVIDIA driver
xserver-xorg-video-nvidia - NVIDIA binary Xorg driver
linux-source-4.9 - Linux kernel source for version 4.9 with Debian patches
linux-source - Linux kernel source (meta-package)

which one should I choose ?

Regards,
Frédéric

None of those. There should have been the packages linux-headers- and linux-headers--generic installed along with the kernel. Look for those.

You can also just install the debian meta package nvidia-driver, it should pull in the necessary dependencies.

Error

OK I installed the nvidia-driver and then I run “nvidia-bug-report.sh”
I put in copy the file “nvidia-bug-report.log.gz”

Now I am gonna reboot my computer, I hope it won’t crash …

Frédéric

nvidia-bug-report.log.gz (54.2 KB)

I have just reboot my computer and it crashed !
I got a black screen.
I pressed Ctrl+Alt+F1 to get the console, open my account and called startx to see what happens.
KDE has launched but without the menu, the task bar, etc …
I launched firefox by searching it in Dolphin …

Any idea ?
Frédéric

Any news ? has anyone an idea ?

You still have the intel gpu active and the monitor connected to it. Disable it in bios and connect your monitor to the nvidia card.

OK, now it is working !

Thank you very much