System Preparation - Prepare the system before installing the NVIDIA driver ...
Refresh the system -
Update and upgrade pending packages --
$>sudo apt update$>sudo apt upgradeRestart the system --
$>sudo rebootUninstall previous NVIDIA drivers and unnecessary packages -
List currently installed NVIDIA packages --
$>sudo dpkg --list | grep nvidiaRemove NVIDIA packages --
$>sudo apt purge '^nvidia-.*'
Remove other packages that are no longer required by the system --
$>sudo apt autoremoveRestart the system --
$>sudo rebootDisable 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/grubUse 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.cfgFor UEFI:
$>sudo grub2-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfgRestart the system
$>sudo reboot
4. 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*.runDisable the GUI ...
$>sudo init 3Execute the NVIDIA Driver .run file ...
$>sudo ./NVIDIA-Linux-x86_64-525.78.01.runRestart the system
$>sudo reboot
NVIDIA GPU drivers in Ubuntu 22.04 is complete.
Comments
1 comment
You saved my bacon. I've installed different versions of Ubuntu, but 22.04 did recognize my GeoForce 710. Thanks
Please sign in to leave a comment.