Skip to content

Instantly share code, notes, and snippets.

@gasolin
Last active October 12, 2016 02:59
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 gasolin/58c4ac641f8afe3df0f6aad7be4efbf1 to your computer and use it in GitHub Desktop.
Save gasolin/58c4ac641f8afe3df0f6aad7be4efbf1 to your computer and use it in GitHub Desktop.
Vagrantfile for elementary OS VM setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
$bootstrap = <<SCRIPT
!/bin/bash
SCRIPT
# To use this script and prepare your build environment, run the following
# command in the same directory as the Vagrantfile.
# B2G_PATH={path to your B2G directory} vagrant up
VAGRANTFILE_API_VERSION = "2"
# Detect platform
def is_windows
processor, platform, *rest = RUBY_PLATFORM.split("-")
platform === 'mingw32'
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Use ubuntu 14.04
config.vm.box = "TimWSpence/elementaryos"
# Run the bootsrap script on start.
cnode.vm.provision :shell, :inline => $bootstrap
end
# setup shared folder to vmshare
# guest http://www.htpcbeginner.com/mount-virtualbox-shared-folder-on-ubuntu-linux/
#sudo usermod -a -G vagrant
#sudo ln -s /media/sf_vmshare /home/vagrant/vmshare
#git remote add central hg::https://hg.mozilla.org/mozilla-central -t branches/default/tip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment