Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1023 Bytes

README_Vagrant.md

File metadata and controls

22 lines (13 loc) · 1023 Bytes

Testing in a VM

  • Install vagrant and virtualbox
  • run vagrant up, wait a long time
  • you now have a VirtualBox Ubuntu VM with the software running. The git repository is accessible from inside the VM as /home/vagrant/FabLabKasse.

Use vagrant rsync to sync the files from outside the VM into the VM. This is also automatically called by vagrant up (under certain conditions - once per VM boot?).

Use vagrant ssh to get a shell inside the VM. From there you can:

  • cat .xsession_errors to see the output of the running kassenterminal instance
  • export DISPLAY=:0, then you can run X applications like xterm
  • sudo service nodm restart to restart the graphical session and FabLabKasse application

run_in_vagrant.sh will automate most of these steps for you. It runs rsync and then the GUI with dummy printserver and (if available) FAUCard emulator.

When changing install_debian.sh, don't forget to:

  • vagrant rsync to sync your changes and then
  • vagrant provision to run the modified code