Last active
April 13, 2017 16:18
-
-
Save francoiskha/2de79004878aac8e781c5e063ee1711d to your computer and use it in GitHub Desktop.
vbox ubuntu desktop
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.provider 'virtualbox' do |vb| | |
# vb.memory = 4096 | |
# vb.cpus = 6 | |
vb.gui = true | |
vb.customize ['modifyvm', :id, '--clipboard', 'bidirectional'] | |
end | |
config.vm.box = 'ubuntu/xenial64' | |
config.vm.network 'private_network', type: 'dhcp' | |
config.vm.provision "shell", inline: "sudo apt-get update" | |
config.vm.provision "shell", inline: "sudo apt-get install -y lubuntu-desktop virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 language-pack-fr" | |
# mot de passe : ubuntu | |
config.vm.provision "shell", inline: "sudo usermod --password JhkuWoBl8woDw ubuntu" | |
# keyboard fr | |
config.vm.provision "shell", inline: "sudo sed -i 's/XKBLAYOUT=\"\w*\"/XKBLAYOUT=\"fr\"/g' /etc/default/keyboard" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment