first login as your ordinary user then
sudo /etc/init.d/gdm stop
this will effectively shut down the respawning gdm, or X session.
Now you'll be able to install the driver (make sure you have the relevant kernel header files). When the install has finished and xorg.conf is edited to load the nvidia module, just run
sudo /etc/init.d/gdm start