Flavio Castro | 574d238 | 2015-06-26 16:39:49 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Script to install ONOS dependencies on Ubuntu 14.04 |
| 4 | # |
| 5 | |
| 6 | echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections |
| 7 | |
| 8 | echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections |
| 9 | |
| 10 | sudo apt-get install software-properties-common -y |
| 11 | sudo add-apt-repository ppa:webupd8team/java -y |
| 12 | sudo apt-get update && sudo apt-get install oracle-java8-installer oracle-java8-set-default git wget -y |
| 13 | export JAVA_HOME=/usr/lib/jvm/java-8-oracle |
| 14 | |
| 15 | cd; mkdir Downloads Applications |
| 16 | cd Downloads |
zhangyuanyou | 57c7c31 | 2016-08-17 10:39:34 +0800 | [diff] [blame^] | 17 | KARAF_VERSION=${KARAF_VERSION:-3.0.5} |
| 18 | wget https://downloads.onosproject.org/third-party/apache-karaf-$KARAF_VERSION.tar.gz |
Jian Li | 98dc9ad | 2016-01-06 14:05:47 -0800 | [diff] [blame] | 19 | wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz |
zhangyuanyou | 57c7c31 | 2016-08-17 10:39:34 +0800 | [diff] [blame^] | 20 | tar -zxvf apache-karaf-$KARAF_VERSION.tar.gz -C ../Applications/ |
Jian Li | 98dc9ad | 2016-01-06 14:05:47 -0800 | [diff] [blame] | 21 | tar -zxvf apache-maven-3.3.9-bin.tar.gz -C ../Applications/ |
Flavio Castro | 574d238 | 2015-06-26 16:39:49 -0700 | [diff] [blame] | 22 | |