alshabib | bca6bf2 | 2014-11-15 16:38:45 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # vm-setup.sh |
| 3 | # |
| 4 | # This script installs ONOS dependencies and installs a desktop environment on a Miniet VM. |
| 5 | |
| 6 | |
| 7 | USER=tutorial1 |
| 8 | USER_HOME=/home/${USER} |
| 9 | |
| 10 | export ONOS_FEATURES="webconsole,onos-api,onos-core,onos-cli,onos-openflow" |
| 11 | export ONOS_USER=$USER |
| 12 | |
| 13 | export ONOS_ROOT=~/onos-next |
| 14 | source $ONOS_ROOT/tools/dev/bash_profile |
| 15 | |
| 16 | cd $ONOS_ROOT |
alshabib | 7045539 | 2014-11-17 22:58:49 -0800 | [diff] [blame] | 17 | mvn clean install |
alshabib | bca6bf2 | 2014-11-15 16:38:45 -0800 | [diff] [blame] | 18 | cd - |
| 19 | |
| 20 | sed -i -e s/sdn/$USER/ onos-next/tools/package/debian/onos.conf |
| 21 | |
| 22 | cat << EOF >> onos-next/tools/test/cells/tutorial |
| 23 | export ONOS_NIC=127.0.0.* |
| 24 | export OC1="127.0.0.1" |
| 25 | export OCI="${OC1}" |
alshabib | e76ada6 | 2014-11-15 16:43:16 -0800 | [diff] [blame] | 26 | export ONOS_FEATURES="webconsole,onos-rest,onos-api,onos-core,onos-core-trivial,onos-cli,onos-openflow" |
alshabib | bca6bf2 | 2014-11-15 16:38:45 -0800 | [diff] [blame] | 27 | EOF |
| 28 | |
| 29 | onos-package |
alshabib | ff061ee | 2014-11-17 15:57:10 -0800 | [diff] [blame] | 30 | onos-install -f $OC1 |
alshabib | bca6bf2 | 2014-11-15 16:38:45 -0800 | [diff] [blame] | 31 | |