summary refs log tree commit diff
path: root/topics/systems/linux
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-09-01 15:05:27 +0300
committerPjotr Prins2026-01-05 11:12:10 +0100
commit591e2c5a0173273c87500afa4298a4e3f871ac25 (patch)
treebaa1c26094e3acda0e49875116888ec1246a5675 /topics/systems/linux
parent9fc32f0b5ebdd2bd9ee622f779fc064513da19c4 (diff)
downloadgn-gemtext-591e2c5a0173273c87500afa4298a4e3f871ac25.tar.gz
Add topic on setting up nvidia drivers.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'topics/systems/linux')
-rw-r--r--topics/systems/linux/adding-nvidia-drivers-penguin2.gmi46
1 files changed, 46 insertions, 0 deletions
diff --git a/topics/systems/linux/adding-nvidia-drivers-penguin2.gmi b/topics/systems/linux/adding-nvidia-drivers-penguin2.gmi
new file mode 100644
index 0000000..5d0fb26
--- /dev/null
+++ b/topics/systems/linux/adding-nvidia-drivers-penguin2.gmi
@@ -0,0 +1,46 @@
+# GPU Graphics Driver Set-Up
+
+Tux02 has the Tesla K80 (GK210GL) GPU.  For machine learning, we want the official proprietary NVIDIA drivers.
+
+## Installation
+
+* Debian 12 moved NVIDIA driver into the non-free-firmware repo.  Add the following to "/etc/apt/sources.list" and run "sudo apt update":
+
+```
+deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
+```
+
+* Make sure the correct kernel headers are installed:
+
+```
+sudo apt install linux-headers-$(uname -r)
+```
+
+* Install "nvidia-tesla-470-driver"⁰ (The NVIDIA line-up of programmable "Tesla" devices, used primarily for simulations and large-scale calculations, also require separate driver packages to function correctly compared to the consumer-grade GeForce GPUs that are instead targeted for desktop and gaming usage)¹:
+
+```
+sudo apt install nvidia-tesla-470-driver nvidia-tesla-470-driver-libs
+```
+
+* Black list nouveau since it conflicts with NVIDIA's driver, and regenerate the initramfs "sudo update-initramfs -u":
+
+```
+echo "blacklist nouveau" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
+echo "options nouveau modeset=0" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
+```
+
+* Reboot and test the nvidia drivers:
+
+```
+sudo reboot
+nvidia-smi
+
+# optional if you want to use nvidia-cuda-toolkit
+sudo apt install nvidia-cuda-dev nvidia-cuda-toolkit
+```
+
+## References
+
+=> ⁰ https://us.download.nvidia.com/XFree86/Linux-x86_64/470.129.06/README/supportedchips.html Nvidia 470.129.06 Supported Chipsets.
+=> ¹ https://wiki.debian.org/NvidiaGraphicsDrivers#Tesla_Drivers Debian Tesla Drivers.
+=> ² https://wiki.debian.org/NvidiaGraphicsDrivers/Configuration NVIDIA Proprietary Driver: Configuration.