# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| config.vm.box = "hashicorp/bionic64" config.vm.provider "virtualbox" do |vb| vb.memory = "2048" vb.cpus = "2" end config.vm.provision "shell", inline: <<-SHELL FILE=/etc/apt/preferences.d/99do_not_update echo "Package: /(grub-common|grub2-common|grub-pc)/ Pin: release * Pin-Priority: -1" > $FILE apt-get update apt-get dist-upgrade -y apt-get install -yy debhelper libfftw3-dev libreadline-dev libgl1-mesa-dev libglu1-mesa-dev libwxgtk3.0-dev ctn-dev libpng-dev apt-get install -yy git emacs-nox apt-get autoremove -y rm $FILE git clone git://git.kpe.io/ctsim.git ctsim.git echo Bootstrapping ctsim DIR=/home/vagrant/ctsim.git cd $DIR ./bootstrap.sh chown -R vagrant:vagrant $DIR echo "To build ctsim:" echo " cd ctsim.git; ./configure; make" SHELL end