Skip to content

Instantly share code, notes, and snippets.

@oooooooo
Last active December 29, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oooooooo/7702580 to your computer and use it in GitHub Desktop.
Save oooooooo/7702580 to your computer and use it in GitHub Desktop.
FreeBSD on Vagrant

目次

FreeBSD on Vagrant

目的

FreeBSD に慣れる。

Windows や Mac、Linux 上で FreeBSD を動かすために Vagrant を利用。

Vagrant のインストール

Vagrant

Vagrant に FreeBSD をインストール

$ mkdir freebsd9
$ cd freebsd9
$ vagrant init freebsd9 https://wunki.org/files/freebsd-9.2-amd64-wunki.box
$ vagrant up
$ vagrant ssh

FreeBSD にアプリケーションをインストール

一番最初の設定。

$ sudo portsnap fetch
$ sudo portsnap extract

vim をインストール。数十分くらいかかる。たまにダイアログが出るけど OK で。

$ cd /usr/ports/editors/vim
$ sudo make install clean

たまに情報を更新。バージョンが上がると反映される。

$ sudo portsnap fetch
$ sudo portsnap update

次のステップ

  • スナップショットを取る
  • chef と連動
  • 自分で box 作る

リソース

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment