Minecraft is one of the most widely played multiplayer games on the Internet today. Since its appropriate for all ages and is available on a wide range of platforms it's not unusual for there to be several hundred thousand Minecraft players online at any given time.
What we’re going to explore in this how-to is first how to install a Minecraft Server on Ubuntu 18.04 and then install the Minecraft Server Manager to make running the server much easier.
1) First, update the software on the server
# apt update && sudo apt upgrade
2) Install Open JDK
$ sudo apt install openjdk-8-jre-headless screen
3) Create a Directory on You Server For Minecraft
$ sudo mkdir minecraft
4) Download the Latest Minecraft Server from Minecraft.net and Upload it Into the Directory You Just Created
5) Download the Minecraft Server Manager
$ sudo wget -q http://git.io/Sxpr9g -O /tmp/msm && bash /tmp/msm
Make sure to install it on the same directory as your Minecraft .jar file!
6) Create the Server
Note: You’ll need to be root or the user you setup during the Minecraft Server Manager setup to do this part!
# msm create servername
7) Copy the Minecraft Server jar File to Your Server Directory and Run it
# cp /installpath/server.jar /installpath/servers/servername/server.jar # java -jar /installpath/servers/servername/server.jar nogui
8) Modify the EULA.txt so That You Agree to It
# nano /installpath/servers/servername/eula.txt
Modify the text to read the close and save the file.
9) Start the Server
That should get your Minecraft server up and running. If you need further assistance the Minecraft forums or their official support may be able to help you out.
There may be some further configuration needed on your end to make sure your firewall rules allow people to connect to the server. Minecraft is a great game and we hope you enjoy your new server!