2014年7月30日水曜日

Vagrant を入れてみた。Proxy とかハマりそうな人へ。

こちら( http://www.arubeh.com/archives/217 )を参考に Vagrant を入れてみました。

VirtualBox
https://www.virtualbox.org/wiki/Downloads

Vagrant
http://downloads.vagrantup.com/tags/v1.3.5

http://www.vagrantbox.es/
より、自分の入れたい box をダウンロードする。

vagrant box add {title} {url} で、以下のエラー。
Downloading or copying the box...
An error occurred while downloading the remote file. The error--)
message, if any, is reproduced below. Please fix this error and tryagain.

Could not resolve host: (nil); Host not found

プロキシの問題。内部では、curl でダウンロードしているらしい。
ただ、パスワード指定のプロキシ設定方法を紹介しているところが以外となかった。
以下のように設定後、再度ダウンロードすれば、OK。

http_proxy=http://<username>:<password>@<proxy-host>:<proxy-port>
https_proxy=http://<username>:<password>@<proxy-host>:<proxy-port>

引用: http://d.hatena.ne.jp/tanakakns/20140107/1389085227


次に、
vagrant up 時に、VirtualBox が見つかりません。。。

Vagrant が探しに行くための環境パス(VBOX_INSTALL_PATH)が設定されていないみたいです。
VirtualBox の環境パス(VBOX_MSI_INSTALL_PATH)は設定されている。

引用:http://ict.matchy.net/2014/05/windows-vagrant-virtualbox.html

SSH でアクセスしたいが、Windows だとClient ソフトが必要なので、PuTTYを入れておく。
PuTTY: http://yebisuya.dip.jp/Software/PuTTY/


Git でも、ssh でアクセスできるらしい。。。

Git for Windows: http://msysgit.github.io/

引用: http://blog.withsin.net/2014/06/02/vagrant-windows7/


2014年7月16日水曜日

Eclipse から、外部提供用Jar の生成方法

具体的には、以下のファイルを含むJar を生成する。

  • MANIFEST.MF ファイル
  • 外部参照ライブラリ

以下の通り。