1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/make/vagrant/vagrant_openpilot_dev/Vagrantfile

33 lines
1.0 KiB
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
# GUI can be enabled after provisioning. For now SSH and GUI is not compatible
# vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "4096"]
end
config.vm.provision :shell, :path => "bootstrap.sh"
config.ssh.forward_x11=true
# update definitions
config.vm.provision "shell", inline: "apt-get update"
# just the basic desktop environment. if you want the addons, you can install them later
config.vm.provision "shell", inline: "apt-get install xubuntu-desktop --no-install-recommends --assume-yes"
# otherwise icons don't get loaded
config.vm.provision "shell", inline: "apt-get install xubuntu-icon-theme --assume-yes"
#activate logon with gui and reboot
config.vm.provision "shell", inline: "dpkg-reconfigure lightdm"
config.vm.provision "shell", inline: "reboot"
end