Minecraft Blogs / Tutorial

How to make a CraftBukkit/Vanilla 1.5.2 server [Windows] [Mac] [Linux]

  • 4,563 views, 5 today
  • 4
  • 0
  • 4
Blueminervideos's Avatar Blueminervideos
Level 29 : Expert Geek
27
So you wanna make Minecraft server?

Well, you have come to the right place! This blog goes into very fine detail on how to make your very own Bukkit server. Before we start here is a list off required downloads for you!!!

If you just need to know how to port forward scroll to bottom!!!

If you like this post Diamond, Favorite, and maybe even Subscribe!!!!!!

Downloads:
CraftBukkit: http://dl.bukkit.org/
WinRar Archiver: http://www.rarlab.com/
Java: http://www.java.com/en/
Other:
Vanilla: http://minecraft.net/download
Bukkit


Linux
1. Download CraftBukkit's latest build [At top]
2. Put the .jar in a folder, for this example we'll use a generic one: ~/craftbukkit
3. Move to the above directory in terminal with 'cd ~/craftbukkit'
4. Create a new file in the minecraft folder and name it craftbukkit.sh
5. Edit the file and paste this into it:

#!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" java -Xmx1024M -jar craftbukkit.jar -o true6. Make the file executable, either by running "chmod +x ~/craftbukkit/craftbukkit.sh" in a terminal, or by changing the permissions in the file's properties.

7. Then, in terminal, type '~/craftbukkit/craftbukkit.sh' to run to start the server.
8. When you're done playing around, issue the "stop" command in console.

If you plan to run the server more permanently an init script like this one (recommended) [1]

If you want to run your server with screen, you can use a script like this one (recommended) ABM


a

Linux instructions



This tutorial for how to set up a Minecraft server on Linux was designed for people who don'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 the descendants of Debian.

Downloading



Ensure you have the latest server application software. Look above for instructions.

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 or update java. The official Oracle Java is recommended. A few individuals have experienced issues with OpenJDK. Others report that running on OpenJDK is completely fine.

Debian



Ensure that the non-free repository is being scanned by apt. You do this by adding non-free to your /etc/apt/sources.list file. e.g.:
deb ftp.uk.debian.org/debian/ squeeze main contrib non-free

Update your sources list (as root):
apt-get update

Then to install Java, simply type this in terminal and press enter (as root):
apt-get install sun-java6-jre

Ubuntu



Unfortunately, some licensing issues have prevented Canonical from allowing repositories to have Sun Java, so you must either download it directly from Oracle, package it, and install it or you could use the PPA provided by webupd8 by following the instructions below.


This guide has been tested on Ubuntu Server 12.10.

Note: You might need to install the package "software-properties-common" by running apt-get install software-properties-common to use the apt-add-repository command.

Run the following commands in this order to add the PPA, update the source list and then install java:
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


Then run this to check what version you have installed:
java -version


The output should be similar to:
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)


For more information or troubleshooting see this link at webupd8s site

openSUSE



On older versions, you can simlpy type zypper in java-1_6_0-sun into a terminal.

On newer versions, there is a tutorial here describing how to install Java.

Arch Linux



Open a terminal and run pacman -S openjdk6 as root.

Gentoo



Use: emerge virtual/jre

Other distros



Alternatively, you can visit Java's website directly to download the Java package for Linux. Most distros work with this (either 32 or 64-bit). Instructions for the installation of those different packages are given on the site.

If during installation, 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 should now be installed.

Start the Minecraft server



Open the terminal again Applications > Accessories > Terminal Enter the following commands, substituting 'minecraft_server' with the name of the folder you extracted the server to:

cd minecraft_server
java -Xms1G -Xmx1G -jar minecraft_server.jar nogui

Less than 1GB free RAM



If you have less than 1024MB RAM, the above line may cause problems with swapping and out of memory conditions, which makes the game hard to play.

cd minecraft_server
java -Xms1G -Xmx1G -jar minecraft_server.jar nogui
free -m It may look like this:


Ram leftPNG

You are interested in the last number in the third line, 2163 in this case. Subtract some RAM as safety. On this computer, the server may use up to 1536 MB RAM. Now, replace the 1024 in the above example with the calculated number:

java -Xms1536M -Xmx1536M -jar minecraft_server.jar nogui

Voila, it should run smoothly now

Tip: If you want to spare more memory, you may set the -Xms parameter even lower, say:

java -Xms32M -Xmx512M -jar minecraft_server.jar nogui

The parameter controls how much memory is reserved on startup Your server will start with 32MB RAM and whenever it needs more memory it will allocate some until it reaches the maximum of 512 MB. However, this will result in a little slowdown whenever the allocation is done.

Startup and maintenance script



Alternatively you can manage/automate the startup and shutdown of the Minecraft server using a script such as the ones listed below:


Windows Bukkit Guide

Mac Bukkit Guide

Linux Bukkit Guide


Also Here is how you can port forward!!!!
Link: http://portforward.com/
PortForwarding Guide


If you really loved this post please leave a

thidHampwamphampc
It shows that you liked my work and motivates me to do more!!!!!!!!!!!!!!
Tags

Create an account or sign in to comment.

1
06/19/2013 11:24 am
Level 1 : New Miner
serbog
serbog's Avatar
Hi i could not portforward can you help me with that?
1
06/19/2013 11:26 am
Level 29 : Expert Geek
Blueminervideos
Blueminervideos's Avatar
Sure k tell me exactly what your problem is.
1
06/19/2013 11:28 am
Level 1 : New Miner
serbog
serbog's Avatar
Well I tryed portforwarding the manual and automatic way ( with simple portforwarder )( but i didn't work it was failing the hole time so i stoped portofrwarding and go into hamachi but it sucks. Please help me!
1
06/19/2013 11:30 am
Level 29 : Expert Geek
Blueminervideos
Blueminervideos's Avatar
Ok well first tell me hat router you are using
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome