CentOS 7.9に日本語環境にする方法
環境
# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
操作方法
1.日本語関連のパッケージをインストールします
# yum -y install ibus-kkc vlgothic-*
2.システムの文字セットを変更します
# localectl set-locale LANG=ja_JP.UTF-8
# source /etc/locale.conf
# echo $LANG
ja_JP.UTF-8
# passwd
ユーザー root のパスワードを変更。
新しいパスワード:
3.グラフィカルログインを設定します
現在の設定を表示
# systemctl get-default
multi-user.target
# ll /etc/systemd/system/default.target
グラフィカルログインに変更します
# systemctl set-default graphical.target Removed symlink /etc/systemd/system/default.target. Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
4.システムを再起動します