Running a forge server on headless linux

I’ve had a lot of trouble getting Minecraft Forge to run headless. They have a friendly installer option that I just can’t use in my situation, but one of the devs seems actively hostile around providing help to headless servers, so I didn’t bother asking forge for help. I thought I’d write up what I had to do to get things working. As a warning, it requires some local work; you can’t do everything headless with these directions.

I’m running Minecraft 1.6.4, with the latest version of forge for that,

  1. Locally, download and start the minecraft client for the correct version at least once. Not sure if you’ll need to ‘play online’ or not. If you have the current installer, you need to make a new profile with the correct minecraft version and play that.
  2. Copy ~/.minecraft/libraries to the headless machine.
  3. Download forge (the installer version, not the universal) from The non-adly version is the little star for non-interactive use.
  4. Run
    java -jar forge-1.6.4- --installServer
  5. Delete the installer, you don’t need it any more.
  6. Install any mods you want to the ‘mods’ directory, edit, etc. Normal server setup.
  7. To execute the server, run the file indicated in the installer. In my case, I run
    java -jar minecraftforge-universal-1.6.4- nogui

Alternatively, you can install the entire server locally and copy it over.

Tagged . Bookmark the permalink.

9 Responses to Running a forge server on headless linux

  1. Susan Tatun says:

    An honest sharing about downloaing and installing Minecraft 1.6.4. I followed what you mentioned and did it sucessfully. Right now, I’m playing with my little son and guiding him what the terrific things are. Anyway, thanks a lot!

  2. Lynx says:

    4am installs of servers is hard, and trying to follow the Forge wiki which is inaccurate at best is hard.
    You got me from dead brick to running box in ten minutes. Thank you.

  3. crumpuppet says:

    Thanks so much! I’ve been looking for these steps for a while, and finally found something that works. Would have been first prize if it could be used along with a GUI frontend like mcmyadmin, but oh well 🙂

  4. Dave says:

    Same here. Searched all over found yours and running in moments. My kids have been hooked on mods and wanted a server. I have VMware and can spin up a linux box up in moments. This was so easy. Thanks.

  5. Very useful information, Thank you

  6. Leon says:

    Does anyone here have problems with installing the mods. Im donwloading them in the mods directory with the cmd “wget” and nothing works.Am i using the wrong command or what?

  7. Rajan Chopra says:

    Thanks for sharing Minecraft. Can you also share Roblox Apk?

  8. Neckbeard Hater says:

    “one of the devs seems actively hostile around providing help to …”

    this is so typical of the linux community. really. And I am a developer with 20 years experience, I hate the Linux community.

  9. nat says:

    lol this tutorial still works 9 years later thanks tho this helped so much!!

Leave a Reply

Your email address will not be published. Required fields are marked *