OS X Minecraft server setup: Difference between revisions
No edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
=== Install [http://tmux.github.io tmux]. === | === Install [http://tmux.github.io tmux]. === | ||
<div class="toccolours mw-collapsible mw-collapsed" > | <div class="toccolours mw-collapsible mw-collapsed"> | ||
Use macPorts for the install process. It can be done like this at the time of writing they page. | Use macPorts for the install process. It can be done like this at the time of writing they page. | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
Line 58: | Line 58: | ||
=== User with limited privileges. === | === User with limited privileges. === | ||
<div class="toccolours mw-collapsible mw-collapsed"> | |||
The following procedure IS complicated... but necessary if you want to run your Minecraft Server as secure as possible. The login to GUI, makes it possible to run scheduled tasks using OS X launchd / launchctl ;-) | |||
<div class="mw-collapsible-content"> | |||
# Do it [http://minecraft.gamepedia.com/Tutorials/Create_a_Mac_OS_X_startup_daemon#The_hard_.28and_correct.29_way like this], but After <code>"append Groups/_minecraft GroupMembership _minecraft" </code> <br />execute the ddcl command <code> passed /Users/_minecraft "YourTemporaryPassword"</code> | # Do it [http://minecraft.gamepedia.com/Tutorials/Create_a_Mac_OS_X_startup_daemon#The_hard_.28and_correct.29_way like this], but After <code>"append Groups/_minecraft GroupMembership _minecraft" </code> <br />execute the ddcl command <code> passed /Users/_minecraft "YourTemporaryPassword"</code> | ||
# Exit dscl | # Exit dscl | ||
Line 68: | Line 71: | ||
# STOP completely when you reach "Creating the user home". The rest is covered here after :-) | # STOP completely when you reach "Creating the user home". The rest is covered here after :-) | ||
Finish up by deleting the following obsolete files and folders. | Finish up by deleting the following obsolete files and folders. | ||
# <code>cd ../_minecraft/</code > | # <code>cd ../_minecraft/</code > | ||
# <code>sudo rm -R Desktop Documents Downloads Movies Music Pictures</code > | # <code>sudo rm -R Desktop Documents Downloads Movies Music Pictures</code ></div> | ||
</div> | |||
=== BitBucket scripts for running a Minecraft server. === | === BitBucket scripts for running a Minecraft server. === |
Revision as of 10:16, 8 November 2015
Preface.
This page will describe how i run my Minecraft servers.
The guide to YAMS.
Install Macports.
Installation is neatly described at the Macports install page.
Install tmux.
Use macPorts for the install process. It can be done like this at the time of writing they page.
- sudo port install tmux
- type in your password, and you should get something similar to this:
Password: ---> Computing dependencies for tmux ---> Dependencies to be installed: libevent ---> Fetching archive for libevent ---> Attempting to fetch libevent-2.0.22_1.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/libevent ---> Attempting to fetch libevent-2.0.22_1.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libevent ---> Attempting to fetch libevent-2.0.22_1.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/libevent ---> Fetching distfiles for libevent ---> Attempting to fetch libevent-2.0.22-stable.tar.gz from http://skylink.dl.sourceforge.net/levent/libevent/libevent-2.0 ---> Verifying checksums for libevent ---> Extracting libevent ---> Applying patches to libevent ---> Configuring libevent ---> Building libevent ---> Staging libevent into destroot ---> Installing libevent @2.0.22_1 ---> Activating libevent @2.0.22_1 ---> Cleaning libevent ---> Fetching archive for tmux ---> Attempting to fetch tmux-2.1_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/tmux ---> Attempting to fetch tmux-2.1_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/tmux ---> Attempting to fetch tmux-2.1_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/tmux ---> Fetching distfiles for tmux ---> Attempting to fetch tmux-2.1.tar.gz from http://lil.fr.distfiles.macports.org/tmux ---> Verifying checksums for tmux ---> Extracting tmux ---> Configuring tmux ---> Building tmux ---> Staging tmux into destroot ---> Installing tmux @2.1_0 ---> Activating tmux @2.1_0 If you want integration with system pasteboard consider installing port tmux-pasteboard as well ---> Cleaning tmux ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found.User with limited privileges.
The following procedure IS complicated... but necessary if you want to run your Minecraft Server as secure as possible. The login to GUI, makes it possible to run scheduled tasks using OS X launchd / launchctl ;-)
- Do it like this, but After
"append Groups/_minecraft GroupMembership _minecraft"
execute the ddcl commandpassed /Users/_minecraft "YourTemporaryPassword"
- Exit dscl
- Stop following the guide when you get to "You might want something like this to prevent the user from showing up in the login dropdown:".
- Log out of OS X
- Log in as "_minecraft". Skip everything related to the first userlogin on the GUI.
- Log out.
- Log in as your normal user.
- Continue the user creation from "You might want something like this to prevent the user from showing up in the login dropdown:"
- STOP completely when you reach "Creating the user home". The rest is covered here after :-)
Finish up by deleting the following obsolete files and folders.
cd ../_minecraft/
sudo rm -R Desktop Documents Downloads Movies Music Pictures
BitBucket scripts for running a Minecraft server.
- Change to the new user :
sudo su - _minecraft
TBD
https://[email protected]/fmjensen/vanilla-minecraft.git
About the server update script.
This script can update the server, IF it is not running... and since you have not downloaded any jar-files yet, i don't think it is running ;-)
You will need to manually obtain the following files:
- bin/blah... (link to file)
- eula.txt must contain three lines like:
By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula). #Fri Apr 1 12:12:12 UTC 2015 eula=true
- Make sure you are logged in as the _minecraft user, and you are in the correct folder.
TBD
Edit configuration files.
XXX
Test if the server behaves and works as expected..
- Change to the new user
TBD
XXX.
XXX