Management agent for game-hosting, made exclusively for the use of Hyaxe Cloud
# 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 cd /dev
git clone https://github.com/Hyaxe-Cloud/holy-agent.git
cd holy-agentsudo 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 restartsudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install -y python3.7
sudo apt install -y python3-pipsudo apt install -y python3.8
sudo apt install -y python3-pipcd holy-agent/
pip install -r requirements.txt
# Use python3.7 if Ubuntu 18.04
screen -S holy_agent
python3.8 __init__.pyapt-get install -y nginx
cd /var/www/html
rm *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- Edit sshd config
nano /etc/ssh/sshd_config
- Change AllowUsers for:
AllowUsers root
- Restart SSHD
service sshd restart
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update