Help us understand the problem. What is going on with this article?

v1801.01 の CentOS 7 Vagrant box に日本語ロケールを追加する方法

More than 1 year has passed since last update.

v1710.01 は在ったんだけどな。。。

vagrant up 直後

[vagrant@localhost ~]$ localectl list-locales | grep -i ja
[vagrant@localhost ~]$

日本語ロケールが無い。。。

glibc-common 再インストール

[vagrant@localhost ~]$ sudo yum -y reinstall glibc-common
(省略)
[vagrant@localhost ~]$
[vagrant@localhost ~]$ localectl list-locales | grep -i ja
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
[vagrant@localhost ~]$

大丈夫っぽい。

ロケール設定

[vagrant@localhost ~]$ sudo localectl set-locale LANG=ja_JP.UTF-8
[vagrant@localhost ~]$ sudo localectl set-keymap jp106
[vagrant@localhost ~]$ sudo localectl set-keymap jp-OADG109A
[vagrant@localhost ~]$ localectl status
   System Locale: LANG=ja_JP.UTF-8
       VC Keymap: jp-OADG109A
      X11 Layout: jp
       X11 Model: jp106
     X11 Options: terminate:ctrl_alt_bksp
[vagrant@localhost ~]$

ここでログインし直し。

[vagrant@localhost ~]$ echo $LANG
ja_JP.UTF-8
[vagrant@localhost ~]$ ls -lA
total 16
-rw-------. 1 vagrant vagrant 275  1月 19 02:23 .bash_history
-rw-r--r--. 1 vagrant vagrant  18  9月  6 16:25 .bash_logout
-rw-r--r--. 1 vagrant vagrant 193  9月  6 16:25 .bash_profile
-rw-r--r--. 1 vagrant vagrant 231  9月  6 16:25 .bashrc
drwx------. 2 vagrant vagrant  29  1月 19 02:14 .ssh
[vagrant@localhost ~]$

大丈夫っぽい。(2 回目)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした