Console

Force Ubuntu desktop Boot into Text Console Mode

2016-12-15. Category & Tags: Linux, Ubuntu, Console, X

Tested in ubuntu deskop 16.

short url: s_force-text

SOLUTION #

sudo cp /etc/default/grub /etc/default/grub.bak && \
sudo sed -ie 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="text"/g' /etc/default/grub && \
sudo sed -ie 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="text"/g' /etc/default/grub && \
sudo sed -ie 's/#GRUB_TERMINAL/GRUB_TERMINAL/g' /etc/default/grub && \
sudo update-grub && \
sudo systemctl enable multi-user.target --force && \
sudo systemctl set-default multi-user.target && \
sudo reboot

OBS: sometimes, by changing “multi-user.target” is enough, but sometimes we have to update grub. Have not dug into the reason.

RESULTS #

Echo-ed results:

START X TEMPORARILY #

To run desktop from pure terminal (on physical monitor): run service lightdm start directly.
Note:

...