If you have Secure Boot enabled, there are some hoops to jump through. Read the docs and follow the steps for DKMS.
Depending on your distro and your requirements, you might want to install the drivers manually from Nvidia rather than using older drivers from your distro.
If you need CUDA, god help you. Choose a distro that makes this easy and use containers to avoid dependency hell. Note that this is not any easier on Windows (at least not last I checked, which was a few years ago).
It ranges from “automatic” to “infuriating”.
If you have Secure Boot enabled, there are some hoops to jump through. Read the docs and follow the steps for DKMS.
Depending on your distro and your requirements, you might want to install the drivers manually from Nvidia rather than using older drivers from your distro.
If you need CUDA, god help you. Choose a distro that makes this easy and use containers to avoid dependency hell. Note that this is not any easier on Windows (at least not last I checked, which was a few years ago).