Table of Contents
Was this article helpful?

21  out of  27 found this helpful

Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $300 by adding new articles!

Install a Minecraft Server on Debian 10

Last Updated: Tue, Apr 23, 2019
Debian Game Servers Linux Guides Minecraft


A Minecraft server allows you to play Minecraft online with other people. This guide explains how to install a Minecraft server on Debian 10 (Buster).

1. Prepare the System

2. Install Java

Install the headless OpenJDK version.

  • For Minecraft versions prior to 1.17:

    $ sudo apt update
    $ sudo apt-get install openjdk-8-jdk-headless
  • For Minecraft version 1.17 or later:

    $ sudo apt update
    $ sudo apt install openjdk-16-jdk-headless

3. Install Screen

Screen is a GNU utility that allows Minecraft to run in the background.

$ sudo apt install screen -y

4. Install Minecraft

Change to the mcuser home directory.

$ cd ~

Create and change to the minecraft folder.

$ mkdir minecraft
$ cd minecraft

Download the Java server. Use the URL on the download page.

$ wget[NEWEST_VERSION]/server.jar

Create a startup script.

$ nano

Paste this script into Replace 1024M with the RAM installed on your server.


java -Xms512M -Xmx1024M -jar server.jar nogui

Make executable.

$ chmod +x

Agree to Minecraft's End User License Agreement.

$ echo "eula=true" > eula.txt

5. Start the Server

Start screen.

$ screen -S "My Minecraft Server"

Run the startup script.

$ cd ~/minecraft
$ ./

To exit out screen, press CTRL + A, then D. To open the window again, use screen -r.


Congratulations, you now have a Minecraft server installed on Debian 10.

Want to contribute?

You could earn up to $300 by adding new articles