This question already has an answer here:

How do I disable lightdm(display manager) during bootup of my machine? I want to bootup to command prompt and not into GUI desktop. I am using ubuntu 16.0.4LTS

marked as duplicate by Byte Commander, TheWanderer, David Foerster, Luís de Sousa, Eric Carvalho Jul 19 '16 at 10:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • the answer below worked for me and none of the mentioned answers in the link above actually works ! – Monku Jul 19 '16 at 0:37
  • 1
    The top answer by Bruno Pereira to the duplicate question linked above describes the exactly same steps. – Byte Commander Jul 19 '16 at 6:49

To boot to console:

sudo systemctl set-default multi-user.target

You must then edit /etc/default/grub by removing splash from the GRUB command line. (Remember to update GRUB afterward: sudo update-grub).

To get to the Unity desktop from the console, you must enter the command:

sudo systemctl start lightdm.service

(The usual startx command doesn't work with Unity.)

To restore boot to GUI:

sudo systemctl set-default graphical.target

  • yours is the answer that actually worked for me. thanks – Monku Jul 19 '16 at 0:36

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