-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
30 lines (22 loc) · 1.04 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
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.gui = true
v.memory = 4096
end
config.vm.box = "ubuntu/focal64"
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y --no-install-recommends ubuntu-desktop
sudo apt-get install -y --no-install-recommends dkms virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
sudo apt-get install -y --no-install-recommends yaru-theme-gtk yaru-theme-sound yaru-theme-gnome-shell yaru-theme-icon yaru-theme-unity
sudo chmod +x /workspace/run.sh /workspace/programs.sh /workspace/configs.sh
sudo usermod -a -G sudo vagrant
SHELL
# Install programs as non-privileged user.
config.vm.provision "shell", privileged: false, inline: <<-SHELL
/workspace/run.sh setup
SHELL
config.vm.provision "shell", inline: "sudo shutdown -r now"
config.vm.synced_folder ".", "/workspace"
end