Now restart the server, and you won’t get this error again.
This can be removed by installing the specific files by opening a separate terminal and running sudo apt install libcanberra-gtk-module libcanberra-gtk3-module. You may also encounter some errors like Failed to load module “canberra-gtk-module. This will take some time, but you will soon see a graphical user interface pop-up, indicating the server status. Similar to what we did in Windows, locate the newly created eula.txt file, and modify it by changing false to true.Īfterward, paste and run the same command: This is prompting to accept the EULA before running the server. , which means the Minecraft server will operate between 2Gb to 4Gb RAM. You can experiment with these values to get an optimal experience. The Xmx and Xms signifies the maximum and minimum ram your Minecraft server runs with, respectively. Now run java -Xmx1024M -Xms1024M -jar server.jar, and press enter. Alternatively, you can open the specific folder, right-click, and select Open in Terminal to have it directly point towards that directory. Open the terminal and use the cd command to navigate to the Minecraft folder. The will start loading all the prerequisites, and you will get a Done on the bottom right (just above the empty field), indicating the server is ready for hosting. If you miss this step, the server will shut down once you open it.Īfterward, double-click the server file again to open its graphical user interface. This indicates that you agree with the developer’s terms and conditions. Open this text file, replace eula=false with eula=true, and save the changes.
This won’t open anything, instead will create more files, including a text file for the end-user license agreement (eula.txt). Using the Minecraft server with a GUI is almost identical in Windows and Ubuntu. While having a GUI is convenient, you can have some extra resources if you choose to go by the command prompt way. Next, you can choose to have a Minecraft server with or without a graphical user interface (GUI).
Just so you know, there aren’t separate files for Windows and Linux.Īfter downloading, it will be ideal to create a separate folder for this since the server will generate more files that you would want in a nice tidy place instead of lying across the main download folder. Subsequently, download and install the Minecraft Java Edition Server to get a single file named server.
This signifies you’ll run Minecraft without a graphical user interface. If you are to run Minecraft on a 3rd-party cloud server like DigitalOcean, install java with this command instead: sudo apt install openjdk-18-jre-headless. As of this writing, Java 18 was the latest you should modify it accordingly. Visit this Java download page, and grab the latest version.įor Ubuntu, open the terminal and enter sudo apt install openjdk-18-jre, and press enter. Installing Java on Windows is fairly simple.
However, you can also opt for Minecraft Server Hosting for additional support and professional gameplay for a large number of players.īut, we’ll stick with the assumption that you’re using a personal computer.Īnd since we are installing Minecraft Java edition, we need to first install Java or update if you already have it.
Most likely, you would be using your own PC for this. Now that you know enough, let’s start with the real deal.
So you shouldn’t host players you don’t trust, as you’ll reveal your IP address.Īnd please remember, we’ll be hosting Minecraft Java edition, which works on Windows, macOS, and Linux. It’s important to know this guide will create a Minecraft server on your personal PC. Or you can make a Minecraft server yourself to have fun with your dear ones. Now you can either join the big-name servers and play along with hundreds if not thousands of players. While you can play Minecraft solo, the experience goes bland after you end up spending hours inside mining and crafting.Įrgo, you have the multiplayer to keep the fun alive.
Minecraft is a creator’s paradise or a strange-looking blockified world annoying you to the core each time you step in.Įither way, gamers around the globe find it irresistible and play Minecraft in big numbers, making it the best-selling video game of all time. Let’s create a Minecraft server up and running in minutes for you to enjoy with close buddies.