Created
August 15, 2019 15:58
-
-
Save stiv-yakovenko/d6772ca6d8d834a646601f2beaab827b to your computer and use it in GitHub Desktop.
Install ubuntu 18.04/xwindows with vagrant
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| | |
# Ubuntu 15.10 | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = true | |
end | |
# Install xfce and virtualbox additions | |
config.vm.provision "shell", inline: "sudo apt-get update" | |
config.vm.provision "shell", inline: "sudo apt-get install -y xfce4 virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11" | |
# Permit anyone to start the GUI | |
config.vm.provision "shell", inline: "sudo sed -i 's/allowed_users=.*$/allowed_users=anybody/' /etc/X11/Xwrapper.config" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment