0
0

AlmaLinux 9 を取りあえず日本語化してみた【覚え書きシリーズ】

Last updated at Posted at 2022-07-25

さくらのVPSで標準OSになったAlmaLinux 9だが、標準のままでは日本語表示ではないので取りあえず日本語化してみた。

RockyLinuxとかでも当然できるはず。

日本語のパッケージを入れる

[root ~]# dnf -y install langpacks-ja
Last metadata expiration check: 0:01:10 ago on Tue 26 Jul 2022 12:51:14 AM JST.
Dependencies resolved.
~~~省略~~~
Complete!

ロケールをセットする

[root ~]# localectl set-locale LANG=ja_JP.UTF-8 
[root ~]# source /etc/locale.conf 

TimeZoneを日本に変更

[root ~]# timedatectl set-timezone Asia/Tokyo
[root ~]# timedatectl
               Local time: 火 2024-01-30 12:31:25 JST
           Universal time: 火 2024-01-30 03:31:25 UTC
                 RTC time: 火 2024-01-30 03:31:24
                Time zone: Asia/Tokyo (JST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

日本語になったはず

[root ~]# date
2024年  1月 30日 火曜日 12:33:17 JST
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