Ubuntu 20.04 Installing Nvidia drivers

So I had a total disaster with "Bumblebee". I entered the above commands but they caused all sorts of weird responses resulting in me having to give up and just re-install a clean copy of ubuntu 20.04 (not the reinstall option but the replace install option).

So how did I fix it? Well I didn't use bumblebee and instead did this:

  1. From terminal I entered sudo ubuntu-drivers autoinstall
  2. When I restarted, I got the login problem. So selected ctrl+alt+F4
  3. Entered sudo apt-get purge nvidia*
  4. Then sudo apt-get install nvidia-driver-440
  5. Then sudo apt-get install sddm
  6. Then sudo dpkg-reconfigure sddm (I got an option for choosing gdm3 or sddm, I chose sddm)
  7. Finally reboot

This gave me a different login screen, BUT I could actually login and the nvidia driver was running (and its control panel properly activated).