Spigot minecraft server build script
Prerequistes:
You must be a sudo user, ie. in the sudoers group, or the root user to install run this script.
Running as root is NOT recommended!
It is recommended you create a new user minecraft for the installation. Instructions below under "New User Setup."
Installation:
If your server system: Amazon Linux/CentOS/Fedora
Excecute the commands below from your servers console
First, install git on the server.
sudo yum -y install git
Second clone this project and run the install script
git clone https://github.com/Rapitharian/SpigotMC_Install.git mv $HOME/SpigotMC_Install/installmc.sh $HOME chmod +x *.sh ./installmc.sh 2>&1 | tee -a SpigotMC_Install.log
Cleanup:
Remove the installation script installmc.sh
If you don't need the installation log, remove that as well.
rm installmc.sh rm SpigotMC_Install.log
New User Setup:
Create a minecraft user.
set the password for the minecraft user
Make the minecraft user a sudoer (run admin commands with elevated permissions)
sudo useradd minecraft sudo passwd minecraft sudo usermod -aG wheel minecraft
Log out and log back into the server as the user minecraft.