Tera Term から接続すると、日本語が文字化けする状態だった為
文字化けしない方法を試行錯誤で設定する事が出来ました。
また、設定した時の情報をメモする事にしました。
■設定①
①.profile を編集する。
vi /etc/profile
②.以下の内容を追記する。
alias vi='vim' alias less='lv' alias man='env LANG=ja_JP.eucJP jman' alias jman='env LANG=ja_JP.eucJP jman' LANG=ja_JP.UTF-8; export LANG EDITOR=vim; export EDITOR PAGER=lv; export PAGER LV='-Ou8' export LV
■設定②
①..vimrc を編集する。
vi ~/.vimrc
②.以下の内容を追記する。
set encoding=utf-8 set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis set fileformats=unix,dos,mac
設定②は、各ユーザーごとに設定する。
■設定③
①.日本語を表示させるためにソフトをインストールする。
pkg install ja-nkf ja-less lv
②.インストール時の情報です。
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 916 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 6.5MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 31499 packages processed.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
pkg: 1.12.0_1 -> 1.13.2
Number of packages to be upgraded: 1
6 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/1] Fetching pkg-1.13.2.txz: 100% 6 MiB 6.8MB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 1.12.0_1 to 1.13.2...
[1/1] Extracting pkg-1.13.2: 100%
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
ja-less: 382.262.03.01
ja-nkf: 2.1.4,1
lv: 4.51_3
Number of packages to be installed: 3
The process will require 2 MiB more space.
665 KiB to be downloaded.
Proceed with this action? [y/N]: y
[1/3] Fetching ja-nkf-2.1.4,1.txz: 100% 150 KiB 154.0kB/s 00:01
[2/3] Fetching ja-less-382.262.03.01.txz: 100% 194 KiB 198.3kB/s 00:01
[3/3] Fetching lv-4.51_3.txz: 100% 321 KiB 329.1kB/s 00:01
Checking integrity... done (0 conflicting)
[1/3] Installing ja-nkf-2.1.4,1...
[1/3] Extracting ja-nkf-2.1.4,1: 100%
[2/3] Installing ja-less-382.262.03.01...
[2/3] Extracting ja-less-382.262.03.01: 100%
[3/3] Installing lv-4.51_3...
[3/3] Extracting lv-4.51_3: 100%
