Running a Minecraft Server on Raspberry Pi

Minecraft Dedicated Server
Please share with your friends...
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Installation

  1. Create an installation directory for Minecraft Server, using the following two commands:
    sudo mkdir /opt/minecraft-server
    cd /opt/minecraft-server
  2. Download the latest official Minecraft Server, using the following command:
    sudo wget https://s3.amazonaws.com/Minecraft.Download/versions/1.x.x/minecraft_server.1.x.x.jar

    Replace 1.x.x with the actual version you wish to download. Refer to the Minecraft Download page to find the latest version.

  3. Rename the downloaded Minecraft Server file, using the following command:
    sudo mv minecraft_server.1.x.x.jar minecraft_server.jar

    Replace 1.x.x with the actual version you wish to download.

  4. Perform the initial launch of the Minecraft Server to generate the configuration files, using the following command:
    sudo java -jar minecraft_server.jar

    The command will produce output similar to the following:

    [Server thread/INFO]: Starting minecraft server version 1.x.x
    [Server thread/INFO]: Loading properties
    [Server thread/WARN]: server.properties does not exist
    [Server thread/INFO]: Generating new properties file
    [Server thread/WARN]: Failed to load eula.txt
    [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
    [Server thread/INFO]: Stopping server
    [Server Shutdown Thread/INFO]: Stopping server
  5. Use the nano text editor to open eula.txt with the following command:
    sudo nano eula.txt

    Modify the line:

    eula=false

    To read:

    eula=TRUE

    Press Ctrl+X to exit nano, press Y to save changes when prompted, and press Enter to confirm eula.txt as the existing filename.

  6. Use the nano text editor to open server.properties with the following command:
    sudo nano server.properties

    Add the line:

    max-tick-time=-1

    This setting disables the watchdog, and stops the server from being forcibly shutdown – which seems to be an issue on the Raspberry Pi.

    Add and modify other settings as required – refer to this guide for assistance.

    Press Ctrl+X to exit nano, press Y to save changes when prompted, and press Enter to confirm server.properties as the existing filename.

Your Raspberry Pi Minecraft Server is ready to go!


Please share with your friends...
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply