mkdir trusty64-chef cd trusty64-chef/ rbenv local 2.1.2 gem install bundleCreate Gemfile:
source 'https://rubygems.org' gem 'vagrant', github: 'mitchellh/vagrant', tag: 'v1.6.4' gem 'knife-solo'Install gems:
bundle bundle install --binstubs .bundle/binCreate Vagrantfile: 'vagrant init'. In order to take access to the image, add to Vagrantfile:
config.vm.network :public_network, bridge: "wlan0", ip: "192.168.10.25"Start box: 'vagrant up'. Install Chef in the image:
knife solo prepare vagrant@192.168.10.25 ## password: vagrantUpdate Ubuntu:
vagrant ssh sudo apt-get updatePackage the Box: `vagrant package --base trusty64-chef_default_1409751631640_92694 --output trusty64-chef.box` Add to local Box list: `vagrant box add lebrijo/trusty64-chef package.box` Upload the box to a HTTP server: `scp trusty64-chef.box lebrijoc@files.lebrijo.com:www/lebrijo.com/files` Create an account and entry in vagrantcloud.com [lebrijo/trusty64-chef](https://vagrantcloud.com/lebrijo/trusty64-chef)
sudo apt-get install curl curl -L get.rvm.io | bash -s stable --auto source /etc/profile.d/rvm.sh << or whatever says the console of rvm >>After that, you need to check which RVM prerequisites depends on :
rvm requirementsInstall last ruby version:
rvm install 2.1.2For .bashrc executing purposes, and execute RVM ruby version when open a project, you can integrate RVM with your Gnome terminal:
#ruby=ruby-2.1.2 #ruby-gemset=website
But you always you can use .ruby-version and .ruby-gemset files.