You’re now all set and the Minecraft server is installed. You can edit the main configuration file which will be located in ~/minecraft/server.properties and change all the settings from there. To re-attach to the screen, we list all screens first and then re-attach to the one with the specific ID: # screen –ls To exit the screen, hit CTRL+A at the same time and then click on your “d” key afterwards. To create a function, follow these steps: Open notepad (or your text editor of choice), and enter the commands you wish to run, each on their own line. We can easily exit the screen and re-attach to it any time. We will get some output and status progress as well as message that it is “done”. # java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui To create the screen and then start the Minecraft server we need to execute: # screen -S "Minecraft server" We will run it inside screen, so it will keep running in background all the time. Once it is downloaded, we need to run it. We start with creating directory that we are going to use to keep the Minecraft files: # mkdir minecraft To install screen, we execute the following command: # sudo apt-get install screenĪfter we have installed all prerequisites, it is time to install Minecraft server. It will keep the connection up and running even after closing the console. We will be using it later in order to start the minecraft server. We also need to install screen on our server. If we need to install Java, we need to execute the following command: # sudo apt-get install default-jdk If we don’t have Java, we will get error, like “Command not found” or similar. If Java is installed, we will get message with information about current Java version. What you are looking for is a line called. In order to check if we already have in installed, we will execute the following command: # java –version Either use the server host client to edit the file, or download the file manually and edit it (then reupload it). Minecraft server requires java installed on the server. The server hosting Minecraft should have at least 2GB RAM memory, once we are logged in, we should make sure that our repositories are up to date: # sudo apt-get update Setting up minecraft server on your Linux server is simple and straight forward task. At first, people built structures to protect against nocturnal monsters, but as the game grew players worked together to create wonderful, imaginative things. It is a game about breaking and placing blocks. In this project, we’ve shown you how to set up and customise a Minecraft server on your Raspberry Pi 4, and how players on the same Wi-Fi network can connect locally to your gameworld.Minecraft is popular sandbox indie game originally created by Swedish programmer Markus “Notch” Persson and later developed and published by Mojang. This will create a new gameworld folder with the updated name next time the server starts, and you can switch back to the old one any time! Connecting to your Minecraft server remotely Top Tip: If you want to start a new Minecraft server, just delete the World folder from your Minecraft directory, or rename the level-name in server.properties. Just as before, we press CTRL+S and then CTRL+X to save and exit! Personally, I just want to turn off the spiders and change the server’s message of the day, so I’m going to make the following tweaks: spawn-monsters=false I won’t go into detail on every option, but you can read about them on the Minecraft Wiki. Note: We’ll be using Ubuntu Desktop 21.10 for Raspberry Pi in this tutorial, and recommend you follow along with Ubuntu Desktop 21.10 on whatever device you use. You could even use a Virtual Machine.Ĭheck out these tutorials for getting started with Ubuntu Desktop on these platforms: In this tutorial, we’ll be using a Raspberry Pi 4 4GB with a 32GB SD card, but you can also follow along on pretty much any laptop or PC that has Ubuntu Desktop installed. While it can seem intimidating at first, the instructions you’ll follow for this project will help you approach more complex Linux projects in the future! Linux is all about tinkering and trying new things. Setting up a server is also a great way to learn more about Linux. You can change the game rules and difficulty, the behaviour of enemies and determine how players interact. Hosting a Minecraft server unlocks a tonne of additional control over how you play Minecraft with your friends. This is a great afternoon project to work on with a friend or family member! This week, we’ve put together a tutorial that teaches you how to create a basic Minecraft Server on a Raspberry Pi with Ubuntu Desktop, so you can play locally with your friends. Welcome to the second in our series of Linux gaming posts in the run up to the holidays.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |