Debian 9 Nvidia Drivers

Drivers
AuthorMessage
jellifort
Send message
Joined: 4 Jul 19
Posts: 1
Credit: 1,056,966
RAC: 644
[Guide] Debian 9 Stretch Linux with nVidia 418.x drivers and CUDA 10.1
I wanted to make a sub 100 watt dedicated and headerless PC to crunch SETI units quickly. I chose to use Debian Linux for the OS because it's small, fast and easy to work with. This full install is under 2Gb so you can install it to just a USB flash drive (perfect for low power systems or for Windows users who want to try another operating system) or a small HDD or SSD. I'm using this setup with a GTX 1050 Ti and it's complete system draw is just 80 watts (when combined with low power AMD processor) - with a current processing speed of over 920 GFLOPS and work units taking approximately 2-3 minutes to complete. See the computer here.
To use the nVidia 418.x driver and CUDA 10.1 driver described here you'll need a card with a compute capability of 5.0 or higher. This system is also setup to use 1 dedicated CPU core per GPU.
Here's how I did it:
Get Debian 9 (Stretch) - the net install version under 'Small CDs or USB sticks' .
Write the image to a USB drive/CD/DVD using something like Rufus .
Boot and install to drive of your choice - another USB drive/HDD/SSD.
Make note of your <username> and <password> and also the <root_password> during install.
When installing, at 'Software selection' just choose 'SSH server' and nothing else.
Remove installation media and reboot when prompted.
Login using <username> and <password>, then at the prompt type:
Add non-free, contrib and 'backports' (which is Debian for 'new software') to the sources list:
Update sources:
Create a static IP:
Reboot by typing:
Move to another PC and use a SSH client (e.g. PuTTY ) to connect to the Debian machine using SSH.
Enter the static IP you've set above click 'Open'.
Accept the security alert (it's just the first time the your PC has seen the security certificate).
Login using <username> and <password>, then:
Download and install the latest nVidia driver (currently 418.x):
Reboot by typing:
Reconnect using SSH client (e.g. PuTTY)
Login using <username> and <password>, then:
Download and install the latest nVidia SMI (418.x) and Cuda (10.1) drivers
Once installed, you can type the following to see your System Management Information:
Download and install the latest BOINC client:
Then attach the BOINC client to SETI and then immediately pause the work units:
Stop the BOINC daemon:
Change directory to SETI project and download and uncompress the SETI CUDA 10.1 binary blob:
Change file attributes so they all belong to the BOINC daemon and can be executed:
If you have more than 1 GPU, you'll want to edit your cc_config.xml:
Reboot by typing:
Reconnect using SSH client (e.g. PuTTY)
Login using <username> and <password>, then:
Get the work units flowing:
And that's it. You can of course check progress with:
Keith Myers
Volunteer tester
Send message
Joined: 29 Apr 01
Posts: 9731
Credit: 904,129,501
RAC: 1,652,488
Thanks for the minimalist guide to getting the special app working.Seti@Home classic workunits:20,676 CPU time:74,226 hours
Tom M
Volunteer tester
Send message
Joined: 28 Nov 02
Posts: 3493
Credit: 202,720,867
RAC: 608,154
Thanks for the minimalist guide to getting the special app working.

+1Oh NO.... I lost my tagline....
ThePHX264
Send message
Joined: 29 May 19
Posts: 84
Credit: 3,326,928
RAC: 17,821
ID: 2001984 · ReplyQuote
MarkJ
Volunteer tester
Send message
Joined: 17 Feb 08
Posts: 1125
Credit: 80,598,357
RAC: 26,499
I install the nvidia-kernel-dkms package rather than nvidia-driver:
apt install -t stretch-backports nvidia-kernel-dkms nvidia-opencl-icd-y
Also to save time I have the account* files on a USB key and copy them into the BOINC data directory /var/lib/boinc-client that way you don’t have to tell it to attach to the projects.BOINC blog
MarkJ
Volunteer tester
Send message
Joined: 17 Feb 08
Posts: 1125
Credit: 80,598,357
RAC: 26,499
If you’re doing headless crunchers you can also use BOINCtasks to add projects and control settings. It’s a lot easier to see what they’re up to for day to day operations.BOINC blog
Stephen 'Heretic'
Volunteer tester
Send message
Joined: 20 Sep 12
Posts: 4657
Credit: 146,961,368
RAC: 233,478
[Guide] Debian 9 Stretch Linux with nVidia 418.x drivers and CUDA 10.1
I wanted to make a sub 100 watt dedicated and headerless PC to crunch SETI units quickly. I chose to use Debian Linux for the OS because it's small, fast and easy to work with. This full install is under 2Gb so you can install it to just a USB flash drive (perfect for low power systems or for Windows users who want to try another operating system) or a small HDD or SSD. I'm using this setup with a GTX 1050 Ti and it's complete system draw is just 80 watts (when combined with low power AMD processor) - with a current processing speed of over 920 GFLOPS and work units taking approximately 2-3 minutes to complete. See the computer here.

. . Apart from overflowed tasks it seems to me that is more like 3 -4 mins and closer to the 4 than 3 :) but still excellent results :)
. . I don't know why but I have an overpowering sense of deja vu here ... :) but you have done an excellent job of a specific end to end description of the process. It should help even more users make the leap into the mysterious depths of Linux territory.
Stephen
:)

Debian 9 Uninstall Nvidia Driver

Debian 9 Nvidia Drivers

Debian 9 Nvidia Legacy Driver

Step 2 – Install Latest Nvidia Driver. Now enable the graphics-drivers PPA to your system. Currently, it supports Ubuntu 18.04 LTS, 17.10, 17.04, 16.04 LTS, and 14.04 LTS operating systems. Keep in mind that its still under testing phase. Execute the below command to install Nvidia graphics driver on your system. The easiest way to install NVIDIA GeForce Driver on Debian Linux 8 ( Jessie ) ( for Debian 9 Stretch visit: How to install the latest NVIDIA drivers on Debian 9 Stretch Linux) is to use official contrib and non-free debian repository.First, add the following non-free and contrib repositories to your /etc/apt/sources.list.Therefore, first change the content of your /etc/apt/sources.list file to. Install Nvidia Optimus Graphics Drivers on Debian 9 Stretch. In Linux, there are two types of Nvidia graphics drivers available. One is called nouveau which is open source and the other one is the closed source drivers from Nvidia. For most people, the open source nouveau drivers are enough. But if you strictly need the closed source Nvidia drivers. How to install Nvidia drivers for Debian GNU/Linux. How to install Nvidia drivers for Debian GNU/Linux. Disabling kernel mode setting. For users of Squeeze and newer it has become necessary to disable KMS to install the Nvidia driver. This is done with adding the following to /etc/default/grub.