0
0

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.

VagrantでUbuntu仮想環境 はじめに

Last updated at Posted at 2018-12-03

##まずは
###ホストOSに作業フォルダを作成

mkdir %userprofile%\vagrant\ubuntu64_16

###作業フォルダに移動

cd %userprofile%\vagrant\ubuntu64_16

###VirtualBoxにBoxを作成

vagrant box add ubuntu/xenial64 https://vagrantcloud.com/ubuntu/boxes/xenial64/versions/20170929.0.0/providers/virtualbox.box

###仮想環境の設定ファイルを作成

vagrant init ubuntu/xenial64

###仮想環境起動

vagrant up

###仮想環境設定確認
起動後に

vagrant ssh-config

###仮想環境に接続

vagrant ssh

##Ubuntu日本語化
仮想環境を起動して接続後に
###日本語環境作成

sudo locale-gen ja_JP.UTF-8

###起動時に日本語設定で起動する

echo export LANG=ja_JP.UTF-8 >> ~.profile

###設定内容を反映させる

source ~/.profile

###反映されたか確認
結果が日本語表記ならOK

date

##Ubuntuを最新にする

sudo apt-get update

##Ubuntuにゲームをインストール

sudo apt-get install bsdgames

###Ubuntuでテトリス

tetris-bsd

#Ubuntuの終了

exit

##仮想環境の終了

vagrant halt
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?