13

First off let me mention that this problem happened a while ago so i may have forgotten some of the details. A while ago I was trying to get used to backtrack5 and I was doing pretty well I think. I learned that you shouldn't be using root exclusively so i was creating a user account and trying to give it all the right permissions and access.

I don't remember what did it specially but this is part of the error message I'm getting from Xorg.0.log:

(II) Module nvidia: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Video Driver
(EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
(EE) NVIDIA:     system's kernel log for additional error messages.
(II) UnloadModule: "nvidia"
(II) Unloading /usr/lib/xorg/extra-modules/nvidia_drv.so
(EE) Failed to load module "nvidia" (module-specific error, 0)
(EE) No drivers available.

Fatal server error:
no screens found

Now knowing that this was a problem of my own doing I took a look at my history to try and figure out what i did wrong but i'm not very savvy in such things... I'll paste some of the relevant command history

My Pasted command history

I have an idea of what the problem might be but i have no idea how i would fix it. if anyone could help me it would be greatly appreciated. And if i should provide anymore information just let me know.

PS sorry if this is a bit verbose. And sorry that the command history isn't formatted properly for this site.

Guy0203
  • 421

4 Answers4

19

I feel like an idiot. After months of forum joining, hopping, posting and prowling I finally found the answer

rm /etc/X11/xorg.conf
reboot
startx

That was it. But thanks for the help, guys.

Guy0203
  • 421
1

To install the nvidia driver from the command line use

sudo apt-get install nvidia-current

Then reboot, X should start. If needed, you then run nvidia-settings to make any adjustments. Run it as root to save your settings

gksu nvidia-settings
Panther
  • 104,528
1

To the folks experiencing this issue, but with ATI drivers, see the following

https://askubuntu.com/a/225563/515315

basically:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get install xserver-xorg-video-ati
sudo Xorg -configure
sudo cp /home/XXXXXXX/xorg.conf.new /etc/X11/xorg.conf

Hope this helps someone

jokab
  • 111
0

The following solved the issue for me on Ubuntu 22:

rm /usr/share/X11/xorg.conf.d

Then run

sudo X -configure