Minecraft servers are designed for cooperative play with other gamers online or by a local space network (LAN) connection. These servers can run on your hosted server, native dedicated hardware server, local gaming laptop, or virtual private server hosted on a personal machine.
Every Minecraft server requires default software provided by Mojang, which capabilities on Windows, Mac OS X, or Unix-based techniques. Moreover, Mojang provides totally different server options, including LAN servers, exterior server shoppers, a rented server, and completely different realms that may vary.
With the intention to follow this information you will need to have the following in place:
• One node (Cloud Server or Dedicated Server) that has Ubuntu 14.04 LTS put in.
• SSH Root Access to your server
Tutorial
Server Configuration
To begin, you need to confirm that your server is at present updated:
apt-get replace && apt-get upgrade -y
After confirming that your server is current, checking that the newest model of Java has been installed is next:
java -version
If it’s confirmed that the most recent model of Java is just not put in, chances are you'll receive a warning stating “The program ‘Java’ may be found in the next packages.” If that is the case, you will want to put in Java through the next command (confirming with the Enter/Return key when prompted):
add-apt-repository ppa:openjdk-r/ppa
apt-get update
apt-get set up openjdk-8-jdk -y
During setup, you will also need to put in a display screen package deal that may enable your server to proceed operating, no matter your ssh connection standing:
apt-get install screen -y
Putting in Minecraft
To begin, you will establish a folder in your /house path:
mkdir /home/minecraft ; cd /house/minecraft
Following that, you'll download the current version of the server software from Mojang:
wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.12.1/minecraft_server.1.12.1.jar
Once the download has completed, you can begin the server working as a daemon:
display screen -S "Minecraft"
At this point, you've gotten almost accomplished establishing your server for Minecraft, but you will need to accept and verify that the tip User License Agreement (EULA) has been accepted as true. Premium Content encourage you to read via the EULA entirely before accepting it.
After you’ve read by way of the EULA, you will want to create a text file, known as eula.txt, to set it as true:
contact eula.txt
echo "eula=TRUE" > eula.txt
Now that you've completed studying the EULA and accepted it, you can begin your new server:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
As your server starts, you'll observe the next in your console window:
root@globotech-minecraftserver-ubuntu14:/home/minecraft# java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
[15:12:05] [Server thread/Info]: Beginning minecraft server model 1.12.1
[15:12:05] [Server thread/Information]: Loading properties
[15:12:05] [Server thread/WARN]: server.properties does not exist
[15:12:05] [Server thread/Information]: Generating new properties file
[15:12:05] [Server thread/Data]: Default sport sort: SURVIVAL
[15:12:05] [Server thread/Information]: Generating keypair
[15:12:06] [Server thread/Info]: Starting Minecraft server on *:25565
[15:12:06] [Server thread/Information]: Using epoll channel kind
[15:12:06] [Server thread/Information]: Preparing level "world"
[15:12:06] [Server thread/Info]: Loaded 488 developments
[15:12:07] [Server thread/Information]: Making ready start region for stage 0
[15:12:08] [Server thread/Data]: Making ready spawn area: 7%
[15:12:09] [Server thread/Info]: Getting ready spawn area: 14%
[15:12:10] [Server thread/Info]: Making ready spawn area: 23%
[15:12:11] [Server thread/Data]: Preparing spawn area: 31%
[15:12:12] [Server thread/Data]: Preparing spawn space: 37%
[15:12:13] [Server thread/Information]: Making ready spawn area: 46%
[15:12:14] [Server thread/Information]: Getting ready spawn area: 54%
[15:12:15] [Server thread/Info]: Making ready spawn area: 63%
[15:12:16] [Server thread/Info]: Preparing spawn space: 73%
[15:12:17] [Server thread/Information]: Getting ready spawn space: 84%
[15:12:18] [Server thread/Information]: Getting ready spawn space: 94%
[15:12:19] [Server thread/Info]: Performed (12.866s)! For assist, sort "help" or "?"
Congratulations! You’ve completed organising your new Minecraft gaming server on Ubuntu 14.04, and you may exit the display screen by hitting CTRL + a + d. If you happen to choose to reattach the display, you may achieve this in the next manner:
screen -R
If crucial, you can edit your server’s configuration by the following path:
nano /home/minecraft/server.properties
Your Minecraft server setup is full, and you’re prepared to start using the server for LAN or on-line gameplay in cooperative mode. In case you found this setup guide useful, please share it with others looking to setup their sport server.