When I started my computer today after editing the /etc/init.d/gdm file, the xserver, for lack of better words, "messed up" and failed to load the default video configuration. How can I fix this?

I realise my question may seem uneducated and the wording may be wrong, but that was the file I used nano to edit and that was what caused the xserver to break.

This is not a duplicate of any other question, I checked. Thanks.

1 Answer 1


Boot into recovery mode.


Get a user or root shell, and run :

sudo apt-get install --reinstall gdm

and reboot.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.