-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
27 lines (27 loc) · 1.29 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.hostname = "simple-desktop"
config.vm.provider "virtualbox" do |v|
v.name = "simple-desktop"
v.gui = true
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--uartmode1", "file", File::NULL]
v.customize ["modifyvm", :id, "--memory", 4096, "--cpus", 4, "--vram", 256, "--accelerate3d", "on"]
v.customize ["setextradata", :id, "GUI/MaxGuestResolution", "any" ]
v.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32" ]
v.customize ["setextradata", :id, "GUI/CustomVideoMode1", "1024x768x32" ]
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get upgrade -y
apt-get install -y ubuntu-desktop
cp -f /vagrant/simple-desktop.sh /usr/bin/
runuser -l vagrant -c 'sudo -E simple-desktop.sh setup'
runuser -l vagrant -c 'sudo -E export DISPLAY=:0.0; dbus-launch; export $(dbus-launch); simple-desktop.sh install theme'
runuser -l vagrant -c 'sudo -E simple-desktop.sh install developer'
runuser -l vagrant -c 'sudo -E simple-desktop.sh remove bloat'
runuser -l vagrant -c 'sudo -E simple-desktop.sh install cleanup_script'
reboot
SHELL
end