Create minecraft server in linux

Make sure you have the latest java from oracle

# java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Make a diretory for the server
# mkdir /opt/minecraft

Download minecraft jar

# cd /opt/minecraft && wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.1/minecraft_server.1.8.1.jar

Run the server for the first time, it will create its settings file and ask you to accept the eula

# java -Xms32M -Xmx512M -jar /opt/minecraft/minecraft_server.1.8.1.jar nogui

Quit by issuing ctrl-c and then edit eula.txt,set eula=true
Set your admin user in ops.json

[
  {
    "uuid": "093953b0-ee80-4a0c-a00e-5f13a1a69f25",
    "name": "CDDO",
    "level": 4
  }
]

You can get your user's uuid in http://minecraft-techworld.com/uuid-lookup-tool

Leave a Reply

Your email address will not be published. Required fields are marked *