Yes it is a heat monster. I have made a “wind funnel” using polycarbonate sheets and a push-pull dual fan system.
It turns out I can log into this machine remotely, and do all the machine vision and tensorflow stuff I need to, so I guess I don’t really need the lightdm GUI to work. But I would really like to fix this bug if possible.
No OpenGL Libraries --no-opengl-libs Prevents the driver installation from installing NVIDIA's GL libraries. Useful for systems where the display is driven by a non-NVIDIA GPU. In such systems, NVIDIA's GL libraries could prevent X from loading properly.
Note that this won’t necessarily work if you just reinstall CUDA. You may need to reinstall the OS.
I point this out because the first group of instructions there should probably be sufficient to undo the “damage” to the display driver stack that was done, without having to reinstall the OS. However if those steps did not restore graphics operation, if it were me, I would just reinstall the OS.
Those instructions also indicate how to work around this problem using just a driver runfile installer (not the same as a CUDA runfile installer) followed by a package manager CUDA install method that skips the driver install.