So, as long as you are running commands with
sudo then you are running as root. I just wanted that to be clear, because without root privilege I don’t think you can do any of this stuff.
So, the login loop issue - I think one of the other forum members found a decent resource for resolving that. It’s actually in this thread (had to look), right up here. The only way I ever got past that issue was to remove all nvidia and cuda related stuff and start again.
Regarding your questions:
- If you can use
sudo, then you have root access. Just preface commands with sudo if you want them to run as root (this is common for most/all linux distros, but this is actually the only way to do it in ubuntu without manually adding a root account.)
- The binary option is what you are trying to do - install the binary nvidia driver. Since the driver itself is not open-sourced, it is only distributed as a binary file. So, it is sometimes referred to as a binary driver since you cannot build it from source yourself.
So, that being said, I think you are on the right track. You just hit a snag with that login-loop issue, which is a weird one I don’t understand. It definitely has something to do with driver conflicts. So, yeah… this post has everything except removal of nouveau.
The official documentation says to create the blacklist file (the driver installer will do this for you if nouveau is loaded when you run it), update initramfs, reboot, and then you should be able to install the nvidia driver (again, following the instructions above). If you have issues and still need to manually remove nouveau, then try just
sudo rmmod nouveau before trying the nvidia installer again.
Also, be sure and let the nvidia installer create your xorg,conf file at the end. That is needed for x to restart and properly use the driver.