-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
57 lines (41 loc) · 1.91 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
$script = <<SCRIPT
## To run the stages you will also want to put your user account in the dialup group
## Additional libraries for muse sdk
## http://www.atlantsembedded.com/b/getting-muse-sdk-work-linux
## ftp://sccn.ucsd.edu/pub/software/LSL/SDK/liblsl-C-C++-1.11.zip
# libbluetooth3-dev:i386 libstdc++6:i386 liblo7:i386
## gevent problems ---
# may need to
# easy_install -U gevent==1.1b4
# OR
# edit handler.py and transports.py in the gevent-socketio module and change 3600 to '3600' in quotes
## Mac Pre-Reqs
# manually install liblo from source
# sudo port install py27-cython py27-pip py27-pyqt4 py27-pyqt5 git py27-gobject3 py27-webkitgtk
# sudo port select --set pip pip27
# sudo pip install pyliblo gevent-socketio pyserial gipc
## Sys Pre-Reqs
sudo apt-get install -y python python-pip python-dev git liblo-dev python-numpy python-scipy python-pygame python-qt4 python-qt4-dev cython lib32ncurses5
sudo pip install pyliblo gevent-socketio pyserial gipc
## MDM
sudo rm -rf meditation-deathmatch
git clone https://github.com/bishopZ/meditation-deathmatch
touch pull-done
## Stages
# You'll need to make sure you have a working arduino with the right sketch plugged in and you'll need to find the device name with dmesg or something
# Once you have that, make sure it matches as the ser_device variable in lib/socketiogame.py
## Headsets
SCRIPT
Vagrant.configure("2") do |config|
config.vm.define :ubuntu do |ubuntu|
ubuntu.vm.box = 'ubuntu-1604'
ubuntu.vm.box_url = 'https://cloud-images.ubuntu.com/vagrant/xenial/current/xenial-server-cloudimg-amd64-vagrant-disk1.box'
end
config.vm.network :private_network, ip: '10.200.0.2'
config.vm.network "forwarded_port", guest: 3101, host: 3101
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
config.vm.provision "shell", inline: $script
end