2018-10-12 19:30:03 +01:00
|
|
|
# CORE [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d94eb0244ade4510a106b4af76077a92)](https://www.codacy.com/app/blakeharnden/core?utm_source=github.com&utm_medium=referral&utm_content=coreemu/core&utm_campaign=Badge_Grade)
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
CORE: Common Open Research Emulator
|
2016-10-23 02:14:16 +01:00
|
|
|
|
2018-03-15 17:36:54 +00:00
|
|
|
Copyright (c)2005-2018 the Boeing Company.
|
2016-10-23 02:14:16 +01:00
|
|
|
|
2013-08-29 15:21:13 +01:00
|
|
|
See the LICENSE file included in this distribution.
|
|
|
|
|
2018-05-02 16:50:38 +01:00
|
|
|
## About
|
2016-10-23 02:14:16 +01:00
|
|
|
|
2018-05-02 16:50:38 +01:00
|
|
|
The Common Open Research Emulator (CORE) is a tool for emulating
|
|
|
|
networks on one or more machines. You can connect these emulated
|
|
|
|
networks to live networks. CORE consists of a GUI for drawing
|
|
|
|
topologies of lightweight virtual machines, and Python modules for
|
|
|
|
scripting network emulation.
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-05-02 16:50:38 +01:00
|
|
|
## Documentation and Examples
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-05-02 16:50:38 +01:00
|
|
|
* Documentation hosted on GitHub
|
2018-10-12 05:22:57 +01:00
|
|
|
* <http://coreemu.github.io/core/>
|
2018-05-02 16:50:38 +01:00
|
|
|
* Basic Script Examples
|
|
|
|
* [Examples](daemon/examples/api)
|
|
|
|
* Custom Service Example
|
|
|
|
* [sample.py](daemon/examples/myservices/sample.py)
|
|
|
|
* Custom Emane Model Example
|
|
|
|
* [examplemodel.py](daemon/examples/myemane/examplemodel.py)
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-05-02 16:50:38 +01:00
|
|
|
## Support
|
|
|
|
|
|
|
|
We are leveraging Discord for persistent chat rooms, voice chat, and
|
|
|
|
GitHub integration. This allows for more dynamic conversations and the
|
|
|
|
capability to respond faster. Feel free to join us at the link below.
|
2018-10-12 05:22:57 +01:00
|
|
|
<https://discord.gg/AKd7kmP>
|
2018-05-02 16:50:38 +01:00
|
|
|
|
|
|
|
You can also get help with questions, comments, or trouble, by using
|
|
|
|
the CORE mailing lists:
|
|
|
|
|
|
|
|
* [core-users](https://pf.itd.nrl.navy.mil/mailman/listinfo/core-users) for general comments and questions
|
|
|
|
* [core-dev](https://pf.itd.nrl.navy.mil/mailman/listinfo/core-dev) for bugs, compile errors, and other development issues
|
|
|
|
|
|
|
|
## Building CORE
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-01-11 20:03:55 +00:00
|
|
|
```shell
|
2018-01-11 19:29:06 +00:00
|
|
|
./bootstrap.sh
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
```
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-10-12 05:22:57 +01:00
|
|
|
### Building Documentation
|
2017-08-19 00:35:26 +01:00
|
|
|
|
2018-01-11 20:03:55 +00:00
|
|
|
```shell
|
2018-01-11 19:29:06 +00:00
|
|
|
./bootstrap.sh
|
|
|
|
./configure
|
2018-05-02 16:50:38 +01:00
|
|
|
make doc
|
2018-01-11 19:29:06 +00:00
|
|
|
```
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-10-12 05:22:57 +01:00
|
|
|
### Building Packages
|
2018-01-11 19:21:56 +00:00
|
|
|
|
2018-10-12 05:22:57 +01:00
|
|
|
Install fpm: <http://fpm.readthedocs.io/en/latest/installing.html>
|
2018-01-11 19:21:56 +00:00
|
|
|
|
|
|
|
Build package commands, DESTDIR is used for gui packaging only
|
|
|
|
|
2018-01-11 20:03:55 +00:00
|
|
|
```shell
|
2018-01-11 19:29:06 +00:00
|
|
|
./bootstrap.sh
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
mkdir /tmp/core-gui
|
|
|
|
make fpm DESTDIR=/tmp/core-gui
|
|
|
|
```
|
2018-01-11 19:21:56 +00:00
|
|
|
|
|
|
|
This will produce:
|
|
|
|
|
|
|
|
* CORE GUI rpm/deb files
|
2018-05-02 16:50:38 +01:00
|
|
|
* core-gui_$VERSION_$ARCH
|
2018-01-11 19:21:56 +00:00
|
|
|
* CORE ns3 rpm/deb files
|
2018-05-02 16:50:38 +01:00
|
|
|
* python-core-ns3_$VERSION_$ARCH
|
2018-01-11 19:21:56 +00:00
|
|
|
* CORE python rpm/deb files for SysV and systemd service types
|
2018-05-02 16:50:38 +01:00
|
|
|
* python-core-sysv_$VERSION_$ARCH
|
|
|
|
* python-core-systemd_$VERSION_$ARCH
|
2018-01-11 19:21:56 +00:00
|
|
|
|
2018-10-12 05:22:57 +01:00
|
|
|
### Running CORE
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
First start the CORE services:
|
|
|
|
|
2018-01-11 20:03:55 +00:00
|
|
|
```shell
|
2018-05-02 16:50:38 +01:00
|
|
|
# sysv
|
|
|
|
sudo service core-daemon start
|
|
|
|
# systemd
|
|
|
|
sudo systemctl start core-daemon
|
2018-01-11 19:29:06 +00:00
|
|
|
```
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2017-08-19 00:35:26 +01:00
|
|
|
This automatically runs the core-daemon program.
|
2013-08-29 15:21:13 +01:00
|
|
|
Assuming the GUI is in your PATH, run the CORE GUI by typing the following:
|
|
|
|
|
2018-01-11 20:03:55 +00:00
|
|
|
```shell
|
2018-01-11 19:29:06 +00:00
|
|
|
core-gui
|
|
|
|
```
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
This launches the CORE GUI. You do not need to run the GUI as root.
|