⚙️

git packages

1 notes  •  DevOps & CI/CD

Gazelle Installation Guide

Gazelle is a BitTorrent tracker application. This guide installs it on Ubuntu with all required system dependencies, Node.js, and Nginx.

Step 1 – System update and dependencies

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y   software-properties-common build-essential make   libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev   libboost-dev libtcmalloc-minimal4   unzip wget curl netcat-openbsd imagemagick   git nginx memcached

Step 2 – Install Node.js 10.x

curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs

Step 3 – Install Python and pip

sudo apt-get install -y python3
wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
sudo python3 /tmp/get-pip.py

Step 4 – Clone and set up Gazelle

cd /var/www
sudo git clone https://github.com/WhatCD/Gazelle.git gazelle
sudo chown -R www-data:www-data gazelle/

Step 5 – Configure Nginx

Create /etc/nginx/sites-available/gazelle:

server {
    listen 80;
    server_name tracker.yourdomain.com;
    root /var/www/gazelle;
    index index.php;

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    }
}
sudo ln -s /etc/nginx/sites-available/gazelle /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx

Step 6 – Configure Memcached

sudo systemctl enable memcached
sudo systemctl start memcached