No GUI after installing nvidia-drivers on Debian 10
by meatbar from LinuxQuestions.org on (#55JEA)
Hello all, I have a problem with Debian 10 that has lead me to format and re-install it three times now, I'd kindly appreciate some help.
My system:
CPU: ryzen 5 2600
mother board: gigabyte aorus B450 M
GPU: Nvidia GeForce GTX 660
Storage: Kingston SSD.
So when I try to install the nvidia-drivers, after rebooting, the OS becomes CLI only, I have tried startx, and setting the display manager to be the deault and rebooting, and nothing, I've already spent some 6-8 hours tring to solve this with web searches to no avail.
The first time I installed the nvidia-drivers I was just following a website and I didn't install the headers, the second time I did install the headers and got the same result, the third time I did it through the apper package manager, and made sure to install an older driver, I went with version 390.
The error I get is something like this:
xinit: giving up
xinit: unable to connect to server: Connection refused
xinit: server error
The Debian 10 I have is from an ISO I downloaded in December, Linux 4.9.0-8-amd64 x86_64
What's weird is that in late December I had a different installation and I installed the nvidia driver with no problem at all, I have no idea what I did right then that I'm doing wrong now, as basically to do anything on linux I look it up, and follow the steps on a website.
What makes the situation worse is that any solution I find requires me to download nouveau from the internet to install it again, but my only internet access is from a mobile broadband usb dongle, and I simply don't know how to connect to it from the command line.


My system:
CPU: ryzen 5 2600
mother board: gigabyte aorus B450 M
GPU: Nvidia GeForce GTX 660
Storage: Kingston SSD.
So when I try to install the nvidia-drivers, after rebooting, the OS becomes CLI only, I have tried startx, and setting the display manager to be the deault and rebooting, and nothing, I've already spent some 6-8 hours tring to solve this with web searches to no avail.
The first time I installed the nvidia-drivers I was just following a website and I didn't install the headers, the second time I did install the headers and got the same result, the third time I did it through the apper package manager, and made sure to install an older driver, I went with version 390.
The error I get is something like this:
xinit: giving up
xinit: unable to connect to server: Connection refused
xinit: server error
The Debian 10 I have is from an ISO I downloaded in December, Linux 4.9.0-8-amd64 x86_64
What's weird is that in late December I had a different installation and I installed the nvidia driver with no problem at all, I have no idea what I did right then that I'm doing wrong now, as basically to do anything on linux I look it up, and follow the steps on a website.
What makes the situation worse is that any solution I find requires me to download nouveau from the internet to install it again, but my only internet access is from a mobile broadband usb dongle, and I simply don't know how to connect to it from the command line.