New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
Services & ToolsInstall Minecraft Server

How to Install a Minecraft Server on Your Linux VPS

Install Minecraft server on a Linux VPS (Ubuntu/Debian)

2 min read
Oct 15, 2023
  1. Update system
    Update your system and install the necessary programs.

    apt update && apt upgrade -y
    
    Debian 10
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A
    
    echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu focal main" | tee /etc/apt/sources.list.d/java.list
    
    apt update
    
    apt install screen gnupg oracle-java17-installer -y
    

    Accept the license conditions by clicking on "OK" with TAB and confirm with ENTER. In the following window click on "YES" and confirm again with ENTER.

    Debian 11
    apt install screen openjdk-17-jre-headless -y
    
    Ubuntu
    sudo apt install screen gnupg software-properties-common -y
    
    sudo add-apt-repository ppa:linuxuprising/java
    
    sudo apt update
    
    sudo apt install oracle-java17-installer -y
    

    Accept the license conditions by clicking on "OK" with TAB and confirm with ENTER. In the following window click on "YES" and confirm again with ENTER.

  2. Create subuser
    Create a subuser for the Minecraft server and log in with it.

    adduser minecraft --disabled-login
    
    su minecraft -l
    
  3. Select version
    Choose a server version to download (for example Spigot 1.19.3).

    wget https://download.getbukkit.org/spigot/spigot-1.19.3.jar
    
  4. Create start file
    Create a start.sh file for launching the server.

    nano start.sh
    

    Copy the following line and paste it with a left click:

     screen -AmdS minecraft java -Xms1G -Xmx1G -jar spigot-1.19.3.jar
    
  5. Accept licenses
    Accept the EULA and assign the correct file rights.

    echo "eula = true" > eula.txt
    
    chmod +x start.sh
    
  6. Start server
    Run the start script to launch your Minecraft server.

    ./start.sh
    
Written byEmeraldHost Team
Last updated on Mar 19, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord

Join our Discord community 1257 members online right now