Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

carbonoservers/holy-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Holy Agent

Management agent for game-hosting, made exclusively for the use of Hyaxe Cloud

Install general packages

# General
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt install -y unzip
sudo apt install -y zip
sudo apt install -y screen
sudo apt install -y git
sudo apt install -y curl

# x86 libs (SA:MP)
dpkg --add-architecture i386
apt-get update
apt-get install -y lib32stdc++6

# Java 8/16 (Minecraft)
sudo apt-get install -y openjdk-11-jre

sudo add-apt-repository ppa:linuxuprising/java
sudo apt update

echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu focal main" | tee /etc/apt/sources.list.d/linuxuprising-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A
apt-get update

sudo apt install -y oracle-java16-installer --no-install-recommends

# Check java versions
sudo update-alternatives --config java

# Install NodeJS
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - 
sudo apt-get install nodejs 

Download agent

cd /dev
git clone https://github.com/Hyaxe-Cloud/holy-agent.git
cd holy-agent

Install vsftpd

sudo apt-get install -y vsftpd
sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
rm /etc/vsftpd.conf
wget -P /etc/ http://server.hyaxe.com/holy/vsftpd.conf
sudo service vsftpd restart

Install Python 3.7 (Ubuntu 18.04)

sudo add-apt-repository ppa:deadsnakes/ppa   
sudo apt-get update
sudo apt install -y python3.7
sudo apt install -y python3-pip

Install Python 3.8 (Ubuntu 20.04)

sudo apt install -y python3.8
sudo apt install -y python3-pip

Install pip packages and run agent

cd holy-agent/
pip install -r requirements.txt

# Use python3.7 if Ubuntu 18.04
screen -S holy_agent
python3.8 __init__.py

Install nginx

apt-get install -y nginx
cd /var/www/html
rm *

Fix PSUtil error

python3.7 -m pip install --upgrade pip
python3.7 -m pip install -U pip
python3.7 -m pip install -U setuptools
python3.7 -m pip install -U psutil

Allow SSH for only root user

  1. Edit sshd config
    nano /etc/ssh/sshd_config
  2. Change AllowUsers for:
    AllowUsers root
  3. Restart SSHD
    service sshd restart 

Remove obsolete source PPAs

sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update

About

Hosting agent for Hyaxe Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published