Due to the need for work, download and install onos1.0.2 version, we look at the need to download and install a more advanced version
Reference Link: http://www.sdnlab.com/14650.html
1. System environment
Ubuntu16.04 LTS 64bit:https://www.ubuntu.com/download/desktop (Desktop version)
2. Installation dependent (the version selected here is based on the Onos version, and in the reference link above, the author mentions----" Instructions for the MAVEN and KARAF versions: the recommended karaf-3.0.3 and Maven-3.3.1 are recommended here, as this is the same as the current environment used by Onos developers, and is also intended to facilitate the configuration of environment variables and reduce the errors caused by version inconsistencies. " I did not find a certain version of Maven in the Onos source Pom.xml, I feel that the file is a bit messy. But open the Onos source file: Tools/dev/bash_profile, the related system configuration shows the three dependent versions, as shown, and the last environment variable of the original text imported in this bash_profile file, So I think according to the version mentioned in the installation of dependencies can, of course, modify the configuration file in the version number is also possible, but I think the former more reliable point)
Apache Maven 3.2.2
Apache Karaf 3.0.2
Java 8 JDK
3. Instructions for installation steps (most of the methods used here refer to the author of the article)
Note: in the future installation process using ordinary user rights can be, the use of root permissions will give a lot of inconvenience to future use!
3.1 Under/home/user/(that is, ~/) create two directories (this is the desktop version of the click the Sidebar folder and then choose Home)
~/downloads: The compressed file used to drop the download
~/applications: Extract directory of the above compressed files
3.2 Downloads Install maven and Karaf
[email protected]:~$ cd ~ #进入用户目录, prepare for the following operation [email protected]:~$ CD; mkdir Downloads applications #创建存放软件和安装软件的目录 [email protected]:~$ cd Downloads #进入下载目录准备下载Maven和Karaf /c6> [email protected]:~$ wget http://archive.apache.org/dist/karaf/3.0.2/Apache-Karaf- 3.0.2.tar.gz#下载Karaf [email protected]:~$ wget http://archive.apache.org/dist/maven/maven-3/3.2.2/binaries/ < Span class= "CRAYON-E" > < Span class= "CRAYON-CN" > apache-maven-3.2.2- bin.tar.gz Span class= "crayon-c" > #下载Maven [email protected]:~$ tar -zxvf Apache-Karaf-3.0.2.tar.gz -C .. /Applications/ #解压到Application目录 [email protected] :~$ tar -zxvf Apache-maven-3.2.2-bin. Tar . GZ -C .. /Applications/ #解压到Application目录
3.3 Download Onos source code
Version 1.0 GitHub https://github.com/opennetworkinglab/onos/tree/onos-1.0
Here is a small problem to note, downloaded to the/home/user/directory after extracting the file name is onos-onos-1.0, and onos bash_profile environment variable specified
So I changed the file name onos-onos-1.0 to Onos, so that you do not have to modify the configuration file, if the environment variable name and source file name is not the same, will be the following source ~/.profile command after the error no such cell:local,
Upon completion of the above work:
3.4 Install Oracle JAVA8, environment variable configuration, source installation Onos
Links with original articles
MVN The Clean install command waits a long time after the build success prompt indicates that the installation was successful
3.5 Running onos1.0.2
The original article startup method does not apply to the onos1.0 version, because the bash_profile did not find the OK this alias, the error Ok:command not found, so refer to another article
Reference article link: http://sdnhub.cn/index.php/installing-and-running-onos/directly see the 3rd part----Run Onos
When I modified the configuration file, I found the version of Onos I downloaded was 1.0.2-snapshot, so the appended content was modified according to the author's prompt.
How to view version: Onos/tools/package/brading/target directory, there is a corresponding Jar package display version 1.0.2-snapshot
After the append is completed, enter Karaf Laean start Onos (if startup is unsuccessful, restart the virtual machine, so that the configuration file takes effect), the boot Success interface is as follows, some will show Onos, should be the same, this in the article
http://sdnhub.cn/index.php/installing-and-running-onos/in section 3.2 mentions
Enter Shutdown to exit
----------------------------------------------------------------------are done! Claps! ----------------------------------------------------------------------
ubuntu16.04 under the source installation onos1.0.2