Luca Prete | 8137ffc | 2016-08-16 11:53:45 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # install-base.sh |
| 3 | # |
| 4 | # Runs as root. |
| 5 | # |
| 6 | # This script builds a base ONOS VM. This is basically just an Ubuntu VM with ONOS's dependencies installed. |
| 7 | |
| 8 | oracle-java8-installer shared/accepted-oracle-license-v1-1 select true |
| 9 | oracle-java8-installer shared/accepted-oracle-license-v1-1 seen true |
| 10 | |
| 11 | sudo add-apt-repository -y ppa:webupd8team/java |
| 12 | |
| 13 | sudo apt-get update |
| 14 | |
| 15 | sudo apt-get install -y git maven unzip curl wget lxc virtualbox-guest-utils \ |
| 16 | wireshark quagga erlang make gcc autoconf openssl libssl0.9.8 libssl-dev libncurses5 \ |
| 17 | libncurses5-dev oracle-java8-installer oracle-java8-set-default |
| 18 | |
| 19 | # -------------- Setup keys ------------------- |
| 20 | |
| 21 | mkdir -p ~/.ssh |
| 22 | ssh-keygen -t rsa -P "" -f .ssh/id_rsa |