![]() Do not be alarmed when the next command throws an error. You can now perform your initial configuration. This session is now detachable, which means that you’ll be able to start a command here and leave it running. screen will present you with a terminal session like normal. Once you have read the banner that has appeared, press the Spacebar. Now that you have the Minecraft jar downloaded, you are ready to run it.įirst, start a screen session by running the screen command: Step 3 - Configuring and Running the Minecraft Server Now that you have your download, let’s start configuring your Minecraft server. But this tutorial will focus on the current latest release. If you want to download an older version of Minecraft, you can find them archived at. mv server.jar minecraft_server_ 1.18.1.jar.If you ever need to manage versions of Minecraft, or if you want to upgrade your Minecraft server, it may be helpful to rename the downloaded server.jar to minecraft_server_ 1.18.1.jar, matching the highlighted version numbers to whatever version you just downloaded: The server app will be downloaded as server.jar. You can now use wget and the copied link to download the server app to your server: X.X.X.jar, where the X’s are the latest version of the server. You can do this by navigating to Minecraft’s Website and copying the link that says Download minecraft_server. Now you need to download the current version of the Minecraft server. Step 2 - Downloading the Latest Version of Minecraft Now that you have Java installed and your firewall properly configured, you will download the Minecraft server app from the Minecraft website. ![]() Add the necessary firewall rule by running the following command: In some cases ufw will use named traffic rules, such as for ssh, which always uses port 22 by default, but in less common cases like this one, we’ll specify the port number manually. Now you need to allow for traffic to come in via port 25565, which is the default port that Minecraft uses to allow connections. In the initial server setup that you performed you only allowed ssh traffic. Now that you have the packages installed we need to enable the firewall to allow traffic to come in to our Minecraft server. This is important because if you were to start your server and then close your terminal, this would kill the session and stop your server. screen allows you to create a terminal session and detach from it, leaving the process started on it running. You also need to use a software called screen to create detachable server sessions. sudo apt install openjdk-17-jre-headless.This makes it ideal for running Java applications on a server: This is a minimal version of Java that removes the support for GUI applications. Next, update your package sources to reflect this addition:įinally, install the OpenJDK version 17 of Java, specifically the headless JRE. sudo add-apt-repository ppa:openjdk-r/ppa.You can do that with the following command: Fortunately, there are third-party maintainers who continue to build newer Java packages for older Ubuntu releases, and you can install them by adding their PPA, or Personal Package Archives, to your own list of package sources. By default, Ubuntu 18.04 does not provide a recent enough version of Java in order to run the newest releases of Minecraft. With your server initialized, your first step is to install Java you’ll need it to run Minecraft. Step 1 - Installing the Necessary Software Packages and Configure the Firewall If you are using DigitalOcean and need more resources, you can always resize your Droplet to add more CPUs and RAM.Ī copy of Minecraft Java Edition installed on a local Mac, Windows, or Linux machine. Minecraft can be resource-intensive, so keep that in mind when selecting your server size. You can follow this guide to initialize your server and complete these steps. In order to follow this guide, you’ll need:Ī server with a fresh installation of Ubuntu 18.04, a non-root user with sudo privileges, and SSH enabled. You can obtain the Java version of Minecraft here. These consoles are also unable to connect to the server built in this tutorial. Most versions of Minecraft purchased on gaming consoles such as the PlayStation 4, Xbox One, or Nintendo Switch are also the Microsoft version of Minecraft. If you purchased your version of Minecraft through the Microsoft App Store, you will be unable to connect to this server. This tutorial uses the Java version of Minecraft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |