The Good News Is

From Men's
Jump to: navigation, search

Clara and I run Minecraft on our home FreeBSD server that is located in jail that keeps Java and other dependencies in a single location. Although I haven't tested it, the idea is that you can run the server anywhere Java is supported, including Linux or NetBSD.



Well, I decided I would not be content with that! The good news is, yes, you can run a Minecraft server on my other favorite OS too. ROKANTHEMES This is the method I used. I'm sure there are more.



Getting Java installed



Once you've installed NetBSD and have configured networking and enabled pkgin, you'll need to get an OpenJDK to run Minecraft.



OpenJDK 17 is required for Minecraft 1.17 and later. OpenJDK 16 however, is the most current snapshot as of July 2022. To confirm, you can search:



If you're 16 years old, you can still pull current packages by opening the repo file.



And changing the repo URL In my case, 9.0 to 9.0_current



Thank you so much to the Ryoon@ for his work on this. He has done so much wonderful work for the NetBSD community, I think I owe him at least an espresso or a drink the next time I'm fortunate enough to visit Japan.



We can now install along with a few other useful tools.



Running Minecraft



From here it is possible to run Minecraft is basically the same as any Java-enabled server. I combined all my files:



Log in as my local user and then start:



Now is the time to start!



You'll notice that Java will throw an exception that says "system not supported which we who run NetBSD know well. It's safe to ignore from my experience.



Don't forget to agree to the EULA when you run the server for the first time:



The creation of an introductory script



I like to create a symlink to minecraft.jar the most recent version of the server



Then reference it in launch.sh with tmux to persist the server even after disconnecting. I like to give Minecraft more memory, too:



We're now ready to go!



Follow-up



Next, I'd like to build a proper Chroot environment that can support Java and Minecraft. This is similar to the FreeBSD jails. I have an NetBSD Chroot Exploration article in the works for many years. I will clean it up and release it soon.

ROKANTHEMES