blob: 50f973cf5eef860ff0cd2b48dac4664d165fe0d3 [file] [log] [blame]
Luca Prete8137ffc2016-08-16 11:53:45 -07001#!/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
Luca Pretef9fb74a2016-08-16 23:35:22 -07008echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
9echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
10
11sudo apt-get install -y software-properties-common python-software-properties
Luca Prete8137ffc2016-08-16 11:53:45 -070012
13sudo add-apt-repository -y ppa:webupd8team/java
14
15sudo apt-get update
16
17sudo apt-get install -y git maven unzip curl wget lxc virtualbox-guest-utils \
18wireshark quagga erlang make gcc autoconf openssl libssl0.9.8 libssl-dev libncurses5 \
19libncurses5-dev oracle-java8-installer oracle-java8-set-default
20
21# -------------- Setup keys -------------------
22
23mkdir -p ~/.ssh
24ssh-keygen -t rsa -P "" -f .ssh/id_rsa