From time to time I host a server for myself and a few friends, but new people are welcome too!
It's down most of the time.
Default game directory:
Windows: C:\Users\YOURUSERNAME\AppData\Roaming.minecraft (%APPDATA% in file explorer)
Linux note: You can launch .jar files on with “java -jar file.jar”. Package with java is named “jre8-openjdk” on Arch and “openjdk-8-jre” on Ubuntu.
Pirated MC note: You can use TLauncher to download the game if you do not have a paid account. There's account switch mod which lets you choose the username.
Clear all items on the ground - /kill @e[type=Item]
Main place to get mods rarely, some mods won't use Curseforge but a build server or a webpage (IC2 for example)
-Xms is startup memory and -Xmx is maximum allowed memory. -Xms8G -Xmx8G - makes minecraft start with 8GB and will let allocate memory up to 8GB as needed… This is useful as reallocation is costly so let's just go with max.
java -jar forge-*-installer.jar --installServer # Will install/update server + forge in the current directory.
I've my setup documented here.