Blog

Home/About Minecraft/How to Set Up a Bukkit Minecraft Server on Linux and Mac

How to Set Up a Bukkit Minecraft Server on Linux and Mac

Although the Windows platform dominates the personal computer market, some users prefer using alternatives in running their Minecraft servers. As such, the custom Minecraft server known as Bukkit is not only compatible with Microsoft’s operating system; it can be also set up in Linux distros and the Mac OS X. This tutorial will teach you how to install a Minecraft Bukkit server on these other OSs.

Preparations

As I’ve mentioned in my Bukkit setup guide for Windows, running a server requires some technical background on computers and networking. There’s also the misconception that Linux (and probably Mac, too) is harder to use than Windows, but it’s actually just a matter of getting used to the differences. Once you’ve familiarized yourself with the network configurations and user interfaces of Linux and/or Mac OS X, you should be able to start running your very own Minecraft server without a hitch.

How to Set Up a Bukkit Minecraft Server on Linux

1. Download a CraftBukkit build of your choice: recommended, beta, or development.
2. Transfer the downloaded .jar file in a folder. For instance, ~/craftbukkit
3. Open the terminal and navigate to your folder directory, i.e., cd ~/craftbukkit
4. Create a new file in the folder and save it as craftbukkit.sh
5. Edit the file so that it has the following lines:

#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
java -Xmx1024M -jar craftbukkit.jar -o true

6. Convert craftbukkit.sh into an executable file. You can do this by entering chmod +x ~/craftbukkit/craftbukkit.sh in the terminal or by modifying the file’s properties.
7. Launch the server via the terminal by inputting ~/craftbukkit/craftbukkit.sh
8. To terminate the server, input stop in the console.

You can make use of init scripts to run the server on a more permanent basis.

How to Set Up a Bukkit Minecraft Server on Mac

1. Determine if Java is installed in your system. If missing, grab the latest Java package for Mac at this Apple support page.
2. Download the server file.
3. Create a new folder named CraftBukkit where you’ll transfer the server file from the Downloads folder.
4. Create a script for launching the server. This can be done by using the TextEdit app in plain text mode/format and typing the following:

#!/bin/bash
cd "$( dirname "$0" )"
java -Xmx1024M -jar craftbukkit.jar -o true

5. Save the file as start_server.command in the folder you previously created.
6. To run the script, open Terminal.app
8. Type chmod a+x (don’t press the return key just yet), drag start_server.command into the Terminal.app, and now press the return key.
9. Once all the steps above have been performed, you can now launch the server by simply double-clicking the start_server.command.

  • Launching the server for the first time will lead to automatic creation of configuration files. This is normal.
  • If you must terminate the server, don’t do so by closing the window lest you risk corrupting your save files. Input stop in the console instead.

Why Linux (and/or Mac) beats Windows in running a Minecraft server

Even though Windows is the most popular desktop platform, you don’t have to stick with it when running a Minecraft server. In fact, Linux and/or Mac have a number of reasons as to why they’re the better choice for running your server. For one, Linux systems tend to be more stable than other systems, so much so that users don’t experience any crashes for days. In terms of security, Linux and Mac also win since Windows is the often the target of malicious software.

Summary
How to Set Up a Bukkit Minecraft Server on Linux and Mac
Article Name
How to Set Up a Bukkit Minecraft Server on Linux and Mac
Description
The custom Minecraft server known as Bukkit is not only compatible with Microsoft's operating system; it can be also set up in Linux distros and the Mac OS X. This tutorial will teach you how.
Author

Written by

I'm a young entrepreneur, writer and game lover. I co-founded Host The Game to provide all the latest news about gaming along with providing a reliable solution to host those games online.