2.02 - Installation with Debian/Ubuntu
Deprecated from 1.22 and not supported from Squash TM 2.0.
This procedure was tested on these operating systems:
Debian Jessie 8.0 + (archived)
Debian Stretch 9.0 +
Debian Buster 10.0
It also works on Ubuntu OS but it was never tested.
From Squash TM 1.17, it is IMPERATIVE to use Java 8, Java 7 is not supported anymore.
1. Add Squash TM to the packages manager database:
echo "deb http://repo.squashtest.org/debian stretch main" | tee /etc/apt/sources.list.d/squash-tm.list
OR
echo "deb http://repo.squashtest.org/debian buster main" | tee /etc/apt/sources.list.d/squash-tm.list
2. Import the gpg key:
wget -q -O - http://repo.squashtest.org/repo.squashtest.org.gpg.key | apt-key add -
3. Update the packages database and then, install Squash TM package:
apt-get update
apt-get install squash-tm
4. Populate the database with SQL files located in:
/usr/share/dbconfig-common/data/squash-tm/install/
If you have a MySQL database, you can install the database with dbconfig-common. If so, the database will be automatically populated.
5. Check the database parameters in /etc/default/squash-tm (to install a new database, see 2.05 - Install another database (recommended)):
DB_URL="jdbc:mysql://localhost:3306/squashtm" or "jdbc:postgresql://localhost:5432/squashtm"
DB_TYPE="mysql" or "postgresql"
DB_USERNAME="squash-tm"
DB_PASSWORD="initial_pw"
6. At the end of the installation, the service will be launched with systemd