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

Mac OS X instructions
Setting a server up in Mac OS X is "more involved" than in Windows because an executable file has not been made available. A three step in-depth video tutorial of the process can be seen here. Keep in mind that the server won't run correctly on OSX 10.4 and may crash your machine.

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

Installing Java
Mac OS X already comes with its own version of Java that is updated automatically via Software Update (Apple menu > Software Update).

Setting up the Minecraft server
Ensure you have followed the download step before proceeding.


 * Create a folder, if you haven't already, and put minecraft_server.jar into it. For example, create a folder on the Desktop named minecraft_server and drag the jar file into it.
 * Open TextEdit, set the format to plain text (Format > Make Plain Text), copy and paste in the following:
 * Save the file as "start.command" in the same folder as minecraft_server.jar.
 * This will give the server enough RAM to run. The amount of RAM can be changed by editing the  to something else, such as   for 2 GB.
 * Open Terminal (in /Applications/Utilities/Terminal).
 * Grant execute permissions on file start.command to Owner, Group. and Public. To do so, type in , with a space after it; drag and drop the start.command file into the terminal window; and then press enter. (This gives run permission to the start.command script.)
 * Double-click the start.command file to start the server.
 * A new Terminal window will open and, the first time you run the script, several error messages about missing files/directories will appear. This is normal. You're now ready to 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