Prepare the system before installing the NVIDIA driver ...
Refresh the system -
Update and upgrade pending packages --
$>sudo apt update
$>sudo apt upgrade
Restart the system --
$>sudo reboot
Uninstall previous NVIDIA drivers and unnecessary packages -
List currently installed NVIDIA packages --
$>sudo dpkg --list | grep nvidia
Remove NVIDIA packages --
$>sudo apt purge nvidia.*
Remove other packages that are no longer required by the system --
$>sudo apt autoremove
Restart the system --
$>sudo reboot
Disable Nouveau, the default video driver -
Modify the GRUB boot configuration by editing the default GRUB file with nano editor --
1. Determine the system boot type (BIOS or UEFI) .
This can be determined by:
Checking BIOS/UEFI settings
... or ...
Checking the disk file system ...
$>sudo df -h
... if output contains a ' /boot/efi ' directory; the system boot type is likely UEFI .
2. Edit the ' /etc/default/grub ' file with nano editor.
$>sudo nano /etc/default/grub
Use arrow keys to maneuver the cursor to the line that begins with ...
' GRUB_CMDLINE_LINUX_DEFAULT '
... or ...
' GRUB_CMDLINE_LINUX '
Example: GRUB_CMDLINE_LINUX="blah blah blah"
Use arrow keys to maneuver to the end of the line.
Append the line with ' nouveau.blacklist=1 ' .
Note that there are no spaces immediately preceding or following the quotes < " > .
Example: GRUB_CMDLINE_LINUX="blah blah blah nouveau.blacklist=1"
' Ctl+O ' to commit changes to the editor buffer.
' Ctl+X ' to exit the editor.
3. Update GRUB with the appropriate command.
For BIOS:
$>sudo grub2-mkconfig -o /boot/grub/grub.cfg
For UEFI:
$>sudo grub2-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
Restart the system
$>sudo reboot
Install the NVIDIA GPU driver to the system
Enter the GPU model description in the search field and select the OS appropriate selection from the dropdown menu ...
Note: NVIDIA RTX 6000 Ada Generation GPU is used as an example in the following ...
Select the ' Find ' button ...
Note and verify the driver then select ' View ' ...
Right click and copy the link from the Download button ...
Begin from a terminal prompt for the current login user directory in the target system ...
$>cd ~
Use the Linux ' wget ' command as follows to download the run file to the system ...
$>sudo chmod +x NVIDIA-Linux-x86*.run
Disable the GUI ...
$>sudo init 3
Execute the NVIDIA Driver .run file ...
$>sudo ./NVIDIA-Linux-x86_64-525.78.01.run
Restart the system
$>sudo reboot
NVIDIA GPU drivers in Ubuntu 22.04 is complete.
Comments
0 comments
Please sign in to leave a comment.