2016年7月14日 星期四

ubuntu 16.04 systemctl console mode & graphic mode switch

ubuntu 16.04開始導入Fedora較早就開始使用的systemd system

除了要像之前一樣修改/etc/default/grub,增加text來進入console terminal。
還要透過systemctl來切換開機模式

文字介面模式 (boot to console mode)
$ sudo systemctl set-default multi-user.target
圖型化介面模式 (boot to graphic mode)
$ sudo systemctl set-default graphical.target

修改/etc/default/grub
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="text"

systemd是目前ubuntu以及Fedora都在使用的service manager,之前也有增加systemd的服務,來執行常佇程式(像以前修改/etc/rc.local)一樣,日後也會慢慢增加這部份的內容。
新的功能總是要做一些備忘錄