Last active
February 16, 2017 13:58
-
-
Save scheunemann/e391ea6156d35495630fc18e0be96273 to your computer and use it in GitHub Desktop.
A `Vagrantfile` setting up a virtual machine (Ubuntu 12.04), downloads the code of http://playfulmachines.com/.
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "hashicorp/precise64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "PlayfulMachines" | |
# Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# Customize the amount of memory on the VM: | |
#vb.memory = 4096 | |
#vb.cpus = 4 | |
#vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"] | |
#vb.customize ["modifyvm", :id, "--accelerate3d", "on"] | |
#vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"] | |
#vb.customize ["modifyvm", :id, "--vram", "64"] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y xfce4 | |
sudo apt-get install -y python-software-properties | |
sudo add-apt-repository -y ppa:georg-martius/lpzrobots | |
sudo apt-get update | |
sudo apt-get install -y firefox playfulmachines | |
if ! [ -L /opt/playfulmachines ]; then | |
cp -r /opt/playfulmachines /vagrant | |
fi | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash
orcmd
)vagrant plugin install vagrant-vbguest
vagrant up
(needs an internet connection and patience)vagrant halt && vagrant up
in (it may need a restart)startx
to start X./vagrant/playfulmachines
and dofirefox index.html