如何停止ubuntu在開機啟動時進入視窗模式,並限制為文字模式?

資料來源:https://askubuntu.com/questions/16371/how-do-i-disable-x-at-boot-time-so-that-the-system-boots-in-text-mode

編輯 /etc/default/grub

sudo nano /etc/default/grub

尋找這一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

更改為

GRUB_CMDLINE_LINUX_DEFAULT="text"

更新 GRUB 設定

sudo update-grub


For systems that use systemd

This is an additional step for systemd releases, e.g. Ubuntu 15.04, the steps above for grub are still necessary.

You need to tell systemd to not load the graphical login manager:

sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target

You will still be able to use X by typing startx after you logged in.