NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

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

Minecraft is a very popular game. There are many different versions of this game, but they have in common the need for a server to host games and keep track of 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.



Prerequisite: You will need a Debian install with root privileges.



- A Minecraft server that is compatible with the version of your Debian release. If you are using Ubuntu you can go to their website to find out what works. 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!



Upgrading to the latest Debian release is a good idea.



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 executed in tandem, updating first and then upgrading after it has been completed successfully. Note that when running these commands there are no pending upgrades, they should only take up to five minutes whereas larger upgrades can take much longer so be patient!



Install Java



This will download the most recent Java version and install it. If you have multiple versions installed, this will remove them all for simplicity's sake! Once the installation is complete, you will be able to confirm which version of the program is currently running by typing this command in your terminal.



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



Create a brand new Minecraft user



In this example, a new user is created named'minecraft.



Once you're done, copy-paste or type your password twice to confirm it. It is important that each account has a unique and secure password.
Cubpack88


Example output:



Add the new sudo user to the group.



Install Screen



Screen is a GNU utility that allows you to multiplex terminal sessions. This is a useful tool to remote access. It allows you to disconnect from an ssh session, and then resume it later without having to close that instance.



To install Screen, type the following:



This command will install all dependencies of screen to your server.



This is the end of this task, continue with the next task below.



Install Minecraft



After exiting your current SSH, log back in using the minecraft user we created earlier.



Create a new folder named minecraft and then move it to your desktop.



Now, we need to download the latest version from Minecraft.net and place it in 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 into your terminal:



The jar parameter can be set to keep your world persistant or not. If you want a fresh start each time, use nogui. If you don't have enough RAM to run this setup in Debian or Ubuntu, consider dropping the Xmx value from 2560M down to something like 512M.



Save your script with Ctrl-o, exit Nano with Ctrl-x then confirm that you want to save this file when prompted by pressing "y". You should now have a startup script in /home/minecraft/. It will automatically start on boot! To test it out type or copy-paste the following command:



If you do not recognize errors such "java", please double-check your java installation process.



Start.sh executable



After you're done, close the terminal window and type "exit" to exit. To disconnect from the ssh session completely, type exit or press CTRL-D when prompted. 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 access packages from another server to download on your behalf. This can be convenient because they are often more updated than yours. Once the agreement is accepted, the installation should take only a few minutes. After that, all files and resources have been downloaded.



Next, you need to open the file eula.txt. This will allow your server to connect with the Minecraft game client software. Open that file in your preferred editor and ensure it reads: eula=true.



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 we need to set 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 forwarding that allows certain ports to be allowed depending on criteria such a destination address or source ips.



Debian's default settings allow only SSH traffic. Let's go ahead and add rules for Minecraft by typing:



Connect to your Minecraft Server



Open your Minecraft client, select the Multiplayer tab, and enter your server name and IP address.



You will need to buy an additional domain name from any domains suppliers in order to play on the public network. Also, Dynamic DNS must be set up by you. This is beyond this tutorial's scope.



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



Congratulations! Now you can play Minecraft and create worlds. You can play Minecraft with your friends and create worlds. The Minecraft Wiki provides more tips and assistance.



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://cubpack88.org/
     
 
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.