Skip to content

dinesh-official/Hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

57 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hunter Basic Architecture

image

Hunter API Architecture

image

Hunter Installation Guide

Hunter - Version 2 Installation Guide

A step-by-step guide to install and configure the Hunter Spring Boot application on an Ubuntu server.


Table of Contents

  1. System Update
  2. Install Java
  3. Install & Configure MySQL
  4. Install Hunter
  5. Check Logs

1. System Update

Before beginning, make sure your system packages are up to date:

sudo apt update && sudo apt upgrade -y

2. Install Java

Hunter requires Java 24 to run.

Download and Install Java 24

wget https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.deb
sudo dpkg -i jdk-24_linux-x64_bin.deb
sudo apt-get install -f  # Fix dependencies

3. Install & Configure MySQL

Hunter uses a MySQL database. Create a user and grant necessary privileges.

Install MySql

sudo apt install mysql-server

For Localhost Only

CREATE USER 'hunter'@'localhost' IDENTIFIED BY 'Dineshdb121@gmail.com';
GRANT ALL PRIVILEGES ON hunter.* TO 'hunter'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Verify MySQL User

SELECT user, host FROM mysql.user;
SHOW GRANTS FOR 'hunter'@'localhost';

To Allow Remote MySQL Access Bellow ( Optional ):

Then edit your MySQL config file (my.cnf or mysqld.cnf) and ensure:

Enable Remote Access to MySQL

๐Ÿ“‚ Step 1: Open the MySQL Configuration File

Edit the following file:

sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address = 0.0.0.0

Then restart MySQL:

sudo systemctl restart mysql

To Allow Remote MySQL Access:

CREATE USER 'hunter'@'%' IDENTIFIED BY 'Dineshdb121@gmail.com';
GRANT ALL PRIVILEGES ON hunter.* TO 'hunter'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

4. Install Hunter

Step-by-Step Installation

Download Hunter Package

wget https://github.com/dinesh-official/Hunter/releases/download/v1.0.0/Hunter.deb

Install Hunter

sudo apt install ./hunter.deb

Start Hunter

sudo systemctl enable --now hunter

Status Hunter

sudo systemctl status hunter

One-Click Installation (Optional)

wget https://github.com/dinesh-official/Hunter/releases/download/v2.0.0/Hunter.deb && \
sudo apt install ./Hunter.deb && \
sudo systemctl enable hunter.service && \
sudo systemctl start hunter.service

Edit Configuration File

Modify the configuration file to suit your setup:

sudo nano /etc/hunter/hunter.properties

Save with Ctrl+X, then press Y and Enter.


5. Check Logs

View Journal Logs

journalctl -u hunter.service

Check the Execution Success Logs

tail -f /var/log/hunter/hunter.log

Check the Execution Error Logs

tail -f /var/log/hunter/hunter-error.log