adding install script to help automate setup for others, small touchup to devguide doc
This commit is contained in:
parent
298cd2c9d3
commit
fc15918a64
2 changed files with 41 additions and 1 deletions
|
@ -97,7 +97,7 @@ python3 -m pipenv install $EMANEREPO/src/python
|
||||||
This will run the core-daemon server using the configuration files within the repo.
|
This will run the core-daemon server using the configuration files within the repo.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
python3 -m pipenv run core
|
sudo python3 -m pipenv run core
|
||||||
```
|
```
|
||||||
|
|
||||||
### Running CORE Python GUI
|
### Running CORE Python GUI
|
||||||
|
|
40
install.sh
Executable file
40
install.sh
Executable file
|
@ -0,0 +1,40 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# exit on error
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# detect os/ver for install type
|
||||||
|
os=""
|
||||||
|
if [[ -f /etc/os-release ]]; then
|
||||||
|
. /etc/os-release
|
||||||
|
os=${NAME}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check install was found
|
||||||
|
if [[ ${os} == "Ubuntu" ]]; then
|
||||||
|
# install system dependencies
|
||||||
|
sudo apt install -y automake pkg-config gcc libev-dev bridge-utils ebtables \
|
||||||
|
python3.6 python3.6-dev python3-pip python3-tk tk libtk-img ethtool libtool libreadline-dev autoconf
|
||||||
|
|
||||||
|
# install python dependencies
|
||||||
|
sudo python3 -m pip install -r daemon/requirements.txt
|
||||||
|
|
||||||
|
# make and install ospf mdr
|
||||||
|
git clone https://github.com/USNavalResearchLaboratory/ospf-mdr /tmp/ospf-mdr
|
||||||
|
cd /tmp/ospf-mdr
|
||||||
|
./bootstrap.sh
|
||||||
|
./configure --disable-doc --enable-user=root --enable-group=root --with-cflags=-ggdb \
|
||||||
|
--sysconfdir=/usr/local/etc/quagga --enable-vtysh \
|
||||||
|
--localstatedir=/var/run/quagga
|
||||||
|
make -j8
|
||||||
|
sudo make install
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# build and install core
|
||||||
|
./bootstrap.sh
|
||||||
|
./configure
|
||||||
|
make -j8
|
||||||
|
sudo make install
|
||||||
|
else
|
||||||
|
echo "unknown os ${os} cannot install"
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue