Install on Debian 9

  1. Update system.
apt-get update -y
apt-get upgrade -y
  1. Install JRE (Java SE Runtime Environment).
apt-get install -y openjdk-8-jre-headless
  1. Install mariadb.
apt-get install -y mariadb-server
  1. Start mariadb.
systemctl start mariadb.service
  1. Set mariadb root password.
mysql_secure_installation

image0

  1. Start mariadb on boot.
systemctl enable mariadb.service
  1. Connect to mariadb and create a database and user macmonitor with the password macmonitorpass (replace the password with the one created by you) with all permissions on this database.
mysql -u root -p
CREATE DATABASE macmonitor CHARACTER SET = "latin1" COLLATE ="latin1_swedish_ci";
GRANT ALL ON macmonitor.* TO macmonitor@127.0.0.1 IDENTIFIED BY 'macmonitorpass';
exit
  1. Install dependencies of Network MACMonitor.
apt-get install -y libcap2-bin
  1. Download Network MACMonitor package.
wget https://macmonitor.by/files/deb/network-macmonitor-latest.deb
  1. Install Network MACMonitor package.
dpkg -i --refuse-downgrade network-macmonitor-latest.deb
  1. In the settings file /opt/macmonitor/config/custom.properties change the value of the spring.datasource.password parameter (see 7).

image1

  1. Start program on boot.
systemctl enable macmonitor
  1. Start program.
systemctl start macmonitor
  1. Wait a few minutes. Log in to the program using link http://<ip address>:8080
User — admin
Password — admin

image2

Note

If for any reason the program has not started, you can view logs in the directory /opt /macmonitor/logs .