Note: Vagrant does not like spaces in Windows directory paths.
http://download.virtualbox.org/virtualbox/5.1.22/VirtualBox-5.1.22-115126-Win.exe from https://www.virtualbox.org/wiki/Downloads
https://releases.hashicorp.com/vagrant/1.9.4/vagrant_1.9.4.msi from https://www.vagrantup.com/downloads.html
Restart your computer.
https://git-scm.com/download/win
using Git Bash
vagrant box add davidallen/xenial-crystal
mkdir xenial_crystal
cd xenial_crystal
vagrant init xenial-crystal
Vagrant.configure("2") do |config|
config.vm.define "xenial-crystal" do |c|
c.vm.box = "davidallen/xenial-crystal"
#Make apt-get upgrade completely silent so it doesn't get stuck on selecting a drive for GRUB
c.vm.provision :shell, inline: %(
sudo apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
)
end
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
vb.cpus = 2
vb.memory = "1024"
end
end
vagrant up
vagrant ssh
sudo apt-get install firefox
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install
startxfce4
or
startxfce4&
makes it verbose
The terminal comnmand to open an interactive crystal console is
icr
To start a fresh Crystal project
crystal init app hello_world