StendhalLocalhostServerOnLinux: Difference between revisions
Content deleted Content added
imported>Ufizavipupu No edit summary |
imported>Blacklads Undo revision 11670 by Ufizavipupu (Talk) |
||
Line 1:
This guide applies to:
*Marauroa 2.1 and above
*Stendhal 0.65.5 and above
<br>
= 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
At the prompt that appears, type
create database marauroa;
Line 66 ⟶ 58:
cd
mkdir stendhal_server
This will create a directory called
== 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.
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
*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 (
*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,
== Starting Server ==
Line 133 ⟶ 125:
= Extras =
This is the extras section! Here you have trouble shooting, and hints &
== Troubleshooting ==
In general please see [[StendhalServerTroubleShooting]].
Line 139 ⟶ 131:
=== Class not found exceptions ===
For example:
Exception in thread
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
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 &
Check with:
Line 170 ⟶ 162:
ps xa | grep mysqld
that no
Then run the stendhal server again.
| |||