A step-by-step guide to install and configure the Hunter Spring Boot application on an Ubuntu server.
Before beginning, make sure your system packages are up to date:
sudo apt update && sudo apt upgrade -yHunter requires Java 24 to run.
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 dependenciesHunter uses a MySQL database. Create a user and grant necessary privileges.
sudo apt install mysql-serverCREATE USER 'hunter'@'localhost' IDENTIFIED BY 'Dineshdb121@gmail.com';
GRANT ALL PRIVILEGES ON hunter.* TO 'hunter'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;SELECT user, host FROM mysql.user;
SHOW GRANTS FOR 'hunter'@'localhost';Enable Remote Access to MySQL
Edit the following file:
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnfbind-address = 0.0.0.0Then restart MySQL:
sudo systemctl restart mysqlTo Allow Remote MySQL Access:
CREATE USER 'hunter'@'%' IDENTIFIED BY 'Dineshdb121@gmail.com';
GRANT ALL PRIVILEGES ON hunter.* TO 'hunter'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;wget https://github.com/dinesh-official/Hunter/releases/download/v1.0.0/Hunter.debsudo apt install ./hunter.debsudo systemctl enable --now huntersudo systemctl status hunterwget 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.serviceModify the configuration file to suit your setup:
sudo nano /etc/hunter/hunter.propertiesSave with Ctrl+X, then press Y and Enter.
journalctl -u hunter.servicetail -f /var/log/hunter/hunter.logtail -f /var/log/hunter/hunter-error.log