Difference between revisions of "Running your own server"

From LugdunonWiki
Jump to: navigation, search
(Created page with "==Introduction== This page should hopefully make getting your own Lugdunon server up and running a little bit easier. It is assumed that you have at least some knowledge in ...")
 
(Setting up the server)
Line 10: Line 10:
 
==Setting up the server==
 
==Setting up the server==
  
 +
 +
If you are upgrading an existing installation, you can download just the <code>lugdunon-server.jar</code> [http://alpha.lugdunon.net/release/current/lugdunon-server.jar here].
 +
 +
Otherwise, the lastest server release is available as either a [http://alpha.lugdunon.net/release/current/lugdunonServer.zip .zip] or a [http://alpha.lugdunon.net/release/current/lugdunonServer.tar.gz .tar.gz] file. Once you have downloaded one of the two above archives, decompress it in a convenient location.
 +
 +
 +
Your file structure should now look like this:
 +
 +
 +
 +
* <code>/lugdunonServer</code>
 +
** <code>/dat</code>
 +
*** <code>server.cfg</code>
 +
** <code>lugdunon-server.jar</code>
 +
** <code>run.bat</code>
 +
** <code>run.sh</code>
 +
 +
 +
Now open the <code>/lugdunonServer/dat/server.cfg</code> file in your favorite plaintext editor and enter the following information into this file:
 +
 +
 +
<code>
 +
server.name=Your Server Name<br/>
 +
host      =ip address or host name to bind to<br/>
 +
su.account =your super user's lugdunon account name<br/>
 +
su.password=your super user's lugdunon account password<br/>
 +
</code>
 +
 +
 +
Save and close the <code>/lugdunonServer/dat/server.cfg</code>.
 +
 +
 +
Once the above steps have been completed you should be able to launch the server by executing the provided run.bat file for windows or the run.sh file for unix/linux/macosx. On startup the server will recognize that it is missing a world definition and attempt to create a default one for you. If everything has been set up correctly, you should see the server start up cleanly and something akin to the following written to the console:
 +
 +
 +
<code style='color:#880000'>19/02/2013 17:58:42.744 INFO Successfully validated super-user.<br/>
 +
19/02/2013 17:58:42.783 INFO World file doesn't exist. Creating default at SERVER_ROOT/dat/default.<br/>
 +
19/02/2013 17:58:42.784 INFO Generating default world configuration.<br/>
 +
19/02/2013 17:58:42.785 INFO Generating default terrain data.<br/>
 +
19/02/2013 17:58:47.659 INFO Config file: etc/commands.json doesn't exist. Creating default.<br/>
 +
...<br/>
 +
19/02/2013 17:58:48.477 INFO Config file: etc/advancements.json doesn't exist. Creating default.<br/>
 +
19/02/2013 17:58:48.553 INFO Manifest initialized with 61 entries.<br/>
 +
19/02/2013 17:58:48.596 INFO ItemDefinitions initialized with 207 entries.<br/>
 +
19/02/2013 17:58:48.604 INFO ItemCache initialized with 15 entries.<br/>
 +
19/02/2013 17:58:48.604 INFO ItemCache initialized with 0 entries.<br/>
 +
19/02/2013 17:58:48.606 INFO PlaceableItemCache initialized with 0 entries.<br/>
 +
19/02/2013 17:58:48.607 INFO WaypointCache initialized with 0 entries.<br/>
 +
19/02/2013 17:58:48.608 INFO NpcDefinitions initialized with 4 entries.<br/>
 +
19/02/2013 17:58:48.687 INFO Advancements initialized with 27 entries.<br/>
 +
19/02/2013 17:58:48.689 INFO NpcCache initialized with 0 entries.<br/>
 +
19/02/2013 17:58:48.768 INFO Recipes initialized with 82 entries.<br/>
 +
19/02/2013 17:58:48.781 INFO Server 'Test Server' initialized with world 'Default 1024x1024 World'.<br/>
 +
19/02/2013 17:58:48.787 INFO Generating Manifest...<br/>
 +
19/02/2013 17:58:50.297 INFO ...Manifest Generation Complete.<br/>
 +
19/02/2013 17:58:50.299 INFO Computing Impassability Flags...<br/>
 +
19/02/2013 17:58:52.391 INFO ...Done in 2.091711 seconds.<br/>
 +
19/02/2013 17:58:52.463 INFO Command '(0x0001) Ping' registered with interpreter.<br/>
 +
...<br/>
 +
19/02/2013 17:58:52.792 INFO Command '(0x0047) Add / Edit Crafting Recipe' registered with interpreter.<br/>
 +
19/02/2013 17:58:52.896 INFO Lugdunon Server Started In: 12.35505 seconds.<br/>
 +
19/02/2013 17:58:52.914 INFO Autosaving at 30 minute intervals.
 +
</code>
 +
 +
 +
If you do have any issues, please feel free send email to [mailto://lugdunondev@gmail.com lugdunondev@gmail.com] with any questions that you might have.
  
 
==Configuring your server==
 
==Configuring your server==

Revision as of 03:04, 13 October 2013

Contents

Introduction

This page should hopefully make getting your own Lugdunon server up and running a little bit easier. It is assumed that you have at least some knowledge in basic networking, executing java .jar files, and how to use the command line.


The server does require java (preferably the latest version so that all the latest security fixes are available), but should run fine on earlier versions (1.6+). You can check your version of java by typing java -version on the command line.


Setting up the server

If you are upgrading an existing installation, you can download just the lugdunon-server.jar here.

Otherwise, the lastest server release is available as either a .zip or a .tar.gz file. Once you have downloaded one of the two above archives, decompress it in a convenient location.


Your file structure should now look like this:


  • /lugdunonServer
    • /dat
      • server.cfg
    • lugdunon-server.jar
    • run.bat
    • run.sh


Now open the /lugdunonServer/dat/server.cfg file in your favorite plaintext editor and enter the following information into this file:


server.name=Your Server Name
host =ip address or host name to bind to
su.account =your super user's lugdunon account name
su.password=your super user's lugdunon account password


Save and close the /lugdunonServer/dat/server.cfg.


Once the above steps have been completed you should be able to launch the server by executing the provided run.bat file for windows or the run.sh file for unix/linux/macosx. On startup the server will recognize that it is missing a world definition and attempt to create a default one for you. If everything has been set up correctly, you should see the server start up cleanly and something akin to the following written to the console:


19/02/2013 17:58:42.744 INFO Successfully validated super-user.
19/02/2013 17:58:42.783 INFO World file doesn't exist. Creating default at SERVER_ROOT/dat/default.
19/02/2013 17:58:42.784 INFO Generating default world configuration.
19/02/2013 17:58:42.785 INFO Generating default terrain data.
19/02/2013 17:58:47.659 INFO Config file: etc/commands.json doesn't exist. Creating default.
...
19/02/2013 17:58:48.477 INFO Config file: etc/advancements.json doesn't exist. Creating default.
19/02/2013 17:58:48.553 INFO Manifest initialized with 61 entries.
19/02/2013 17:58:48.596 INFO ItemDefinitions initialized with 207 entries.
19/02/2013 17:58:48.604 INFO ItemCache initialized with 15 entries.
19/02/2013 17:58:48.604 INFO ItemCache initialized with 0 entries.
19/02/2013 17:58:48.606 INFO PlaceableItemCache initialized with 0 entries.
19/02/2013 17:58:48.607 INFO WaypointCache initialized with 0 entries.
19/02/2013 17:58:48.608 INFO NpcDefinitions initialized with 4 entries.
19/02/2013 17:58:48.687 INFO Advancements initialized with 27 entries.
19/02/2013 17:58:48.689 INFO NpcCache initialized with 0 entries.
19/02/2013 17:58:48.768 INFO Recipes initialized with 82 entries.
19/02/2013 17:58:48.781 INFO Server 'Test Server' initialized with world 'Default 1024x1024 World'.
19/02/2013 17:58:48.787 INFO Generating Manifest...
19/02/2013 17:58:50.297 INFO ...Manifest Generation Complete.
19/02/2013 17:58:50.299 INFO Computing Impassability Flags...
19/02/2013 17:58:52.391 INFO ...Done in 2.091711 seconds.
19/02/2013 17:58:52.463 INFO Command '(0x0001) Ping' registered with interpreter.
...
19/02/2013 17:58:52.792 INFO Command '(0x0047) Add / Edit Crafting Recipe' registered with interpreter.
19/02/2013 17:58:52.896 INFO Lugdunon Server Started In: 12.35505 seconds.
19/02/2013 17:58:52.914 INFO Autosaving at 30 minute intervals.


If you do have any issues, please feel free send email to lugdunondev@gmail.com with any questions that you might have.

Configuring your server

Configuring your world