adding distribution support
diff --git a/vm-setup.sh b/vm-setup.sh
index 20f8e11..e93f11b 100644
--- a/vm-setup.sh
+++ b/vm-setup.sh
@@ -6,13 +6,16 @@
export CURRENT_USER=tutorial1
export SDN_IP_USER=sdnip
+export DIST_USER=distributed
export USER_HOME=/home/${CURRENT_USER}
URL='https://gerrit.onosproject.org/gitweb?p=onos-vm.git;a=blob_plain;hb=refs/heads/onos-tutorial;f=tutorial1-setup.sh'
SDNIP_URL='https://gerrit.onosproject.org/gitweb?p=onos-vm.git;a=blob_plain;hb=refs/heads/onos-tutorial;f=sdnip-setup.sh'
+DIST_URL='https://gerrit.onosproject.org/gitweb?p=onos-vm.git;a=blob_plain;hb=refs/heads/onos-tutorial;f=dist-setup.sh'
sudo /usr/sbin/useradd -c "Basic ONOS Tutorial" -d /home/${CURRENT_USER} -U -m -p $(openssl passwd -1 ${CURRENT_USER}) -s /bin/bash ${CURRENT_USER}
sudo /usr/sbin/useradd -c "Basic SDN-IP Tutorial" -d /home/${SDN_IP_USER} -U -m -p $(openssl passwd -1 ${SDN_IP_USER}) -s /bin/bash ${SDN_IP_USER}
+sudo /usr/sbin/useradd -c "Distributed Tutorial" -d /home/${DIST_USER} -U -m -p $(openssl passwd -1 ${DIST_USER}) -s /bin/bash ${DIST_USER}
echo "${CURRENT_USER} ALL=(ALL) NOPASSWD:ALL" >> tutorial1
@@ -24,9 +27,13 @@
sudo chown root:root /etc/sudoers.d/sdnip
+echo "${DIST_USER} ALL=(ALL) NOPASSWD:ALL" >> dist
+sudo cp dist /etc/sudoers.d
+sudo chown root:root /etc/sudoers.d/dist
+
sudo apt-get update
-sudo apt-get install -y git openjdk-8-jdk maven unzip quagga
+sudo apt-get install -y git openjdk-8-jdk maven unzip quaggaa docker.io
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
@@ -45,3 +52,7 @@
wget -O sdnip-setup.sh $SDNIP_URL
sudo -u ${SDN_IP_USER} -H sh -c 'cp sdnip-setup.sh ~/ && cd ~/ && sh sdnip-setup.sh'
+
+wget -O dist-setup.sh $DIST_URL
+
+sudo -u ${DIST_USER} -H sh -c 'cp dist-setup.sh ~/ && cd ~/ && sh dist-setup.sh'