![]() Once rebooted and in the console, we will proceed with the driver installation process. Once the driver is removed, the system is restarted in recovery mode. Sudo apt-get install linux-headers-$(uname -r)Īfter installing these packages we proceed to remove the nouveau driver completely from our system with the following commandĪpt-get remove -purge xserver-xorg-video-nouveau Once restarted we will notice that the resolution has dropped quality, this means that the default nouveau driver was not loaded, now we will proceed to install the linux headers from our repository in order to compile the Nvidia driver, we do this through the next command. ![]() Note: to verify the nouveau driver is running or not, the following command needs to be executed and in the case the command shows results that means that you have the nouveau driver running in the systemĪfter having created the file to block the default driver, we proceed to restart the system in default mode. ![]() In order to accomplish this a new file needs to be created Once the previous steps have been completed and since the necessary files for the installation are available, we proceed to disable the nouveau driver, which is the default driver that comes with the Debian versions. For this it could be sufficient to execute the following command It is likely that you will need to uninstall nvidia packages if they have been installed through the repository. If you want to uninstall the CUDA driver, you can do it with the following command. If you are updating the Nvidia driver you do not need to do anything since the installer removes the previous drivers automatically. Sudo /usr/local/cuda-X.Y/bin/uninstall_cuda_X.Y.pl To uninstall previous versions of CUDA the following command is used If you do not have a valid GCC compiler you can install it with the following commandīefore proceeding with the installation process you need to uninstall any version of CUDA that has been previously installed, if this is the first time you install CUDA you can skip this step. Now you need to check that you have a valid GCC compiler PRETTY_NAME="Debian GNU/Linux 9 (stretch)" What tells us that we have Debian Stretch and is the version that is being used and supported for this post Then, we proceed to check our version of Linux The previous instruction should yield results, otherwise, you should check the status of the video card. First of all you need to confirm that you have a device that supports GPUs. Now we proceed to verify the requirements to install CUDA. The toolkit installation file that is needed is the RUN version for Ubuntu, the file name is: cuda_9.1.85_387.26_n. The latest version of the driver available in the case of my video cards is 390.25 and is available in the following link, the most desirable thing is to make sure to download the latest version of the driver available for your video card.Īlso, it is necessary to download the CUDA Toolkit 9.1 from the Nvidia page located in the following link. If you are not sure which version of the driver should be installed, this information can be verified in the following link. In my case, I have a server with 2 video cards, the first is a GeForce GTX660 and the second is a GeForce GTX650. The first thing to do is to download the driver from the official Nvidia website and select the model of the video card you have. This post explains how to install CUDA 9.1 Production Release on a Debian Stretch system.
0 Comments
Leave a Reply. |