Linux Ubuntu OS install Nvidia Driver Guide
Linux Ubuntu Installation Guide for NVIDIA Drivers and CUDA Toolkit
1. Check if Graphics Card Drivers Are Installed on Your Computer
Run the following command in the terminal:
nvidia-smiIf the output matches the following, drivers are already installed. No need to proceed with this guide.

If the output differs, follow the installation steps below.
Preparation is critical to avoid issues like black screens after driver installation. These steps will not affect your system but skipping them may cause failures.
2. Disable Secure Boot
1. Restart your computer and enter BIOS settings during boot. 2. Locate the security settings and disable Secure Boot. Press F10 to save and exit.
Note: BIOS access methods and security settings vary by manufacturer.

3. Switch to Discrete Graphics Mode
Configure this based on your computer's specifications.
4. Update Software List and Install Essential Tools/Dependencies
sudo apt-get update
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install make5. Disable Nouveau
Nouveau is a generic driver. Disable it before installing NVIDIA drivers.
- Edit the configuration file:
- Add these lines at the end:
- Execute the following commands:
- After reboot, verify Nouveau is disabled
sudo gedit /etc/modprobe.d/blacklist.confblacklist nouveau
options nouveau modeset=0sudo update-initramfs -u
sudo reboot # Restart the computerlsmod | grep nouveau # If the output is empty, nouveau is successfully disabled6. Install LightDM
LightDM is a display manager with better compatibility than gdm3.
sudo apt-get install lightdm
Press Enter to confirm.

Use arrow keys to select lightdm and press Enter.
7. Install NVIDIA CUDA Toolkit
sudo apt-get install nvidia-cuda-toolkitCheck the recommended driver version and note it:
sudo ubuntu-drivers devices
8. Add Driver Repository
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update9. Install the Recommended Driver Version
sudo apt-get install nvidia-driver-570 # Replace "570" with your recommended versionReboot after installation. Successful installation will show:

Troubleshooting Black Screen
1. On the black screen, press ctrl+alt+f1 to enter the tty command line.
- Log in with your credentials, then run:
- If the issue persists, use:
export LANGUAGE="en_US.UTF-8" # Set locale
sudo apt-get --purge remove nvidia*
sudo apt autoremove
rebootsudo apt-get remove --purge nvidia*On this page
- Linux Ubuntu OS install Nvidia Driver Guide
- 1. Check if Graphics Card Drivers Are Installed on Your Computer
- 2. Disable Secure Boot
- 3. Switch to Discrete Graphics Mode
- 4. Update Software List and Install Essential Tools/Dependencies
- 5. Disable Nouveau
- 6. Install LightDM
- 7. Install NVIDIA CUDA Toolkit
- 8. Add Driver Repository
- 9. Install the Recommended Driver Version
