GNU/Linux >> Linux Esercitazione >  >> Debian

Installare Fathom Analytics su Debian 11

Fathom Analytics è un'alternativa semplice e privacy-oriented a Google Analytics. Non richiede cookie banner invasivi e offre un'interfaccia pulita.

MariaDB

sudo apt update
sudo apt upgrade
sudo apt install mariadb-server
sudo mysql_secure_installation
CREATE DATABASE fathom;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'pss';
GRANT ALL PRIVILEGES ON fathom.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Fathom

cd ~
wget https://github.com/usefathom/fathom/releases/download/v1.2.1/fathom_1.2.1_linux_amd64.tar.gz
mkdir fathom-files
tar -xvf fathom_1.2.1_linux_amd64.tar.gz -C fathom-files
cd fathom-files
sudo ./fathom --version

Creare il file .env:

FATHOM_SERVER_ADDR=9000
FATHOM_GZIP=true
FATHOM_DEBUG=true
FATHOM_DATABASE_DRIVER="mysql"
FATHOM_DATABASE_NAME="fathom"
FATHOM_DATABASE_USER="user"
FATHOM_DATABASE_PASSWORD="pss"
FATHOM_DATABASE_HOST="localhost"
FATHOM_SECRET="random-secret-string"

Creare l'utente amministratore e configurare systemd:

sudo ./fathom user add --email="angelo@unixcop.com" --password="password"
sudo systemctl enable fathom
sudo systemctl start fathom

Nginx reverse proxy

Installare Nginx e configurare un virtual host che proxy verso https://localhost:9000. Dopo il riavvio, raggiungere Fathom tramite dominio.

Debian
  1. Installare Debian 10 Buster: procedura grafica passo passo

  2. Come installare Python 3.9 su Debian 10

  3. Come installare Memcached su Debian 10

  4. Come installare TeamViewer su Debian 10

  5. Come installare Fathom Analytics su Debian 11

Aggiornare a PHP 7.2 su Debian 9 per Apache e Nginx

Come installare R su Debian 10

Come installare Debian 11 Bullseye: guida passo passo

Come installare Git su Debian 10 Buster

Come installare Go (Golang) su Debian 10 Buster

Come installare Go (Golang) su Debian