StendhalLocalhostServerOnLinux: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Blacklads
Undo revision 11670 by Ufizavipupu (Talk)
imported>Oslsachem
Line 9: Line 9:
*Command-line access ''(ask system administrator if it's a problem)''
*Command-line access ''(ask system administrator if it's a problem)''


For '''easy''' H2 database configuration (which is shipped with Stendhal and is installation-free) just skip straight to '''Choosing the Java Virtual Machine'''.
'''Optionally''':
*MySQL ''sudo apt-get install mysql-server''
Otherwise you can just use the H2 database which is shipped with Stendhal and is installation-free.


For '''advanced''' MySQL configuration, install MySQL:
== Getting the materials ==
Download a current version of the Stendhal server, stendhal-server-{{version}}.zip from [http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloadsection arianne.sf.net].


sudo apt-get install mysql-server
If you want to compile it yourself from CVS or the source code provided at the downloads link, then see [[HowToBuildStendhal|How to build Stendhal]] for more info. If you run a Linux System, then you have the necessary tools to get everything else.


Also download the java connector library if necessary (it's called ''MySQL Connector/J'' ), and make sure a symbolic/soft link to it named ''mysql-connector.jar'' is on the classpath (e.g. in the directory called ''libs'' inside the ''stendhal_server'' directory) when running ''maraurorad'' later.

For example:

ln -s /path/to/file-name/mysql-connector-java-5.1.10.jar mysql-connector.jar

== Choosing the Java Virtual Machine ==
Stendhal works with OpenJDK or Sun Java, you will need Java 5 or greater.
Stendhal works with OpenJDK or Sun Java, you will need Java 5 or greater.


Line 26: Line 30:
(using sudo if you are an ubuntu user, or as root if you are another linux user) which should give you output something like this:
(using sudo if you are an ubuntu user, or as root if you are another linux user) which should give you output something like this:


*java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
*''java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun''
*java-gcj 1042 /usr/lib/jvm/java-gcj
*''java-gcj 1042 /usr/lib/jvm/java-gcj''
*java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
*''java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk''


now, lets say you want to use the java-6-openjdk. Then you type
now, lets say you want to use the ''java-6-openjdk''. Then you type
update-java-alternatives --set java-6-openjdk
update-java-alternatives --set java-6-openjdk
Now run
Now run ''java --version'' again to check it worked.
java --version
again to check it worked.

== Getting the materials ==
Download a current version of the Stendhal server, ''stendhal-server-{{version}}.zip'' from [http://arianne.sourceforge.net/?arianne_url=games/game_stendhal#downloadsection arianne.sf.net].

If you want to compile it yourself from CVS or the source code provided at the downloads link, then see [[HowToBuildStendhal|How to build Stendhal]] for more info. If you run a Linux System, then you have the necessary tools to get everything else.


= Setting up MySQL =
= Setting up MySQL =