User:ExtremeHeat11/sandbox/Setting up a server/Mac OS X instructions

Mac OS X instructions
Setting a server up in Mac OS X, requires a bit more work..

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

Mac OS X already comes with its own version of Java that is updated automatically via Software Update (Apple menu > Software Update), so you don't have to worry about that.


 * Create a folder, which you want to run the server from.


 * Drag the server jar to the folder you created.


 * Open TextEdit, set the format to plain text (Format > Make Plain Text), copy and paste in the following:

cd "$(dirname "$0")" exec java -jar minecraft_server.jar
 * 1) !/bin/bash


 * Name the file  or anything you wish, so long as it contains a   file type.


 * Then, save this file to the new folder you made for the server.


 * Open Terminal, by either searching it at Spotlight, or manually going to Application -> Utilities -> Terminal.


 * In Terminal, type in, then drag the new file you just saved with TextEdit into the terminal, which should later look like.


 * Press the return key, and then you can close terminal.


 * Afterwards, simply run the .command file that you created, and the server should run.


 * You're now ready to start configure your server.

Using Time Capsule
Some homes use AirPort Time Capsule as a wireless router instead of other brands. This section will teach you how to set one up without messing up your file server.

NOTE: Make sure you have your admin username and password.

That's it! You're now ready to configure your server.
 * Open System Preferences > Network.
 * Click the Advanced button and go under TCP/IP.
 * Where it says Configure IPv4, change that option to Using DHCP with manual address.
 * Change the IP address to 10.0.1.x, where x can be any number from 1 to 100.
 * Now go to the Sharing section and make sure that Internet Sharing is on.
 * Now, open up AirPort Utility and edit your Time Capsule settings.
 * Go under Network and make sure the option Router Mode is set to DHCP and NAT. Now, click the + button under the Port Settings.
 * Type in the following:
 * Description: Minecraft Server (or whatever you want to call it)
 * Private IP Address: The address you chose for the 4th step.
 * Change everything with the word port in it to 25565.
 * Now hit Save and update the Time Capsule.

Run as a daemon
Alternatively you can automate the startup of the Minecraft server.

Create a Mac OS X startup daemon