LinuxGSM Guide to Minecraft Forge



1. Install Ubuntu 18.04

2. Install LinuxGSM scripts and dependencies and create mscerver user. 

3. Run the server once, to create config files and stop.

4. as Root install openjdk-8-jdk

:~# sudo apt install openjdk-8-jdk 

Verify openjdk-8-jdk is being used.

:~# sudo update-alternatives --config java

make sure to select the number for openjdk-8 if it does not have the asterisk next to it.

5.  Download Forge “Installer” 

6.  Copy the installer to /home/mcserver/serverfiles/

7. As mcserver user install forge, may have to change the version numbers to match the downloaded version.

~$ cd /home/mcserver/serverfiles

~$ java -jar forge-1.12.2- –installServer

~$ cd ~

8. Edit  /home/mcserver/lgsm/config-lgsm/mcserver/mcserver.cfg

If file is empty copy everything from _default.cfg to mcserver.cfg

Find the line in mcserver.cfg with

executable="java -Xmx${javaram}M -jar ${serverfiles}/minecraft_server.jar"

change to

executable="java -Xmx${javaram}M -Xms${javarams}M -jar ${serverfiles}/forge-1.12.2-"

near top of file, under ## Server Start Settings


javarams="4048" # -Xms$1024M

you should have two lines

javaram="4048" # -Xmx$1024M

javarams="4048" # -Xms$1024M

9. You can now start the server and view console to verify.