Created
April 5, 2018 18:35
-
-
Save PrestonII/acb2699755476b78604e4bf5ca79e1b5 to your computer and use it in GitHub Desktop.
Creates a new Ubuntu Desktop Box using Vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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