Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 2.04 KB

installation.md

File metadata and controls

58 lines (44 loc) · 2.04 KB

Installation: Vagrant Setup

Prerequisite

To get started install these softwares on your host machine:

  1. Install Vagrant, it is a wrapper around virtualization softwares like VirtualBox, VMWare etc.: https://www.vagrantup.com/downloads.html

  2. Install VirtualBox, this would be your VM provider: https://www.virtualbox.org/wiki/Downloads

  3. Install Git, it is a distributed version control system: https://git-scm.com/downloads

  4. Install X Server and SSH capable terminal

    • For Windows install Xming and Putty.
    • For MAC OS install XQuartz and Terminal.app (builtin)
    • Linux comes pre-installed with X server and Gnome terminal + SSH (buitlin)

Getting Started

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 the APT software user interface. For example, to install vim editor, you need to run the command:
$ sudo apt-get install vim