I installed gdm. Then I removed it with:
sudo apt-get remove gdm sudo apt-get purge gdm
Now I can't pass Ubuntu logo at starup. How to enable lightdm back? Have tried
sudo dpkg-reconfigure lightdm
in curb but it not recognize command.
I had the same problem and was able to fix it by making LightDM the default display manager:
That command must be run as root (you can run
First Way: Install LightDM
Ubuntu 12.04 uses LightDM as the default display manager. Assuming LightDM was working OK before you installed GDM, you should be able to fix this problem by making sure it's installed and properly configured.
Press Ctrl+Alt+F1 to get to a text-based virtual console where you can log in non-graphically. (Or you may already be at such a console.) Then run these commands. (If the first one fails, the others may still succeed.)
You may be given the opportunity to select your display manager. If you are, select LightDM.
Now either reboot (
You should be able to log in.
Second Way: Install GDM
If that doesn't work, but GDM had worked when it had been installed, then just put back GDM and configure your system to use it. That is, do the steps described above, but for GDM. For your convenience, after going to the virtual console and logging in, these would be the commands:
You'll notice that I've added a command at the beginning to remove