| useradd -m -d /home/sdn -s /bin/bash sdn |
| echo "sdn:rocks" | chpasswd |
| echo "sdn ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99_sdn |
| chmod 440 /etc/sudoers.d/99_sdn |
| update-locale LC_ALL="en_US.UTF-8" |
| if [ ${VM_TYPE} = "tutorial" ] |
| bash /vagrant/tutorial-bootstrap.sh |
| apt-get install software-properties-common -y |
| add-apt-repository ppa:webupd8team/java -y |
| echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections |
| apt-get -y --no-install-recommends install \ |
| oracle-java8-set-default \ |
| curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| python2.7 get-pip.py --force-reinstall |
| tee -a /etc/ssh/sshd_config <<EOF |
| bash /vagrant/user-bootstrap.sh |