17
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DebianでCUI起動に切り替え

Last updated at Posted at 2015-11-11

DebianでCUI

Windows PCではよくVirtualBoxを使います。
その時にゲストOSにDebianを選ぶことが多いです。
そしてGuest Additionsを入れる為にGUIでインストールして最後にCUIにするのですが、JessieでCUIにするのに手こずったのでここに備忘録。

Jessie

CentOS等のようにランレベルを3にしたらCUIになると思ったら、そもそも/etc/inittabがない(笑)
個人的にはまだJessieは使いづらい印象。

get-default で現在の設定、set-defaultで設定です。はい。

# systemctl get-default
# systemctl set-default -f multi-user.target

wheezy

/etc/inittab は存在するのだけど変えてもGUIで起動してくる(笑)
インストールによってはgdm3の部分は変わりますが大体こんな感じ。

# chkconfig gdm3 off

GNU/Linux(debian 11)

GUI -> CUI

sudo systemctl set-default multi-user.target

CUI -> GUI

sudo systemctl set-default graphical.target

参考サイト

17
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?