Benvenuto, ospite! [ Registrati | Login

A proposito di lisabush35

Descrizione:

The Good News Is

Clara and I run Minecraft on our home FreeBSD server in jail that keeps Java and other dependencies in a single location. It is possible to run the server from any device that supports Java as well as Linux and possibly NetBSD although I haven't tried it yet.


Well, I decided that I couldn't leave it at that! The positive side is that you can run an Minecraft server on another preferred OS. This is how I did it. I'm sure there are other ways.


Getting Java installed


After you have installed NetBSD and set up networking and enabled pkgin you will require 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. You can check by searching to see that this is still the case:


If it's 16 or older, you can pull current packages by opening your repo file:


and changing the repo URI, in my instance, from 9.0 to 9.0_current:


Thank you so much to ryoon@ for working on this. He does so much great work for the NetBSD community, I feel like I owe him at least an espresso or a drink the next time I'm fortunate enough to go to Japan.


Now we can put it in, along with other useful tools:


Running Minecraft


From here, running Minecraft is similar to any other Java-enabled server. I put all my files together:


Log in as my local user and start:


We're ready to start!
DEEP SPACE

You'll notice that Java will throw an error that states "system not supported, which those of us on NetBSD know all too well. From my testing, you can safely ignore it:


After you have run the server for the first time, don't forget about accepting the EULA.


Create an introductory script


I like to link the most recent version of the server to minecraft.jar:


You can then refer to it in launch.sh using tmux to allow the server to stay in place after disconnecting. I also would like to give Minecraft more memory:


We're now ready for the adventure!


Follow-up


Next, I'd like to create a proper chroot environment that supports Java and Minecraft. This is similar to the FreeBSD jails. I've had a solid NetBSD exploration of chroots in the works for years but I'll get it cleaned up and post it soon.

Siamo spiacenti, non sono stati trovati annunci.