...
Code Block | ||
---|---|---|
| ||
build:~$ sudo -s build:~# |
Prerequisites and Setup for the Tutorial
...
Code Block | ||
---|---|---|
| ||
build:~$ ssh -l sdn 192.168.56.101 |
...
If the ssh connection failed make sure that the openssh-server is installed by running:
...
Code Block | ||
---|---|---|
| ||
build:~$ sudo apt-get install git-core |
- Karaf, Maven
Create two directories called ~/Downloads and ~/Applications. Download the Karaf 3.0.5 and Maven 3.3.9 binaries (the tar.gz versions of both) into ~/Downloads and extract it to ~/Applications. Keep the tar archives in ~/Downloads; we'll need that later.
Code Block | ||
---|---|---|
| ||
build:~$ cd; mkdir Downloads Applications build:~$ cd Downloads build:~$ wget http://archive.apache.org/dist/karaf/3.0.5/apache-karaf-3.0.5.tar.gz build:~$ wget http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz build:~$ tar -zxvf apache-karaf-3.0.5.tar.gz -C ../Applications/ build:~$ tar -zxvf apache-maven-3.3.9-bin.tar.gz -C ../Applications/ |
...
- Next, install Oracle Java 8:
Code Block | ||
---|---|---|
| ||
build:~$ sudo apt-get install software-properties-common -y build:~$ sudo add-apt-repository ppa:webupd8team/java -y build:~$ sudo apt-get update build:~$ sudo apt-get install oracle-java8-installer oracle-java8-set-default -y |
...
It will ask you to acknowledge the license; do so when prompted.
...
Code Block | ||
---|---|---|
| ||
build:~$ cd ~ build:~$ git clone https://gerrit.onosproject.org/onos |
This will create a directory called onos, with the source code in it.
...
Code Block | ||
---|---|---|
| ||
/opt/onos/apache-karaf-$KARAF_VERSION/bin/karaf clean |
...
What’s next?
- Now that you've got the basics of a development environment, try a hand at creating an application in the Template Application Tutorial.
- Learn more about the installation process in Installing and Running ONOS.
- Learn more about cells in Test Environment Setup.
...