Up CLI/GUI の設定 作成: 2021-01-26
更新: 2021-03-09


  • 現在のターゲットを確認
      $ sudo systemctl get-default
  • CUI ログインを設定
      $ sudo systemctl set-default multi-user.target
  • GUI ログインを設定
      $ sudo systemctl set-default graphical.target


  • CUIモードで,一時的にGUI を起動
      $ sudo systemctl start lightdm
    つぎは,遅くなる:
      $ sudo systemctl start gdm3



    $ ps -ef|grep gdm3 root 12272 1 1 08:20 ? 00:00:00 /usr/sbin/gdm3 gdm 12335 12330 0 08:20 tty1 00:00:00 /usr/lib/gdm3/gdm-x-session dbus-run-session -- gnome-session --autostart /usr/share/gdm/greeter/autostart

    $ sudo systemctl get-default
      graphical.target

    $ sudo systemctl set-default multi-user.target
      Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.

    $ sudo systemctl get-default
      multi-user.target