How to install Squash TM on Debian/Ubuntu?

 

    1. Add Squash TM to the packages manager database:
      echo "deb http://repo.squashtest.org/debian jessie 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 located in:
      /usr/share/dbconfig-common/data/squash-tm/install/
      If you have a MySQL database, you can to install the database with dbconfig-common. If so, the database is automatically populated.

    5. Check the database parameters in /etc/default/squash-tm:
      DB_URL="jdbc:mysql://localhost:3306/squashtm" or "jdbc:postgresql://localhost:5432/squashtm"
      DB_TYPE="mysql" or "postgresql"
      DB_USERNAME="squash-tm"
      DB_PASSWORD="mon_password"


    6. At the end of the install, the service is launched with systemd.