Table of Contents
Install Graphlytic
After this installation, Graphlytic will start automatically after the operating system is started.
Graphlytic application will be started with the user 'graphlytic'. Create this user with a home directory:
$ sudo useradd -m graphlytic$ sudo usermod -L graphlyticCopy Graphlytic installation package "graphlytic-<version>.tar.gz" into the /tmp/ directory.
Create the installation directory and change the owner of the directory:
$ sudo mkdir -p /usr/share/graphlytic /var/log/graphlytic$ sudo chown -R graphlytic:graphlytic /usr/share/graphlytic /var/log/graphlyticCopy the installation package and unpack it:
$ sudo su graphlyticgraphlytic:$ cp /tmp/graphlytic-<version>.tar.gz /usr/share/graphlyticgraphlytic:$ cd /usr/share/graphlyticgraphlytic:$ tar zxvf graphlytic-<version>.tar.gzMake the run script executable:
graphlytic:$ chmod a+x /usr/share/graphlytic/bin/graphlyticdConfigure Graphlytic
Graphlytic's configuration is stored in the "conf/graphlytic.conf" file.
The configuration contains (among other options):
- Location of important directories like logs, custom icons, and widgets.
- Default SMTP connection.
- Default password strength.
- Branding options.
For all options and examples of how to use them please refer to Configuration.
To configure Graphlytic run this command (this is an optional step):
graphlytic:$ vi /usr/share/graphlytic/conf/graphlytic.confHTTP vs. HTTPS configuration
To change the starting script's configuration run this command (this is an optional step):
graphlytic:$ vi /usr/share/graphlytic/bin/graphlyticdEdit the starting script file to use HTTP or HTTPS (or both) for connecting to the Graphlytic web application. This is an optional step (default config is HTTP and HTTPS both enabled).
#!/bin/sh# use this script with created service# disable or enable HTTP/HTTPS. To disable comment od remove line#HTTP_PORT=8080HTTPS_PORT=8443Enabling service
Copy the init script and enable the service
Enabling service on Ubuntu 18
$ sudo cp /usr/share/graphlytic/bin/graphlytic-init-deb /etc/init.d/graphlytic$ sudo chmod a+x /etc/init.d/graphlyticEnabling service on Ubuntu 20 and above (Debian 12)
$ sudo cp /usr/share/graphlytic/bin/graphlytic-init-ubu20 /etc/init.d/graphlytic$ sudo chmod a+x /etc/init.d/graphlyticAutomatic startup
Set the service to automatically start after the OS is started:
$ sudo update-rc.d graphlytic defaults 97 03 Check if the service was enabled:
$ sudo find /etc/rc?.d/ -name "*graphlytic*"expected result:/etc/rc0.d/K03graphlytic/etc/rc1.d/K03graphlytic/etc/rc2.d/S97graphlytic/etc/rc3.d/S97graphlytic/etc/rc4.d/S97graphlytic/etc/rc5.d/S97graphlytic/etc/rc6.d/K03graphlytic