Step 1. Install the Andrisoft repository First, add the Andrisoft repository to APT.
ubuntu:~# apt install ca-certificates
ubuntu:~# apt install apt-transport-https wget ubuntu:~# wget --no-check-certificate -O - https://www.andrisoft.com/andrisoft.gpg.key | apt-key add - ubuntu:~# echo "deb https://packages.andrisoft.com focal main" > /etc/apt/sources.list.d/andrisoft.list
Step 2. Install the packages Install the wanconsole package and its dependencies. Configure and start ntpd to prevent clock desynchronization issues.
ubuntu:~# apt update ubuntu:~# apt install wanconsole ubuntu:~# systemctl restart ntp ubuntu:~# systemctl enable ntp
Step 3. Configure MariaDB By default, MariaDB is bound to the loopback interface so you must comment the bind-address parameter. Also, if you will use multiple servers, make sure that MariaDB is accessible by opening port tcp/3306 in firewall.
ubuntu:~# nano /etc/mysql/mariadb.conf.d/50-server.cnf #comment the bind-address directive ubuntu:~# systemctl restart mariadb
Step 4. Reload the Apache service
Reload the PHP configuration by restarting the Apache service.
ubuntu:~# systemctl restart apache2
Step 5. Install the database Finish installing the Console by running the /opt/andrisoft/bin/install_console script. Enter the MySQL root password, and provide a password for a new database named "andrisoft". In Ubuntu 20, the recommended database storage engine is Aria.
ubuntu:~# /opt/andrisoft/bin/install_console
Step 6. Configure the WANsupervisor service The WANsupervisor daemon must be installed and started on all systems. You have to run the /opt/andrisoft/bin/install_supervisor script to enter the Console's IP address and database password you set in step 5.
ubuntu:~# /opt/andrisoft/bin/install_supervisor ubuntu:~# systemctl start WANsupervisor ubuntu:~# systemctl enable WANsupervisor
Step 7. Install InfluxDB Install influxdb from https://portal.influxdata.com/downloads or the link listed below and execute /opt/andrisoft/bin/install_influxdb to initialize the influxdb database.
ubuntu:~# wget https://dl.influxdata.com/influxdb/releases/influxdb_1.8.10_amd64.deb
ubuntu:~# dpkg -i ./influxdb_1.8.10_amd64.deb ubuntu:~# cp /etc/influxdb/influxdb.conf /etc/influxdb/influxdb.conf.backup ubuntu:~# cp /opt/andrisoft/etc/influxdb.conf /etc/influxdb/influxdb.conf ubuntu:~# systemctl restart influxdb ubuntu:~# /opt/andrisoft/bin/install_influxdb
Step 8. Access the Console The Console web interface is accessible by pointing your web browser to http://<hostname>/wanguard or http://<hostname>/wansight, where <hostname> is the name of the server running the Console. The default username is "admin" with the password "changeme". It is highly recommended to install an SSL certificate in Apache to be able to connect securely to Console via HTTPS.
|