Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vagrant file for ubuntu bionic 64 in gui mode
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |v|
v.gui = true
v.memory = 2048
end
# In case you need an IP to access the VM from another software :
# config.vm.network "private_network", ip: "192.168.56.101"
config.vm.provision "shell", inline: "sudo sed -i 's/^# deb/deb/g' /etc/apt/sources.list"
config.vm.provision "shell", inline: "sudo apt-get update && sudo apt-get upgrade -y"
config.vm.provision "shell", inline: "sudo loadkeys fr"
config.vm.provision "shell", inline: "sudo apt-get install -y gnome-session gdm3"
config.vm.provision "shell", inline: "sudo sed -i 's/XKBLAYOUT=\"us\"/XKBLAYOUT=\"fr\"/g' /etc/default/keyboard"
config.vm.provision "shell", inline: "sudo apt-get install -y virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11"
config.vm.provision "shell", inline: "sudo shutdown -r now"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment