Difference between revisions of "Installation"

From Mineserver Wiki
Jump to navigation Jump to search
Ensure that you have all the prerequisites installed. <code>zlib.h</code> is zlib, <code>event.h</code> is libevent and <code>noise.h</code>, <code>interp.h</code> or <code>mathconsts.h</code> are libnoise.
Ensure that you have all the prerequisites installed. <code>zlib.h</code> is zlib, <code>event.h</code> is libevent and <code>noise.h</code>, <code>interp.h</code> or <code>mathconsts.h</code> are libnoise.
 +
=====Arch Linux=====
 +
 +
To install the latest development version of mineserver, you can download the [http://aur.archlinux.org/packages.php?ID=44017 mineserver-git] package from [https://wiki.archlinux.org/index.php/Arch_User_Repository AUR].
 +
 +
Example on how to install the package:
 +
 +
  user@host ~ % wget http://aur.archlinux.org/packages/mineserver-git/mineserver-git.tar.gz
 +
  user@host ~ % tar xfz mineserver-git.tar.gz
 +
  user@host ~ % cd mineserver-git
 +
  user@host ~/mineserver-git % makepkg
 +
  user@host ~/mineserver-git % sudo pacman -U mineserver-git-*.pkg.tar.xz
 +
 +
And you're done. You can run the server with <code>mineserver /usr/share/mineserver/config.cfg</code>
 +
 +
''Note: if you want to change the default configuration, you will have to copy them into another directory.''
 +
 +
This is an example on how you copy all the configuration files to the ~/minecraft-server directory which you then can change to your preferences.
 +
 +
  user@host ~ % mkdir minecraft-server && cd minecraft-server
 +
  user@host ~ % cp /usr/share/minecraft/* .
 +
  user@host ~ % ls
 +
  admin.txt  banned.txt  config.cfg  item_alias.cfg  motd.txt  rules.txt  whitelist.txt
 +
 +
You can then run the server by issuing <code>mineserver</code>, without specifying the configuration file location, since mineserver will look for it in the current directory.
 +
====OS X====
====OS X====