To get started install these softwares on your host
machine:
-
Install Vagrant, it is a wrapper around virtualization softwares like VirtualBox, VMWare etc.: https://www.vagrantup.com/downloads.html
-
Install VirtualBox, this would be your VM provider: https://www.virtualbox.org/wiki/Downloads
-
Install Git, it is a distributed version control system: https://git-scm.com/downloads
-
Install X Server and SSH capable terminal
Clone the Sonata
repository from Github:
$ git clone https://github.com/Sonata-Princeton/SONATA-DEV.git
Change the directory to Sonata
:
$ cd SONATA-DEV
Checkout the tutorial
branch:
$ git checkout tutorial
Now run the vagrant up command. This will read the Vagrantfile from the current directory and provision the VM accordingly:
$ vagrant up
Vagrant
The provisioning scripts will install all the required software (and their dependencies) to run the Sonata
demo. Now ssh in to the VM:
$ vagrant ssh
Notes:
- Notice that the
line
in the Vagrant file ensures that the files in your
SONATA-DEV
directory are in sync with the ones in the/home/vagrant/dev
directory of your VM. This ensures that you can use any IDEs (editors) in your host machine for development. If you prefer to edit files in the VM directly, feel free to install any software using theAPT
software user interface. For example, to installvim
editor, you need to run the command:
$ sudo apt-get install vim