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
Asked
Active
Viewed 3.4k times
5
-
the answer below worked for me and none of the mentioned answers in the link above actually works ! – Monku Jul 19 '16 at 00:37
-
1The top answer by Bruno Pereira to the duplicate question linked above describes the exactly same steps. – Byte Commander Jul 19 '16 at 06:49
1 Answers
18
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

Alcuin Arundel
- 3,110