NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

How To Set Up A Minecraft Server On Debian 10 - Techlear

Minecraft is a popular game. There are many versions of this game. However, they all have the same requirement for a server in order to host games and keep track on all players. In this tutorial we will show you how to set up your own Minecraft server on Debian 10, using open-source tools available from their official website.



PrerequisiteDebian installation with root privileges is required.



- A Minecraft server that is compatible with the version of your Debian release. If you're using Ubuntu, you can check their website to see which one works for you. If it's not clear which one to use, try googling Minecraft Server compatible on Debian /Ubuntu or ask in the comments and we'll help!



Upgrade your Debian system to the most recent release.



This is a good idea before installing any additional packages because it will provide you with all of the latest updates and security patches for both Debian software as well as installed applications like Minecraft server. This can be done by simply running the following commands from your terminal:



These commands are run in tandem. First, update the system and then upgrade once it is done. These commands should only take about five minutes, whereas larger upgrades can take a lot longer.



Install Java



This will download and install the latest Java version. If you have multiple versions installed, this will remove them all for simplicity's sake! Once completed, you can confirm which version is currently running by typing the command below in your terminal:



That's it! 30tt Java has been installed on your server.



Create a new Minecraft account



In this example, we create a brand new user named "minecraft":



Once you have completed that step, type in or copy-paste the password for this account twice more to confirm it. This is important because each account should have a unique password.



Take a look at this sample output



Add the new user into the sudo group



Install Screen



Screen is a GNU utility that can be used to multiplex terminal sessions. This is useful for remote access. You can disconnect from an ssh instance and resume it later.



To install Screen, type:



This command will install screen, along with all its dependencies, to your server.



This task is over. You can continue to the next task by clicking here.



Install Minecraft



Next, exit your current SSH and log in again with the minecraft account that you created earlier.



Create a folder called minecraft, and move it into it.



Now, download the latest version of Minecraft.net to this directory. Refer to the Minecraft server page to get the latest version of Minecraft Server, replace the version section below with that URL.



Create a startup script



This allows your server's to start automatically when you reboot your machine, or when Debian boots. It's also great if your internet connection drops at home and you need to restart it without having to log in.



Copy and paste the following lines in your terminal



jar parameter can be configured to keep your world persistent or not; if you want a fresh start every time then use nogui. If you don't have enough RAM for this setup in Debian, or Ubuntu, consider dropping -Xmx from 2560M up to something lower like 500M.



Save your script by pressing Ctrl+o, exit Nano using Ctrl+x, and then confirm that this file is saved when prompted by pressing "y". Now, you should have a startup file in /home/minecraft/ It will automatically start on boot! To test it, copy-paste or type the following command.



If errors such as "java", are not recognized, please double check the java installation process.



Make start.sh executable



Once you are done, you can either type "exit", or close the terminal window if you wish to log out from this user account. Then go back to your main screen. To disconnect completely from ssh, type exit or press Ctrl+D at a prompt. You can also use nano again to remove./start.sh. If you have already done so in a previous instance (e.g., for Minecraft Server), then it won't prompt again. These agreements allow Debian's repositories download packages from another server for yours. This can be more convenient, as they are often more up-to-date than yours. Once accepted, the installation should be completed in a matter of minutes. There is no need to do anything else until all required files are downloaded.



The next step is to open the eula.txt file and set eula=true. This will allow the server to connect to the Minecraft game client program. Open the file in your favorite editor and verify that it reads:



The next step is using screen to run our Minecraft server process independently so that we don't need to be logged into the minecraft user account at all times when administering the game server remotely via SSH.



This will create "session" minecraft to run the Minecraft process behind the scenes; we can access it from any shell we're logged into.



Configure Your Minecraft Server Firewall



Next thing we want to do is set up our firewall. Debian has an excellent built-in firewall called ufw that allows us great control over what programs on our system can access outside network resources like the internet! It also includes port forwardeding, which allows certain ports through based on criteria such as source IPs or destination address.



Debian currently allows only SSH traffic. Let's begin to add rules for Minecraft using typing:



Connect to your Minecraft Server



Open your Minecraft client and select the Multiplayer tab. Enter your server's name, IP address, and password.



Notable: To play on a public network, you will need an external domain name from any domains provider and to set up Dynamic DNS yourself. This is beyond the scope this tutorial.



You can now connect to the server. Click on the Join Server link.



Congratulations! Congratulations! You can now play Minecraft, and build worlds. You can also create worlds with your friends and have fun. For more help and tips, visit the Minecraft Wiki.



Setting up a Minecraft Server on Debian is easy, just follow the steps in this post. If you have any questions be sure to comment below. These steps can be used for any Debian system such as Debian Stretch. We hope you have enjoyed this tutorial and hope it has helped you to set up your own server! We'd love to hear from you if there are any other things we missed. Happy mining!


My Website: https://www.30tt.com/
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.