This repository contains a vagrant machine that sets up and configures a virtual environment containing the necessary software to run a dashboard displaying Coursera MOOC data from your local browser.
Below, you will find instructions to boot the VM. For more detailed instructions, please visit this document.
Setting up the vagrantbox
See https://docs.vagrantup.com/v2/ for documentation on vagrant.
The vagrant repository contains several files:
- Vagrantfile --> The vagrant configuration (amount of ram, cpus to use etc.)
- provision.sh --> Bash file with all programs to install
- R_requirements.txt --> contains a list of R packages to be installed
- InstallRpackages.R --> Code to install R packages
- export.sh --> Bash file that exports environment/PATH variables. Due to the nature of vagrant VMs, it is called every time the VM starts up
Navigate to the folder where you downloaded the box via terminal and run 'vagrant up' to start up the machine. When it is fully provisioned / booted (this could take some time if the box is starting up for the first time), you can enter the environment by entering "vagrant ssh".
vagrant up - Sets up the Virtual Machine (VM)
vagrant ssh - Boots into the VM (need to vagrant up first)
vagrant suspend - VM is temporarily suspended. Machine state is written to hard drive.
vagrant halt - VM is shut down.
vagrant destroy - Destroys VM
To find the IP adress on your local computer, run "netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10" in the vagrant box