StendhalLocalhostServerOnLinux: Difference between revisions

Content deleted Content added
imported>Ufizavipupu
No edit summary
imported>Blacklads
Undo revision 11670 by Ufizavipupu (Talk)
Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://osobageqys.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
----
=[http://osobageqys.co.cc CLICK HERE]=
----
</div>
This guide applies to:
*Marauroa 2.1 and above
*Stendhal 0.65.5 and above
<br>
&lt;br&gt;
= Setting up a localhost server =
This guide will teach you how to set up a server on your Linux machine. The server will be a local one, so people from around the world cannot get to your server. Only those who are directly connected to you via a LAN can connect to this server. The required packages are:
Line 49 ⟶ 41:
mysql -u NAME -p
if you need a password for your server (by default, you don't).
If you don't need a password, omit the &quot;"-u NAME -p&quot;" part.
At the prompt that appears, type
create database marauroa;
Line 66 ⟶ 58:
cd
mkdir stendhal_server
This will create a directory called &quot;"stendhal_server&quot;" in your home directory. See how easy that was? And how easy to tell what will be in that directory? That's the beauty of organization.
 
== Stendhal server files ==
Line 86 ⟶ 78:
... or in a directory called ''lib'' or ''libs'' inside the stendhal_server directory. If any are in ''lib'' or ''libs'' please move them up into the main stendhal_server directory.
 
&lt;<small&gt;>If any of the latter jars are missing you can fetch them here: http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/&lt;</small&gt;>
Done!
 
Line 110 ⟶ 102:
*password, write the password you used giving MySQL permissions (BAR)
*port, anything above 1024. 32160 is the default for stendhal, but it can be anything above 1024
*game, type &quot;"stendhal&quot;" (or a number for that, if a multiple-choice menu appears)
*turn time, or how long the server takes to process each event, choose anything above 200, but below 1000. This is in milliseconds. default is 300
*log and stats generation logs, use the default (&quot;"./&quot;") - it's in the same directory as everything else
*RSA key size, choose anything smaller than 1024 bits, but greater than 512 (or equal to). This is to make sure that the login information is valid and secure. Like the prompt says, anything greater than 1024 can take a LONG time. But, if you have ~30 minutes to spare (more or less, depending on your comp), you could use the extra security
 
Well, thats everything! When it's finished, you'll have a new file, &quot;"server.ini&quot;". Don't lose it, as it contains the information to get your server up &amp; running, as well as the key to do that. If Marauroa won't start, and nor will your server, check to see if that INI file is there (at the same directory! NOWHERE ELSE!) and if it is, try running the GenerateINI command again; the file could have change with updating the RSA keys
 
== Starting Server ==
Line 133 ⟶ 125:
 
= Extras =
This is the extras section! Here you have trouble shooting, and hints &amp; tips
== Troubleshooting ==
In general please see [[StendhalServerTroubleShooting]].
Line 139 ⟶ 131:
=== Class not found exceptions ===
For example:
&lt;<pre&gt;>
Exception in thread &quot;"main&quot;" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
&lt;</pre&gt;>
Please open runserver.sh in a text editor. You'll see the classpath defined there, something like
LOCALCLASSPATH=.:data/script/:data/conf/:stendhal-server-$STENDHAL_VERSION.jar:marauroa.jar:mysql-connector.jar:log4j.jar:commons-lang.jar
Line 156 ⟶ 148:
ps xa | grep mysqld
 
If it shows that mysqld is running with the option &quot;"--skip-networking&quot;" then comment it out in the &quot;"my.cnf&quot;" file (It has been reported that the line to comment out is actually: SKIP=&quot;"--skip-networking&quot;", found at: /etc/rc.d/rc.mysqld ).
 
If you have already commented it out then perhaps you have previously started the server with:
Line 164 ⟶ 156:
Stop the server and then restart with:
 
mysqld_safe &amp;
 
Check with:
Line 170 ⟶ 162:
ps xa | grep mysqld
 
that no &quot;"--skip-networking&quot;" is present.
 
Then run the stendhal server again.