Cannot run Nvidia driver on ASUS ROG GL502VS in LINUX

i’m trying to install nvidia driver in linux 16.04 on my asus rog laptop. I’ve tried install the driver using .run file from nvidia website, via terminal, as well as using the software update and apply changes.

But everytime i install the nvidia driver and reboot, i’ll be facing login loop, in which everytime i login i’ll be sent back to the login screen again.

I’ve also tried every version of the drivers and all of them has the same problem. Is therw anyone that probably can help me? I’m trying to install the driver because i need to use CUDA.

Thanks.