Recover Ubuntu from Text Mode – How to Guide

12.04text-modeunityxserver

My Ubuntu no longer starts in graphical mode, it starts in text mode.

If I try to run startx I receive unable to connect to X server: No such file or directory

How can I reinstall XServer and Unity?

What apt-get remove and apt-get install should I follow?

Best Answer

I hope this works for you:

sudo apt-get remove xserver*

sudo apt-get -f install --reinstall xorg
Related Question