Old gpu installation thread

output-onlinepngtools output-onlinepngtools(2)

Install the nvidia driver manually on Zorin OS 16: (scroll down for Pop! OS instructions)

  1. Download the official Nvidia Driver and place it in the home folder
    Optional: rename the NVIDIA-Linux-x86_64-470.63.01.run driver to 1.run. I use 1.run because i don't want to write the whole nvidia name into the terminal (step 8 and 9).
  2. Install the build essential package, those are needed for the nvidia driver. Write in the terminal:
    sudo apt install build-essential libglvnd-dev pkg-config
  3. Disable Nouveau Nvidia driver, write in the terminal:
    sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
    Write in terminal:
    sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
  4. Check if the nouveau driver is blacklisted, write in the terminal:
    cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
  5. After you checked, write in the terminal:

sudo update-initramfs -u

  1. Install dkms, this is needed so you don't need to reinstall the nvidia driver anymore after a kernel upgrade. Write in the terminal:

sudo apt-get install dkms

  1. Stop Desktop Manager, write in the terminal:

sudo telinit 3

  1. Make the Nvidia Driver executable (i did not have to do this step in Zorin OS 16), write in terminal:

chmod +x NVIDIA-Linux-x86_64-470.63.01.run

  1. Install the new Nvidia Driver, write in terminal:

sudo bash NVIDIA-Linux-x86_64-470.63.01.run

  1. Follow the steps in the nvidia setup
  2. The Nvidia driver is now installed, reboot with this command:

sudo reboot

  1. When you are in Zorin OS 16 check if the driver is actually installed, to check this write in the terminal:

sudo lshw -c display

  1. When the configuration says "configuration: latency=0" you have to disable secure boot in the bios.
  2. Reboot and your good to go

output-onlinepngtools output-onlinepngtools(2)

Update the nvidia driver manually on Zorin OS 16:

  1. Stop Desktop Manager, write in the terminal:

sudo telinit 3

  1. Make the Nvidia Driver executable (i did not have to do this step in zorin os 16), write in terminal:

chmod +x NVIDIA-Linux-x86_64-470.74.run

  1. Install the new Nvidia Driver.
    Write in terminal:

sudo bash NVIDIA-Linux-x86_64-470.74.run

  1. Hit everything on yes in the installer. (The new driver will delete the older driver)
  2. The Nvidia driver is now installed, reboot with this command:

sudo reboot

output-onlinepngtools(1) output-onlinepngtools(2)

Install the nvidia driver manually on Pop! OS 21.04:
First i found a tutorial online to install the nvidia driver manually on Pop! OS 20.04. This guide did not work at all for Pop! OS 21.04 and i am not sure if the tutorial online is complete, because i had to do alot more then those few steps they posted here → Upgrading NVIDIA Drivers in Pop OS 20.04 | by Nitin Reddy | Medium

  1. Download the official Nvidia Driver and place it in the home folder
    Optional: rename the NVIDIA-Linux-x86_64-470.74.run driver to 1.run
  2. Install the build essential package, those are needed for the nvidia driver.
    In terminal write:

sudo apt install build-essential libglvnd-dev pkg-config

  1. Blacklist the Nouveau Nvidia driver otherwise the nvidia driver does not work proper. In terminal write:
    sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
    In terminal write:
    sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

  2. Check if the nouveau driver is blacklisted.
    In terminal write:
    cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf

  3. If everything is done
    In terminal write:

sudo update-initramfs -u

Now we are going to install the nvidia driver. We switch to text mode.

  1. In terminal write:

systemctl set-default multi-user.target

  1. In terminal write:

reboot

Now we have booted into text mode. Login with your username and password.

  1. Write:

sudo apt remove --purge ^nvidia-.*

  1. When the purge is done write:

sudo apt-get autoremove

  1. Remember i said to change the NVIDIA-Linux-x86_64-470.74.run to 1.run ?, to make it easier now). Write:

chmod +x ./1.run

Optional: This will uninstall traces of the older nvidia driver. Just to make sure the purge was done correctly.

sudo ./1.run --uninstall

  1. Install the nvidia driver. Write:

sudo ./1.run

  1. Hit everything on yes in the installer.
  2. When the installation is done, write:

sudo -i

  1. When you have root access, write:

systemctl set-default graphical.target

  1. Now write reboot and your good to go if you did all the steps above.
  2. To confirm it’s working open nvidia x server settings, if the driver is not in use it will not open. Also in terminal write:

sudo lshw -c display

  1. When the configuration says "configuration: latency=0" you have to disable secure boot in the bios.

output-onlinepngtools(1) output-onlinepngtools(2)

Update the nvidia driver manually on Pop! OS 21.04:

  1. In terminal write:

systemctl set-default multi-user.target

  1. In terminal write:

reboot

  1. Remember i said to change the NVIDIA-Linux-x86_64-470.74.run to 1.run ?, to make it easier now). Write:

chmod +x ./1.run

  1. Install the new Nvidia Driver.
    Write in terminal:

sudo ./1.run

  1. Hit everything on yes in the installer. (The new driver will delete the older driver)
  2. When the installation is done, write:

sudo -i

  1. When you have root access, write:

systemctl set-default graphical.target

  1. Now write reboot and your good to go if you did all the steps above.
6 Likes

Hmmm... This seems very thorough, but also quite complicated way how to install nv drivers.
Why not just adding an nVidia repository to your Zorin system with:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

and then just installing drivers like:

sudo apt install nvidia-graphics-drivers-<xyz>

?

1 Like

44 posts were split to a new topic: Discussing Old gpu installation thread

In the case of your guide, you are installing from the Nvidia site, not from an independent developer that patched the driver for Linux.
DKMS may help you prevent needing to reinstall after a kernel upgrade.
You can install dkms with:

sudo apt-get install dkms

Then when you move to install a new kernel, build against the... Actually let me find a guide or this post can get out of hand...


Guide:

Oh - one other thing - You also can often search for and install a dkms kernel already compiled. You can choose between the native kernel build or the LTS build.

I edited the first post to much haha. Can @StarTreker or @Aravisian change that ? if not please change this part

sudo apt remove --purge '^nvidia-.*'

to

sudo apt remove --purge ^nvidia-.*

Step 7: you need to enter username and password. If your screen is black try ctrl alt f1 or f2

You should see a text where you need to enter your username and password

1 Like

This driver seems important for the linux community

Most exciting with the NVIDIA 495.29.05 beta release is GBM API support! After years of waiting and NVIDIA wanting to pursue an alternative API instead after years of pushing EGLStreams, NVIDIA's proprietary driver has finally adopted the Generic Buffer Manager (GBM) API. This greatly enhances the Wayland support for NVIDIA's proprietary driver stack and makes it compatible with a lot more Wayland software.