First, we need to properly install and configure the Nvidia drivers. It is pretty well explained how to do it here.
In my case I had to run a console installation from the console because for some reason the GUI have not properly recognized my GeForce GT 610
Then we need to install the CUDA drivers as explained here.