Install java:
sudo apt-get install git openjdk-8-jre-headless -y
Download the official Forge installer and then copy it to the server.
The run the following:
java -jar forge-1.12.2-14.23.5.2854-installer.jar --installServer
Create start.sh with the following line:
java -Xms3G -Xmx3G -jar forge-1.8-11.14.4.1577-universal.jar nogui
chmod +x start.sh
nano eula.txt
IP Tables
sudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
Useful commands;
./start.sh
screen ./start.sh - starts and runs when ssh session is closed
screen -r - opens the ssh session again if closed before
stop - stops the MC server
op-level 3 can do everything except stop the server
References:
https://www.vpsserver.com/community/tut ... on-ubuntu/
https://www.linode.com/docs/game-server ... ot-ubuntu/
Install a version of Forge on Ubuntu Server
-
ls to list the directories
cd to the desired directory
then ls again to find the .sh file, should be start.sh script file that contains the java string to launch Minecraft server
screen ./start.sh
cd to the desired directory
then ls again to find the .sh file, should be start.sh script file that contains the java string to launch Minecraft server
screen ./start.sh