0
1

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

RasPi4によるホームサーバー構築 その4 OSの日本語化

Posted at

OSの日本語化

1. 日本語化

sudo raspi-config

4 Localisation Options を選択
I1 Change Locale を選択
en_GB.UTF-8 UTF-8 を選択
ja_JP.EUC-JP EUC-JP を選択
ja_JP.UTF-8 UTF-8 を選択

OK

Default locale として、
ja_JP.UTF-8 を選択

Finish で再起動

2. タイムゾーン設定

sudo raspi-config

4 Localisation Options を選択
I2 Change Timezone を選択
Asia を選択
Tokyo を選択

Finish で再起動

3. キーボード設定

sudo raspi-config

4 Localisation Options を選択
I3 Change Keyboard Layout を選択
Generic 105-Key(Intel) を選択
Other を選択
Japanese を選択
Japanese ‐ Japanese (OADG 109A) を選択
The default for the keyboard layout を選択
no compose key を選択

Finish で再起動

4. 日本語フォントのインストール

sudo apt-get install -y fonts-ipaexfont
sudo apt-get install -y ttf-kochi-gothic xfonts-intl-japanese xfonts-intl-japanese-big xfonts-kaname

5. 日本語IMEのインストール

sudo apt-get install -y uim uim-anthy

6. 日本語対応ターミナルのインストール

sudo apt-get install -y fbterm gpm
sudo chmod u+s /usr/bin/fbterm
sudo systemctl enable gpm
sudo reboot
vim .bashrc 
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
	PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
	;;
*)
	;;
	esac

以下の用に変更

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
	PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
	;;
linux)
	if [ -c /dev/fb0 ]; then
		fbterm uim-fep
	fi
	;;
*)
	;;
esac

フォントサイズの調整

vim .fbtermrc 

以下を変更

font-size=16 
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?