Setting up Shynet involves a few key steps, primarily revolving around installing it on your server and configuring it to collect analytics data. Here’s a step-by-step guide to help you get started:
If you haven’t installed Docker yet, you can do so using the following commands:
# Update package database
sudo apt update
# Install Docker
sudo apt install docker.io
# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Install Docker Compose
sudo apt install docker-compose
Navigate to the directory where you want to set up Shynet and clone the repository:
git clone https://github.com/marcusolsson/shynet.git
cd shynet
Create a .env file to set your configuration variables. You can copy the provided .env.example file:
cp .env.example .env
Open the .env file with a text editor:
nano .env
Adjust the following settings as needed:
analytics.yourdomain.com).python -c 'import secrets; print(secrets.token_urlsafe())').Now that everything is configured, you can start Shynet:
docker-compose up -d
This command will pull the necessary images and start the Shynet services in detached mode.
Once the services are up, you can access the Shynet dashboard by navigating to http://yourdomain.com (or your server’s IP address) in a web browser. You should see the Shynet user interface.
Once your tracking code is active, you can start viewing analytics data in the Shynet dashboard.