palm84.com

革命的愛熊主義者同盟!

SystemRescue 7.01をちょっとだけ日本語化

f:id:palm84:20210306022954p:plain

ちょっとだけ日本語化してみますよ。

INDEX

about

systemrescue-7.01-amd64.iso (699MB) での確認です。

はい、やることはこれだけ。日本語になるのは一部だけですけどコマンドちょっと打つだけなので大して手間はかからんですよ。

  1. 日本語フォントのインストール
  2. locale 設定ファイル編集
  3. locale を generate (生成)

日本語フォント

  • データベース更新
[root@sysrescue ~]# pacman -Sy
:: Synchronizing package databases...
 core                  131.0 KiB   320 KiB/s 00:00 [######################] 100%
 extra                1647.1 KiB   849 KiB/s 00:02 [######################] 100%
 community               5.4 MiB  1127 KiB/s 00:05 [######################] 100%

f:id:palm84:20210306031158p:plain

  • 検索
[root@sysrescue ~]# pacman -Ss font japan
extra/texlive-langjapanese 2020.57025-1 (texlive-lang)
    TeX Live - Fonts and macro packages to typeset Japanese texts
community/adobe-source-han-sans-jp-fonts 2.002-1
    Adobe Source Han Sans Subset OTF - Japanese OpenType/CFF
    fonts
community/adobe-source-han-serif-jp-fonts 1.001-3
    Adobe Source Han Serif Subset OTF - Japanese OpenType/CFF
    fonts
community/otf-ipaexfont 004.01-2 (ipa-fonts)
    Japanese outline fonts following the tradition of Japanese
    printing font
community/otf-ipafont 003.03-8 (ipa-fonts) [installed]
    Japanese outline fonts by Information-technology Promotion
    Agency, Japan (IPA)
community/otf-ipamjfont 006.01-2 (ipa-fonts)
    Japanese outline Mincho fonts implementing IVS compliant with
    Hanyo-Denshi collection (based on IPAex Mincho fonts)
community/ttf-hanazono 20170904-4
    A free Japanese kanji font, which contains about 78,685
    characters (and 2 SPACEs) defined in ISO/IEC 10646 standard /
    the Unicode standard.
community/ttf-sazanami 20040629-11
    Japanese fonts

f:id:palm84:20210306031202p:plain

無難なとこで IPAフォントを。他に Noto CJK とかもありましたが...

  • otf-ipafont をインストール
[root@sysrescue ~]# pacman -S otf-ipafont
resolving dependencies...
looking for conflicting packages...

Packages (1) otf-ipafont-003.03-8

Total Installed Size:  27.26 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [#######] 100%
(1/1) checking package integrity                   [#######] 100%
(1/1) loading package files                        [#######] 100%
(1/1) checking for file conflicts                  [#######] 100%
:: Processing package changes...
(1/1) installing otf-ipafont                       [#######] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating fontconfig cache...
(3/3) Updating X fontdir indices...

f:id:palm84:20210306031155p:plain

locale の設定

  • locale.conf を編集
[root@sysrescue ~]# nano /etc/locale.conf 

f:id:palm84:20210306022923p:plain

  • 下記の通りに編集
LANG=ja_JP.UTF-8
#LANG=en_US.UTF-8

f:id:palm84:20210306022927p:plain

  • locale.gen を編集
[root@sysrescue ~]# nano /etc/locale.gen 

f:id:palm84:20210306022932p:plain

  • 2行のみコメントアウト アンコメント
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8

f:id:palm84:20210306022936p:plain
f:id:palm84:20210306022939p:plain

  • locale 生成
[root@sysrescue ~]# locale-gen 
Generating locales...
  en_US.UTF-8... done
  ja_JP.UTF-8... done
Generation complete.

f:id:palm84:20210306022947p:plain

ログアウトして確認

  • Ctrl-D (= logout コマンド) を2回
  • $LANG 確認
[root@sysrescue ~]# echo $LANG
ja_JP.UTF-8

f:id:palm84:20210306022950p:plain

  • startx でデスクトップを確認

f:id:palm84:20210306022954p:plain

はい、以上どす!お疲れさんだす。


ほなほなです!