upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Vagrantfile 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure(2) do |config|
  4. # You can only have one config.vm.box uncommented at a time
  5. # Comment this and uncomment another if you don't want to use the minimal Arch box
  6. config.vm.box = "dragon788/arch-ala-elasticdog"
  7. # VMware/Virtualbox 64 bit
  8. # config.vm.box = "phusion/ubuntu-14.04-amd64"
  9. #
  10. # VMware/Virtualbox 64 bit
  11. #config.vm.box = "puphpet/centos65-x64"
  12. #
  13. # The opensuse boxes don't have dfu-util in their default repositories
  14. #
  15. # The virtualbox version has tools issues
  16. # VMware/Virtualbox 64 bit
  17. #config.vm.box = "bento/opensuse-13.2-x86_64"
  18. #
  19. # Virtualbox only
  20. #config.vm.box = "bento/opensuse-13.2-i386"
  21. # config.vm.box = ""
  22. # config.vm.box = ""
  23. # This section allows you to customize the Virtualbox VM
  24. # settings, ie showing the GUI or upping the memory
  25. # or cores if desired
  26. config.vm.provider "virtualbox" do |vb|
  27. # Hide the VirtualBox GUI when booting the machine
  28. vb.gui = false
  29. # Uncomment the below lines if you want to program
  30. # your Teensy via the VM rather than your host OS
  31. #vb.customize ['modifyvm', :id, '--usb', 'on']
  32. #vb.customize ['usbfilter', 'add', '0',
  33. # '--target', :id,
  34. # '--name', 'teensy',
  35. # '--vendorid', '0x16c0',
  36. # '--productid','0x0478'
  37. # ]
  38. # Customize the amount of memory on the VM:
  39. vb.memory = "512"
  40. end
  41. # This section allows you to customize the VMware VM
  42. # settings, ie showing the GUI or upping the memory
  43. # or cores if desired
  44. config.vm.provider "vmware_workstation" do |vmw|
  45. # Hide the VMware GUI when booting the machine
  46. vmw.gui = false
  47. # Customize the amount of memory on the VM:
  48. vmw.memory = "512"
  49. end
  50. config.vm.provider "vmware_fusion" do |vmf|
  51. # Hide the vmfare GUI when booting the machine
  52. vmf.gui = false
  53. # Customize the amount of memory on the VM:
  54. vmf.memory = "512"
  55. end
  56. # This script ensures the required packages for AVR programming are installed
  57. # It also ensures the system always gets the latest updates when powered on
  58. # If this causes issues you can run a 'vagrant destroy' and then
  59. # add a # before ,args: and run 'vagrant up' to get a working
  60. # non-updated box and then attempt to troubleshoot or open a Github issue
  61. config.vm.provision "shell", run: "always", path: "./util/avr_setup.sh", args: "-update"
  62. config.vm.post_up_message = """
  63. Log into the VM using 'vagrant ssh' on OSX or from Git Bash (Win)
  64. or 'vagrant ssh-config' and Putty or Bitvise SSH or another SSH tool
  65. Change directory (cd) to the keyboard you wish to program
  66. (Optionally) modify your layout,
  67. then run 'make clean'
  68. and then 'make' to compile the .eep and .hex files.
  69. Or you can copy and paste the example line below.
  70. cd /vagrant; cd keyboard; cd ergodox_ez; make clean; make
  71. """
  72. end