|
|
|
@ -12,7 +12,7 @@ Vagrant.configure("2") do |config|
|
|
|
|
|
|
|
|
|
|
# Every Vagrant development environment requires a box. You can search for
|
|
|
|
|
# boxes at https://vagrantcloud.com/search.
|
|
|
|
|
config.vm.box = "bento/ubuntu-16.04"
|
|
|
|
|
config.vm.box = "ubuntu/xenial64"
|
|
|
|
|
|
|
|
|
|
# Disable automatic box update checking. If you disable this, then
|
|
|
|
|
# boxes will only be checked for updates when the user runs
|
|
|
|
@ -47,6 +47,7 @@ Vagrant.configure("2") do |config|
|
|
|
|
|
# the path on the guest to mount the folder. And the optional third
|
|
|
|
|
# argument is a set of non-required options.
|
|
|
|
|
# config.vm.synced_folder "../data", "/vagrant_data"
|
|
|
|
|
config.vm.synced_folder ".", "/vagrant_data"
|
|
|
|
|
|
|
|
|
|
# Provider-specific configuration so you can fine-tune various
|
|
|
|
|
# backing providers for Vagrant. These expose provider-specific options.
|
|
|
|
@ -55,14 +56,14 @@ Vagrant.configure("2") do |config|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
|
# Display the VirtualBox GUI when booting the machine
|
|
|
|
|
# vb.gui = true
|
|
|
|
|
vb.customize [
|
|
|
|
|
"modifyvm", :id,
|
|
|
|
|
"--audio", "coreaudio",
|
|
|
|
|
"--audiocontroller", "hda"
|
|
|
|
|
]
|
|
|
|
|
# vb.customize [
|
|
|
|
|
# "modifyvm", :id,
|
|
|
|
|
# "--audio", "coreaudio",
|
|
|
|
|
# "--audiocontroller", "hda"
|
|
|
|
|
# ]
|
|
|
|
|
|
|
|
|
|
# Customize the amount of memory on the VM:
|
|
|
|
|
vb.memory = "1024"
|
|
|
|
|
vb.memory = "2024"
|
|
|
|
|
end
|
|
|
|
|
#
|
|
|
|
|
# View the documentation for the provider you are using for more
|
|
|
|
@ -75,5 +76,18 @@ Vagrant.configure("2") do |config|
|
|
|
|
|
# apt-get update
|
|
|
|
|
# apt-get install -y apache2
|
|
|
|
|
# SHELL
|
|
|
|
|
|
|
|
|
|
# config.vm.provision "shell", inline: <<-SHELL
|
|
|
|
|
# sudo apt-get update
|
|
|
|
|
# sudo apt-get -y install dkms
|
|
|
|
|
|
|
|
|
|
# #https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
|
|
|
|
|
# wget http://ppa.launchpad.net/ubuntu-audio-dev/alsa-daily/ubuntu/pool/main/o/oem-audio-hda-daily-dkms/oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
|
|
|
|
|
# sudo dpkg -i oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
|
|
|
|
|
# rm oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
|
|
|
|
|
# sudo apt-get -y install python-dev ipython python-numpy python-matplotlib python-scipy cython alsa-utils paman
|
|
|
|
|
# sudo usermod -a -G audio vagrant
|
|
|
|
|
# SHELL
|
|
|
|
|
|
|
|
|
|
config.vm.provision "shell", path: "install.sh", privileged: true
|
|
|
|
|
end
|
|
|
|
|
end
|