I did what you said and I was able to login but when I attempted to install the driver I get this error.
You appear to be running an X server; please exit X before
installing. For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at
www.nvidia.com.