Jump to content

Recommended Posts

Posted

I know the way the install works has changed a bit in later versions but i cant seem to find any documentation that helps me, I was using the LinuxNorth tutorial but since its outdated i went off a bit on my own at the moment.
as of now im stuck on getting the server to start.

  • I have made it so that JRE is version 8 as needed
  • I have the installer run in /opt/minecraft and the libraries installed.
  • I changed the user_jvm_args to have 2gb min and 10gb max
  • I now run the command that linuxNorth has in the guide for it (im assuming outdated) seen in here --> https://pastebin.com/Qjct6HWt
    • Command:  cd /opt/minecraft && java -Xms2G -Xmx10G -jar /opt/minecraft/libraries/net/minecraftforge/forge/1.18.1-39.0.9/forge-1.18.1-39.0.9-server.jar nogui
  • tried universal.jar as well and had different error (see pastebin above) about no main manifest attribute.

I then tried to simply bash run.sh and it gave me this: (https://pastebin.com/LCcYMHeW) I ran the ls so you can see that the jvm_args txt is in that folder as well so im unsure...

Im assuming that the wrong command is whats going on, or i skipped something without realizing, any help or guides that work for ubuntu install is appreciated.

  • 3 weeks later...
  • 7 months later...
Posted

Forge for 1.18+ es quite different and requires some extra steps. This is how I did to install forge in mi AWS EC2 server running Ubuntu 20.04
First installed java 17 jdk and jre using:

$ sudo apt install openjdk-17-jre-headless
$ sudo apt install openjdk-17-jdk-headless

You can check what version you have installed with:

$ java -version
$ javac -version

Now for the installation of forge I first installed minecraft server vanilla to generate all the files. Then ran the installer:

$ sudo -jar forge-x.x.x-x.x.x-installer.jar --installServer

If you don't specify the installServer flag, it will try to run the installer using a GUI which will not work if you are connected through ssh to your server. If you are connected through any remote desk app you can run it without the flag.

The difference here is that it will NOT generate a forge-x.x.x-server.jar file, instead of that it will be a shell script called "run.sh". You run it like this:

$ sudo ./run.sh

Now your forge server is running!

  • 11 months later...
Posted
On 9/14/2022 at 12:21 AM, GuaKMole said:

Forge for 1.18+ es quite different and requires some extra steps. This is how I did to install forge in mi AWS EC2 server running Ubuntu 20.04
First installed java 17 jdk and jre using:

$ sudo apt install openjdk-17-jre-headless
$ sudo apt install openjdk-17-jdk-headless

You can check what version you have installed with:

$ java -version
$ javac -version

Now for the installation of forge I first installed minecraft server vanilla to generate all the files. Then ran the installer:

$ sudo -jar forge-x.x.x-x.x.x-installer.jar --installServer

If you don't specify the installServer flag, it will try to run the installer using a GUI which will not work if you are connected through ssh to your server. If you are connected through any remote desk app you can run it without the flag.

The difference here is that it will NOT generate a forge-x.x.x-server.jar file, instead of that it will be a shell script called "run.sh". You run it like this:

$ sudo ./run.sh

Now your forge server is running!

I just do not understand why you should install, and run your forge server in sudo mode. It just makes modifying files harder and if a security issue gets discovered by hackers that allow them to execute commands on the server, they would have all access to it.
Please use sudo only when it's needed.

Thanks, and have a good day.

  • Like 1
  • 1 year later...
Posted (edited)

DON'T install with sudo, install in a folder in your home directory, and leave out the sudo. 

$ sudo -jar forge-x.x.x-x.x.x-installer.jar --installServer

Don't do that

just do this

$ java -jar forge-x.x.x-x.x.x-installer.jar --installServer

then run it with ./run.sh so it's not in root mode. 

using sudo will also cause some of the files to be unavailable if you are using a folder in your home director like I am.

Edited by Stresser
clarity and spelling

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.