No categories assigned

Installing on Linux:Ubuntu

(Redirected from Installing on Linux)

This page details how to Install the Emulator on Linux (Ubuntu).


In this tutorial we are going to download the latest version of the source code from the repository, compile it and then start a server.

Ubuntu

First you must install MySQL as well as the required dependencies needed from the repositories.

sudo apt-get install mysql-server build-essential subversion

Download the source

To compile and run the server you must install download the source code. For this example we are going to run our server in a folder called eq2server and download the code into a folder called eq2emulator.

mkdir eq2server
cd eq2server
svn co https://eq2emulator.svn.sourceforge.net/svnroot/eq2emulator eq2emulator

Compile it

Now we have downloaded the source we need to compile it. If you are compiling the source on a 64 bit OS then you will need to change the makefile located in the Source/World folder.

cd eq2emulator/Source/World/
make

This should compile the source code and you will be left with a program called World.

Setting it up

Now you have built the program you need to put all the pieces together. Copy the following files into the eq2server folder.

/eq2emulator/Source/World/World
/eq2emulator/Config Files/EQ2_Structs.xml
/eq2emulator/Config Files/LoginServer.ini
/eq2emulator/Config Files/world_db.ini
/eq2emulator/Config Files/World Structs/WorldStructs.xml
/eq2emulator/Config Files/World Structs/charactersheet_struct.txt
/eq2emulator/Config Files/Common Structs/CommonStructs.xml

Once you have done that you will now have to edit a few files. First open LoginServer.ini

worldname=WORLD_NAME_HERE
worldaddress=EXTERNAL_IP_HERE
#internalworldaddress=INTERNAL_IP_HERE (If used, otherwise blank)
  • worldname should be the name you registered your server as on eq2emulator.net.
  • worldaddress should be your IP address as seen by other people. If you do not know your IP address you can get it from whatismyip.com
  • internalworldaddress is your internal IP address in cases where you are behind a router you may have a different IP address as seen from the outside.

After that you must then edit world_db.ini which holds your database information.

host=ip address
user=username
password=password
database=eq2
  • host refers to your MySQL IP address. If your MySQL database is on the same computer that is running that server then put "localhost" (without quotes)
  • user is your MySQL username that you want the login server to connect to your database with
  • password is your MySQL password
  • database is the name of the database on your MySQL server. You must create this database before you start the server.