Skip to content

Commit

Permalink
add .run driver installation to NVIDIA: Installation on 8.x - Update …
Browse files Browse the repository at this point in the history
…SystemSeriesA03R8.md (#454)

* Update SystemSeriesA03R8.md

Added the NVIDIA .run Driver Installation Guide section.
  • Loading branch information
SysAdminShed authored Jul 15, 2024
1 parent be5b02a commit fdbe241
Showing 1 changed file with 126 additions and 6 deletions.
132 changes: 126 additions & 6 deletions docs/series/system/SystemSeriesA03R8.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
<hr>
| 💡 | Experience Level | ⭐☆☆☆☆ |
|--- | --------- | --------|
| 📆 | <small>Last modified </small>| 2023-05-22
| 📆 | <small>Last modified </small>| 2024-02-02
| 🔧 | <small>Tested by <br> ↳ version \| platform \| date </small>| <small>[none](mailto:[email protected]) <br> ↳ 9.x \| x86_64 \| 2023-05-xx </small>|
<br>


## 🌟 Introduction

This is a dedicated example for the AlmaLinux 8.x series, demonstrating how to install NVIDIA graphics driver using one of two variants:
This is a dedicated example for the AlmaLinux 8.x series, demonstrating how to install NVIDIA graphics driver using one of three variants:

* Variant I: Precompiled/Binary Driver
* Variant II: Compile Driver Source
* Variant III : NVIDIA .run Driver Installation Guide


## 🔖 Variant I: Install Binary Driver
Expand Down Expand Up @@ -60,7 +61,7 @@ sudo dnf install freeglut-devel libX11-devel libXi-devel libXmu-devel make mesa-
Installing NVIDIA drivers on AlmaLinux 8 requires using ELRepo Mainline kernel.
:::

### ELRepo releated steps
### ELRepo related steps

➡️ Enable PowerTools & add EPEL8:

Expand Down Expand Up @@ -91,7 +92,7 @@ sudo dnf makecache
sudo dnf -y install kernel-ml kernel-ml-modules kernel-ml-modules-extra kernel-ml-devel kernel-headers
```

### NVIDIA driver build related steps
### NVIDIA driver build-related steps

➡️ Add NVIDIA repository:

Expand Down Expand Up @@ -122,15 +123,134 @@ sudo reboot
sudo systemctl set-default graphical.target
sudo reboot
```
## 🔖 Variant III: NVIDIA .run Driver Installation Guide

➡️ Enable needed repository:

```
sudo dnf install epel-release
sudo dnf config-manager --set-enabled powertools
sudo dnf config-manager --set-enabled extras
```
➡️ Install needed packages:

```
sudo dnf install kernel-devel
sudo dnf install kernel-headers
sudo dnf install dkms
sudo dnf install redhat-lsb-core
sudo dnf install vulkan
sudo dnf install vulkan-tools
sudo dnf install vulkan-headers
sudo dnf install vulkan-loader-devel
```

➡️ Disable Nouveau:

```
sudo touch /etc/modprobe.d/nouveau-blacklist.conf
echo "blacklist nouveau" | sudo tee /etc/modprobe.d/nouveau-blacklist.conf
echo "options nouveau modeset=0" | sudo tee -a /etc/modprobe.d/nouveau-blacklist.conf
```

```
sudo dracut --force
```

```
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo grub2-mkconfig -o /boot/efi/EFI/almalinux/grub.cfg
```

```
sudo reboot
```

➡️ Install the .run driver :
**Download the latest driver (**Verify compatibility with your GPU**):**

https://www.nvidia.com/en-us/drivers/unix/linux-amd64-display-archive/

➡️ Go into the downloaded driver directory (**Replace /path/to/driver with the actual path**):

```
cd /path/to/driver
```

➡️ Make executable (**XXX.XXX.XX Is the driver version**):

```
sudo chmod +x NVIDIA-LINUX-x86_64-XXX.XXX.XX.run
```

➡️ Switch to Run Level 3 :

```
sudo init 3
```

➡️ .run Driver installation options :

**Choose either Option 1 or Option 2 based on your preference.**

**Option 1** :

Install via the Console Text UI by following the prompt:
**Replace XXX.XXX.XX with the actual driver version.**

sudo ./NVIDIA-LINUX-x86_64-XXX.XXX.XX.run

**Option 2** :

Install silently via console :
**Replace XXX.XXX.XX with the actual driver version.**

sudo ./NVIDIA-Linux-x86_64-XXX.XXX.XX.run --accept-license --silent --run-nvidia-xconfig --dkms

➡️ Update the initramfs (**This is needed as of 535.XXX.XX drivers**) :

**Update the initramfs to ensure the changes made by the NVIDIA driver installation are reflected.**

```
sudo dracut -f
```

```
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo grub2-mkconfig -o /boot/efi/EFI/almalinux/grub.cfg
```

➡️ Set the default target to graphical for a desktop environment & Set the default target back to multi-user for a server or command-line environment.

```
sudo systemctl set-default graphical.target
sudo systemctl set-default multi-user.target
```

```
sudo reboot
```

### Known issue with NVIDIA-Settings Desktop Icon:
#### Create NVIDIA Settings desktop icon :

```
sudo echo "[Desktop Entry]" | sudo tee /usr/share/applications/nvidia-settings.desktop
sudo echo "Type=Application" | sudo tee -a /usr/share/applications/nvidia-settings.desktop
sudo echo "Name=NVIDIA Settings" | sudo tee -a /usr/share/applications/nvidia-settings.desktopsudo
sudo echo "Comment=Configure NVIDIA Settings" | sudo tee -a /usr/share/applications/nv```idia-settings.desktop
sudo echo "Exec=nvidia-settings" | sudo tee -a /usr/share/applications/nvidia-settings.desktop
sudo echo "Icon=nvidia-settings" | sudo tee -a /usr/share/applications/nvidia-settings.desktop
sudo echo "Terminal=false" | sudo tee -a /usr/share/applications/nvidia-settings.desktop
sudo echo "Categories=System;Settings;X-Red-Hat-Base-Utilities;" | sudo tee -a /usr/share/applications/nvidia-settings.desktop
```

## 📚 Further Reading and Next Steps

<u>Get Back:</u>

- AlmaLinux System Series ❯ [NVIDIA Driver Installation Guide](SystemSeriesA03.md)

<u>In-depth Resources:</u>

- AlmaLinux System Series ❯ [NVIDIA: Installation on 9.x](SystemSeriesA03R9.md)

<u>Related Resources:</u>
Expand Down

0 comments on commit fdbe241

Please sign in to comment.