Instead of text
use runlevel 3
:
GRUB_CMDLINE_LINUX="3"
# To remove all the fancy graphics you need to get rid of `splash`.
GRUB_CMDLINE_LINUX_DEFAULT=”quiet”
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
Then update-grub
and reboot.
But you really only need GRUB_CMDLINE_LINUX="3"
. For quick test hit ESC during booting to get into the grub boot menu. Then press e and find the line which specifies kernel and add 3
at the end:
linux /vmlinuz root=/dev/mapper/ubuntu ro 3
Boot it with CTRL+x
Ideally I also want to be able to start GUI by typig a command.
One of these:
$ sudo telinit 5
$ sudo service lightdm restart
$ sudo systemctl start lightdm
Tested on Ubuntu 16.04.1 LTS.
1This worked for me on 16.04 on a arm board. Thanks. :) – wojci – 2016-11-09T18:51:26.840
This did not work on my system. (16.04 LTS on a PC) It shows the initial screen with all the [ OK ] messages as the services start, and then freezes. – Paul Williams – 2018-03-30T03:24:43.690
BTW to re-enable the service the command is actually sudo systemctl enable lightdm.service – Paul Williams – 2018-03-30T04:25:07.730