Hosting a Minecraft server on a VPS (Virtual Private Server) provides control and customization of your gaming experience. However, if you prefer a more straightforward solution, Cubes Hosting offers pre-made Minecraft hosting packages. These packages are not only cost-effective but also relieve you from the technical maintenance of running a server on a VPS. For those who still prefer a hands-on approach, here's how to set up a Minecraft server on a VPS using 'screen'.

Step 1: Connect to Your VPS

  • Access your VPS via SSH using your preferred SSH client.

Step 2: Install Java

  • Minecraft servers run on Java, so ensure it's installed:

    sudo apt update sudo apt install default-jdk

Step 3: Install Screen

  • Install 'screen' to run your server in a detachable session:

    sudo apt install screen

Step 4: Create a Minecraft Server Directory

  • Create a directory for your Minecraft server:

    mkdir minecraft_server cd minecraft_server

Step 5: Download the Minecraft Server Software

  • Download the Minecraft server .jar file from the official Minecraft website.

    Use wget followed by the direct download link to the server file.

Step 6: Start the Server

  • Start the server inside a 'screen' session:

    screen -S "MinecraftServer" java -Xmx1024M -Xms1024M -jar server.jar nogui

    Replace 'server.jar' with the actual server file name. Adjust the memory flags (-Xmx and -Xms) based on your VPS's available memory.

Step 7: Detach from Screen Session

  • Once the server is running, detach from the screen session by pressing Ctrl + A, then D.

Step 8: Managing Your Minecraft Server

  • To reattach to the session, use screen -r MinecraftServer.

  • To stop the server, reattach to the screen session and use the command stop.

Pre-Made Minecraft Hosting Packages

If managing a Minecraft server on a VPS sounds too technical or time-consuming, consider Cubes Hosting's pre-made Minecraft hosting packages. These packages offer a hassle-free, cost-effective solution, including server maintenance, updates, and support, allowing you to focus on enjoying the game.


Setting up a Minecraft server on a VPS can be a rewarding project for those who enjoy a DIY approach. However, for an easier and more efficient solution, Cubes Hosting's Minecraft packages are an excellent choice, providing a seamless gaming experience without the technical overhead.

Was this answer helpful? 0 Users Found This Useful (0 Votes)