Skip to content

Instantly share code, notes, and snippets.

@hezamu
Last active April 19, 2025 08:09
Show Gist options
  • Save hezamu/5a0c088ad4d9792396b53f76cb013e32 to your computer and use it in GitHub Desktop.
Save hezamu/5a0c088ad4d9792396b53f76cb013e32 to your computer and use it in GitHub Desktop.
How to set up a Minecraft CABIN server on Linux

Instructions how to set up a Linux server for the Minecraft modpack CABIN. The instructions were written by Google Gemini. Instructions tested on CABIN release 2.0.4. CABIN discord link in CurseForge for more info.

  1. Download the Correct Minecraft Server Jar:

    • Go to the official Minecraft website and download the server jar file for the exact Minecraft version that the CABIN modpack is designed for. Save it on your Linux system.
  2. Download the Correct Forge Version:

    • Identify the specific Forge version required by the CABIN modpack (check its CurseForge page or download source).
    • Visit the official Minecraft Forge website and download the installer (.jar file) for the matching Minecraft and Forge versions. Save it in the same location as the server jar.
  3. Install Forge on the Server:

    • Open your Linux terminal.
    • Create a dedicated directory for your server:
      mkdir cabin_server
      cd cabin_server
    • Move the downloaded server.jar and Forge installer .jar into this directory:
      mv ~/Downloads/server.jar .
      mv ~/Downloads/forge-*-installer.jar .
      (Replace forge-*-installer.jar with the actual filename).
    • Execute the Forge installer:
      java -jar forge-*-installer.jar --installServer
      (Again, use the correct filename).
    • Once the installation is complete, you can delete the installer and the original server.jar:
      rm forge-*-installer.jar server.jar
  4. Prepare the Server Files:

    • Run the Forge server once to generate essential configuration files:
      java -jar forge-*-universal.jar nogui
      • Note: If your Forge version (like 43+) did not create a forge-*-universal.jar, you can skip this step for now. The run.sh will handle the initial setup later.
    • Open the eula.txt file in your server directory and agree to the EULA:
      nano eula.txt
      Change eula=false to eula=true, then save and close the file.
  5. Integrate the CABIN Overrides:

    • Navigate to the "overrides" folder from your extracted CABIN server zip.
    • Copy the contents of the "overrides" folder into your cabin_server directory:
      cp -r /path/to/cabin_server_zip/overrides/* .
      (Replace /path/to/cabin_server_zip with the correct path).
  6. Run the Server:

    • Open your Linux terminal and ensure you are in your cabin_server directory.
    • For older Forge versions (that created forge-*-universal.jar):
      java -Xmx4G -Xms2G -jar forge-*-universal.jar nogui
      (Adjust -Xmx and -Xms for RAM allocation as needed).
    • For newer Forge versions (like 43+ that created run.sh):
      ./run.sh
      • You might want to edit the run.sh file to adjust the -Xmx and -Xms memory settings. Open it with a text editor (e.g., nano run.sh).
  7. Configuration (Optional but Recommended):

    • After the server runs for the first time, you can customize settings in server.properties and the mod configurations within the config folder.

That should give you the complete and up-to-date instructions for setting up your CABIN server on Linux! Enjoy playing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment