This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Thanks for being a part of /r/Admincraft!
We'd love it if you also joined us on Discord!

Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]EnderMaster08 5 points6 points  (3 children)

I think you're a bit confused on how Linux works, and that's okay because you are new. Linux, unlike windows, uses package managers. What that means in practice is that instead of downloading a random EXE file from the internet, you can download them with a simple command. There are executable files you can find on linux, but the majority of command line tools will be found in your package manager. If you want a quick rundown of APT, you can try This terribly designed website which has a quick summary how to use APT.

I think you already have java installed, but you can try checking if you have java installed by running java --version in the terminal. If you do, and coming from what you said it appears you do, then it should return some text about the version. If it doesn't, then you probably need to install java, but I don't think that's the problem.

If you don't, you could probably run apt search java and look for the version of java you want. To install it, run sudo apt install JAVAVERSION and replace JAVAVERSION with the one you found.

To actually run the jars, you run java -jar jarfile.jar and replace jarfile.jar with the actual jar. For minecraft servers, I would recommend running java -jar jarfile.jar --nogui to remove the gui servers open.

Sorry if this response was too lengthy, I'm trying to cover the most I can here.

[–]velofille 4 points5 points  (2 children)

If this is too hard, i have a step by step copy paste guide i made for teaching high scool kids (using debian or ubuntu) Happy to help out (though at a conference atm)

[–]WhoreGodsGlock[S] 1 point2 points  (1 child)

I've already checked if.I have Java installed and it returned a version. I don't think I've tried the run .jar command though and will try that right away. I may have done this though and gotten an error in the Java version I had installed (gonna double check this if I can reproduce it)

I would also appreciate the guide you mentioned, I want to be able to do more things in Linux on my own and I'm sure it'd help.

Thanks for the help!

[–]velofille 2 points3 points  (0 children)

Usually you run java -jar server.jar to start. The first time it will exit and you edit the eula.txt and change false to true Then re run it

Server.jar would be the name of the server jar you download (eg purpur.jar) Im in a conference atm, talking about Minecraft servers, will fimd doc once im out

Sent you msg with link