Skip to content

Instantly share code, notes, and snippets.

@stiv-yakovenko
Created August 15, 2019 15:58
Show Gist options
  • Save stiv-yakovenko/d6772ca6d8d834a646601f2beaab827b to your computer and use it in GitHub Desktop.
Save stiv-yakovenko/d6772ca6d8d834a646601f2beaab827b to your computer and use it in GitHub Desktop.
Install ubuntu 18.04/xwindows with vagrant
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