How to Setup a Minecraft Server on Debian or Ubuntu OS

Prerequisites:

1.You must have Alibaba Cloud Elastic Compute Service (ECS). To get free $300 credits in your Alibaba Cloud account “Click Here”.
2.You must have a version of game client from https://www.minecraft.net to use your Minecraft server.
3.You should setup your server’s hostname.
4.Follow the general instructions to secure your server e.g. activating firewalls.

Minimum Requirements for these settings:

1.Ubuntu 16.04 installed or Debian 8 installed on server
2.2GB RAM required (4GB Recommended)
3.Fast Internet (Provided with every ECS on Alibaba Cloud)

Before you begin:

Before you begin installation of Minecraft on your server, you will have to follow steps below:

Install GNU Screen Packages:

To install GNU Screen Packages in Debian or Ubuntu, use the following commands:

Install OpenJDK:

In Debian 8:

Use the following command for installing OpenJDK with GNU Screen Package in Debian 8.

In Ubuntu 16.04:

Use the following command for installing OpenJDK with GNU Screen Package in Ubuntu 16.04.

In Debian:

In Debian, sudo is not enabled by default. You have to install sudo first. Use the following command:

In Ubuntu:

In Ubuntu, you don’t need to install sudo manually. Just add the user using the following command:

Installation of Minecraft:

1.To install Minecraft, first of all logout from your “root” account by ending SSH session in your SSH client that you are using (In my case, I used putty SSH client.).
2.Login back to via SSH client or VNC console available in your Alibaba Cloud account dashboard as user “minecraft” that we created with root privileges.
3.Now you have to download latest version of the Minecraft Multiplayer Server from https://www.minecraft.net using the following command:

Now Run Minecraft:

1.When you will run Minecraft server first time using the following command, EULA file will be created and it will exit from running state.

Now Connect to your Minecraft Server:

  1. Now open your Minecraft client and login. After logging in, select Multiplayer option.
    2.Then select Add Server and enter your Alibaba Cloud Elastic Compute Service (ECS) instance IP address or domain name. Then select done.
    3.Your server is available now for incoming connections. Select Join Server to connect to the server.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store