Introduction
Minecraft is a sandbox video game that allows players to build and explore a 3D world made up of textured cubes. In addition to constructing various structures, players can also engage in exploration, resource gathering, crafting, and combat.
This guide will walk you through the steps to set up your personal Minecraft server using buycheapvps.
Requirements
For this tutorial, we will use Ubuntu 16.04, but the instructions should be applicable to all available Ubuntu and Debian versions.
To quickly install the Ubuntu 16.04 template on buycheapvps, follow these steps:
Log in to the Client Area.
Navigate to the "My Services > VPS" tab from the top menu.
Click the "Manage" button in the service table.
Select the "Install OS" button.
Choose the Ubuntu 16.04 operating system, agree to the warning, and click "Continue."
Wait 5-10 minutes, then refresh the VPS management page.
Update System
Before proceeding, it is essential to update and upgrade your server. Run the following commands:

Install OpenJDK
Install OpenJDK, an open-source Java implementation, along with the GNU Screen package using this command:

Creating a New User
Create a new user for Minecraft and grant them "sudo" rights:

Switch to the Minecraft user:

Install Minecraft
Download the latest version of the Minecraft Multiplayer Server:
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar
Note: You can find the latest version on the official Minecraft website.
Create a script to run the Minecraft server by creating a file named /home/minecraft/run.sh:

Paste the following code into the file:

Note: The -Xms and -Xmx flags define the minimum and maximum amount of RAM for the Minecraft server. The settings above are suitable for a package "M" with 2 GB of RAM dedicated to the server. Adjust these values as needed.
Make the run.sh script executable:

Run Minecraft
The first time you run the Minecraft server, it will create an EULA file and then exit:

Open the eula.txt file and set the eula value to true:

To run the Minecraft server independently of an SSH connection, execute run.sh within a GNU Screen session:

Note: To detach from the screen session without stopping the server, press CTRL+a and then d. To resume the session, use the command screen -r.
Connect to Your Minecraft Server
Open your local Minecraft client, log in, and select the Multiplayer option:
Click "Add Server" and enter your server's IP address or hostname.
Click "Done."
Your server should now be available for connections. Click "Join Server" to connect.
Conclusion
Congratulations! You've successfully set up your own private Minecraft server. You can now enjoy playing with friends from anywhere. We recommend exploring various configurations and mods to enhance your Minecraft experience.