こんにちは!kossyです!
さて、今回はvirtualbox + vagrant でubuntu環境を構築する際に、出力を日本語化する手順について、
ブログに残してみたいと思います。
なお、virtualbox + vagrant のダウンロードについては割愛します。
実行手順
まずはbox add を実行します。
$ vagrant box add ubuntu/bionic64
通信環境によっては時間がかかるのでじっくり待ちましょう。
ダウンロードが終わったら、
$ vagrant init ubuntu/bionic64 $ vagrant up $ vagrant ssh
ssh接続に成功したら、仮想環境上で、
以下のコマンドを順に実行します。
$ sudo locale-gen ja_JP.UTF-8 $ echo export LANG=ja_JP.UTF-8 >> ~/.profile $ source ~/.profile $ sudo timedatectl set-timezone Asia/Tokyo # タイムゾーンを日本標準時に変更する
これで日本語化できます。