Installation on Ubuntu 18#
After obtaining the License Key, please follow the following steps to install IDSTower on Ubuntu 18:
Install MySQL (MariaDb 10.3.x)
Ubuntu 18 is shipped with an older version of MariaDB, to install the supported version (10.3.x), please follow the following guide: Upgrade to MariaDB Community Server 10.3 on Ubuntu 18.04 LTS
Start MariaDB service
$ sudo systemctl enable mariadb.service
$ sudo systemctl start mariadb.service
$ sudo systemctl status mariadb.service
(Recommended) Run mysql_secure_installation Script
$ sudo /usr/bin/mysql_secure_installation
Add IDSTower & Ansible repositories
$ sudo wget -qO - https://download.idstower.com/repos/apt/idstower.key | sudo apt-key add -
$ echo "deb [arch=amd64] https://download.idstower.com/repos/apt stable main" | sudo tee /etc/apt/sources.list.d/idstower.list
$ sudo apt-get update
$ sudo apt install software-properties-common -y
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
Install IDSTower
$ sudo apt install idstower -y
Edit the appsettings.json configuration file (located in: /opt/idstower/) and set the following settings
set the LicenseKey key value with the key you obtained from the license page.
set the URL key value with the url you want IDSTower to listen to, example: http://idstower.mydomain.local, note that you can use ip addresses as well.
set the MySQL Database settings like host, port, database name, username & password via the Database key.
run IDSTower with –init-database option to initialize the database:
$ cd /opt/idstower/
$ sudo ./IDSTower --init-database
Note
If you wish to initialize the database manually, you can find the schema initialization script here: https://download.idstower.com/packages/latest/sql_scripts/
You can easily import the script by running the following command:
$ sudo mysql -u [username] -p [DatabseName] < idstower_schema_script.sql
Add an admin user to IDSTower:
$ sudo ./IDSTower -a [Your Admin Username]
example:
$ sudo ./IDSTower -a admin
Enable & Start IDSTower Service
$ sudo chown -R idstower:idstower /var/log/idstower/*
$ sudo systemctl enable idstower.service
$ sudo systemctl start idstower.service
Verify that IDSTower Service started correctly
$ sudo systemctl status idstower.service
Now you can access IDSTower web interface using the url set in your appsettings.json