Minecraft Wiki
Advertisement
Merge-arrows
It has been suggested that this page be merged with Server. [discuss]
If this merge affects many pages or may potentially be controversial, do not merge the page until a consensus is reached.

In this tutorial I will explain how to set up a server on your own home computer. This is not a professional tutorial, it will explain the very basics on how to install a working Minecraft server.


Quatroking butthurt much?
 Quatroking butthurt much?
Quatroking butthurt much?
Quatroking butthurt much?
Quatroking butthurt much?
Quatroking butthurt much?
Quatroking butthurt much?

Linux

This tutorial for how to set up a Minecraft server on Linux was designed for people who doesn't have a lot of experience with Linux. There is a more advanced tutorial in the forums. This tutorial was tested on Ubuntu 9.10 32-bit but should work with most Linux distros.

Verifying Java version

This step is pretty much the same as in Windows. Open the terminal from Applications > Accessories > Terminal. Enter java -version. It should look something similar to this screenshot from Windows: File:Cmd success.PNG

Make sure that you got version 1.6 (marked with a red box in the image)

Installing Java

If you get java: command not found (which may be followed by more text) or if you do have another java version than 1.6 then you need to install java. Simply type this in terminal and press enter: sudo apt-get install openjdk-6-jre-headless

(Note: In Fedora and Red Hat you use sudo yum install openjdk-6-jre-headless)

If it asks for a password enter your password. If you get asked "Is this OK [y/n]" Enter Y and press enter if required.

Java is now installed

Setting up the Minecraft Server

Download the latest Minecraft server here.

Create a new folder in your home folder (Places > Home) called "minecraft_server" or something similar. Extract the contents of the .zip file to this folder.

To change the server settings edit the Server.properties file.

Start the Minecraft server

Open the terminal again (Applications > Accessories > Terminal). Enter the following commands: cd 'minecraft_server' (change minecraft_server to the same name of the folder you extracted the server to) java -Xms512M -Xmx512M -cp minecraft-server.jar com.mojang.minecraft.server.MinecraftServer

For more information about how to run and maintain a server check Maintaining a server

Reporting problems in the forum

Before you can ask for help in the forums make sure that your problems is not listed in the Common Problems

If your problem is not listed you can create a new thread asking for help in the Server Administration Make sure to include as much information as possible:

  • Operating system
  • What you were trying to do
  • What you did so far
  • Any errors you encountered
  • Screenshots of the problem (if possible)

Other tutorials

Here are some other tutorials on how to set up a Minecraft server.
Linux tutorial for more advanced users
Windows tutorial with focus on how to forward a port

Advertisement