0
0

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 3 years have passed since last update.

Centos7のキーボードを日本語に

Posted at

Centos7をインストールしたら、:を打つのにShift+;となっていたのでいつもの配置に直す方法を調べました。

参考記事

やり方

一時的に直す場合は以下のコマンドらしい。
setxkbmap -model jp106 -layout jp106

しかし、再起動後も配置を維持したいので、/etc/X11/xorg.conf.dを見てみた。
その中に00-keyboard.confがあったので中身を確認する。

/etc/X11/xorg.conf.d/00-keyboard.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "us"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

どうやらlayoutとmodelの場所をjp106に変えればいいらしい。
しかし、キーボードレイアウトが変わらなかったので再起動してみる。

再起動

systemctl reboot またはshutdownなどで再起動したらしっかりと配置が変更されていた。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?