StendhalLocalhostServerOnLinux: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann →Note for Slackware users:: that's true for Debian and Ubuntu, too |
imported>Ufizavipupu No edit summary |
||
| Line 1: | 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: |
This guide applies to: |
||
*Marauroa 2.1 and above |
*Marauroa 2.1 and above |
||
*Stendhal 0.65.5 and above |
*Stendhal 0.65.5 and above |
||
<br> |
|||
<br> |
|||
= Setting up a localhost server = |
= 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: |
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 41: | Line 49: | ||
mysql -u NAME -p |
mysql -u NAME -p |
||
if you need a password for your server (by default, you don't). |
if you need a password for your server (by default, you don't). |
||
If you don't need a password, omit the |
If you don't need a password, omit the "-u NAME -p" part. |
||
At the prompt that appears, type |
At the prompt that appears, type |
||
create database marauroa; |
create database marauroa; |
||
| Line 58: | Line 66: | ||
cd |
cd |
||
mkdir stendhal_server |
mkdir stendhal_server |
||
This will create a directory called |
This will create a directory called "stendhal_server" 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 == |
== Stendhal server files == |
||
| Line 78: | Line 86: | ||
... 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. |
... 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. |
||
<small>If any of the latter jars are missing you can fetch them here: http://arianne.cvs.sourceforge.net/arianne/stendhal/libs/</small> |
|||
Done! |
Done! |
||
| Line 102: | Line 110: | ||
*password, write the password you used giving MySQL permissions (BAR) |
*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 |
*port, anything above 1024. 32160 is the default for stendhal, but it can be anything above 1024 |
||
*game, type |
*game, type "stendhal" (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 |
*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 ( |
*log and stats generation logs, use the default ("./") - 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 |
*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, |
Well, thats everything! When it's finished, you'll have a new file, "server.ini". Don't lose it, as it contains the information to get your server up & 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 == |
== Starting Server == |
||
| Line 125: | Line 133: | ||
= Extras = |
= Extras = |
||
This is the extras section! Here you have trouble shooting, and hints & tips |
This is the extras section! Here you have trouble shooting, and hints & tips |
||
== Troubleshooting == |
== Troubleshooting == |
||
In general please see [[StendhalServerTroubleShooting]]. |
In general please see [[StendhalServerTroubleShooting]]. |
||
| Line 131: | Line 139: | ||
=== Class not found exceptions === |
=== Class not found exceptions === |
||
For example: |
For example: |
||
<pre> |
|||
Exception in thread |
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger |
||
</pre> |
|||
Please open runserver.sh in a text editor. You'll see the classpath defined there, something like |
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 |
LOCALCLASSPATH=.:data/script/:data/conf/:stendhal-server-$STENDHAL_VERSION.jar:marauroa.jar:mysql-connector.jar:log4j.jar:commons-lang.jar |
||
| Line 148: | Line 156: | ||
ps xa | grep mysqld |
ps xa | grep mysqld |
||
If it shows that mysqld is running with the option |
If it shows that mysqld is running with the option "--skip-networking" then comment it out in the "my.cnf" file (It has been reported that the line to comment out is actually: SKIP="--skip-networking", found at: /etc/rc.d/rc.mysqld ). |
||
If you have already commented it out then perhaps you have previously started the server with: |
If you have already commented it out then perhaps you have previously started the server with: |
||
| Line 156: | Line 164: | ||
Stop the server and then restart with: |
Stop the server and then restart with: |
||
mysqld_safe & |
mysqld_safe & |
||
Check with: |
Check with: |
||
| Line 162: | Line 170: | ||
ps xa | grep mysqld |
ps xa | grep mysqld |
||
that no |
that no "--skip-networking" is present. |
||
Then run the stendhal server again. |
Then run the stendhal server again. |
||