How to install Squash TM on Debian/Ubuntu?


    1. Add Squash TM to the packages manager database:
      echo "deb jessie main" | tee /etc/apt/sources.list.d/squash-tm.list

    2. Import the gpg key:
      wget -q -O - | 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:
      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"

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