Skip to content

Instantly share code, notes, and snippets.

@PrestonII
Created April 5, 2018 18:35
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 PrestonII/acb2699755476b78604e4bf5ca79e1b5 to your computer and use it in GitHub Desktop.
Save PrestonII/acb2699755476b78604e4bf5ca79e1b5 to your computer and use it in GitHub Desktop.
Creates a new Ubuntu Desktop Box using Vagrant
$script = <<-SCRIPT
yes | sudo apt-get update
yes | sudo apt-get install ubuntu-desktop
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider :virtualbox do |vb|
vb.name = "machina"
end
config.vm.provision "shell",
privileged: true,
inline: $script
end
# must have Virtualbox installed
# run "vagrant up" in your terminal when this is done
# default user is "vagrant"
# default password is "vagrant"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment