sudo apt-get update
sudo apt-get -y install mongodb
sudo systemctl start mongodb
Install MongoDB C Driverapt-get install libmongoc-1.0-0
apt-get install libbson-1.0
Define a TUN deviceWrite the configuration file for pgwtun and create it:
sudo sh -c "cat << EOF > /etc/systemd/network/99-nextepc.netdev
[NetDev]
Name=pgwtun
Kind=tun
EOF"
sudo sh -c "cat << EOF > /etc/systemd/network/99-nextepc.network
[Match]
Name=pgwtun
[Network]
Address=45.45.0.1/16
Address=cafe::1/64
EOF"
sudo systemctl enable systemd-networkd
sudo systemctl restart systemd-networkd
Install dependencies
sudo apt-get -y install autoconf libtool gcc pkg-config \
git flex bison libsctp-dev libgnutls28-dev libgcrypt-dev \
libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev
NOTE:
The libmongoc-dev package must be installed, otherwise an error occurs while executing ./configure --prefix= 'PWD' /install
Build
git clone https://github.com/nextepc/nextepc
cd nextepc
autoreconf -iv
./configure --prefix=`pwd`/install
make -j `nproc`
make install
Run
./nextepc-epcd
Install Node.js
sudo apt-get -y install curl
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get -y install nodejs --fix-missing
Install the dependencies of WebUI
cd webui
npm install
Run WebUI
npm run dev
Visit http://localhost:3000