Last active
October 14, 2022 07:06
-
-
Save DLakomy/6e4cbb9f36bb9ff40f7ed966aad8da45 to your computer and use it in GitHub Desktop.
Light Ubuntu Vagrant (20.04) with XFCE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "bento/ubuntu-20.04" | |
config.vm.provider :virtualbox do |vb| | |
vb.gui = true | |
vb.memory = "4096" | |
vb.customize ["modifyvm", :id, "--vram", "128"] | |
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"] | |
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"] | |
end | |
config.vm.provision "shell", inline: "sudo rm /etc/localtime && sudo ln -s /usr/share/zoneinfo/Europe/Warsaw /etc/localtime", run: "always" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends xorg xfce4 lightdm | |
sudo apt-get install -y lightdm-gtk-greeter virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 | |
echo "Setup finished, to make everything work, please run: vagrant reload" | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment