This repository has been archived by the owner on Dec 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
48 lines (42 loc) · 1.69 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#Base image
config.vm.box = "ubuntu/xenial64"
#Host only network for sharing
config.vm.network "private_network", ip: "192.168.222.222"
#Shared folder
config.vm.synced_folder ".", "/home/vagrant/Desktop/shared",
SharedFoldersEnableSymlinksCreate: false
# id: "core", :nfs => true, :nfs_version => 4, :mount_options => ['nolock,noatime']
config.vm.provider :virtualbox do |vb|
#Open virtualbox GUI
vb.gui = true
#Virtualbox CPU/Memory config
vb.customize ["modifyvm", :id, "--memory", 1536]
vb.customize ["modifyvm", :id, "--cpus", 1]
end
#Provision script for setup
config.vm.provision "shell", inline: <<-SHELL
echo "- Update packages list -"
apt-get update
echo "- Install xubuntu desktop enviroment -"
apt-get install -y xubuntu-desktop
echo "- Install NTP -"
apt-get install -y ntp
echo "- Install virtualbox guest addons -"
apt-get install -y virtualbox-guest-dkms-hwe virtualbox-guest-utils-hwe
echo "- Install compiling programs -"
apt-get install -y build-essential cmake git
echo "- Install libraries -"
apt-get install -y libsdl2-dev
#libboost-dev 1.66 not available yet
echo "- Setting lightdm -"
echo "[SeatDefaults]" > /etc/lightdm/lightdm.conf.d/10-autologin.conf
echo "autologin-user=vagrant" >> /etc/lightdm/lightdm.conf.d/10-autologin.conf
systemctl enable lightdm
systemctl start lightdm
echo "- Finished provision script -"
SHELL
end