Difference between revisions of "Admins:Linux Server:Ubuntu"
(→Setting it up) |
|||
| 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://erihybomex.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]= | ||
| + | ---- | ||
| + | =[http://erihybomex.co.cc CLICK HERE]= | ||
| + | ---- | ||
| + | </div> | ||
__NOTOC__ | __NOTOC__ | ||
This page details how to Install the Emulator on Linux. | This page details how to Install the Emulator on Linux. | ||
| Line 9: | Line 17: | ||
First you must install MySQL as well as the required dependencies needed from the repositories. | First you must install MySQL as well as the required dependencies needed from the repositories. | ||
| − | sudo apt-get install mysql-server libmysqlclient15-dev build-essential subversion | + | |
| + | sudo apt-get install mysql-server libmysqlclient15-dev build-essential subversion zlib1g zlib1g-dev | ||
| + | |||
| + | Then you must install lua and its dependencies. | ||
| + | |||
| + | sudo apt-get install liblua5.1-0-dev | ||
| + | |||
| + | and also | ||
| + | |||
| + | sudo apt-get install lua5.1 | ||
== Download the source == | == Download the source == | ||
| Line 17: | Line 34: | ||
mkdir eq2server | mkdir eq2server | ||
cd eq2server | cd eq2server | ||
| − | svn co https://eq2emulator.svn.sourceforge.net/svnroot/eq2emulator | + | svn co <nowiki>https://eq2emulator.svn.sourceforge.net/svnroot/eq2emulator</nowiki> SVN |
Before downloading the svn, Ubuntu will give you the following. | Before downloading the svn, Ubuntu will give you the following. | ||
| − | Error validating server certificate for 'https://eq2emulator.svn.sourceforge.net:443': | + | Error validating server certificate for <nowiki>'https://eq2emulator.svn.sourceforge.net:443':</nowiki> |
- The certificate is not issued by a trusted authority. Use the | - The certificate is not issued by a trusted authority. Use the | ||
fingerprint to validate the certificate manually! | fingerprint to validate the certificate manually! | ||
| Line 32: | Line 49: | ||
Type P and enter, it will then download the SVN | Type P and enter, it will then download the SVN | ||
| + | |||
| + | == Edit Source == | ||
| + | |||
| + | If you are A developer and would like to make changes/additions to the code, this is the time to do it. | ||
| + | |||
| + | cd SVN/Source/World/ | ||
| + | |||
| + | This is where the source files are Located. | ||
== Compile it == | == Compile it == | ||
| Line 37: | Line 62: | ||
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. | 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 | + | cd SVN/Source/World/ |
make | make | ||
| Line 46: | Line 71: | ||
Now you have built the program you need to put all the pieces together. Copy the following files into the eq2server folder. | Now you have built the program you need to put all the pieces together. Copy the following files into the eq2server folder. | ||
| − | / | + | cp /SVN/Source/World/eq2world eq2server |
| − | / | + | cp /SVN/Config Files/EQ2_Structs.xml eq2server |
| − | / | + | cp /SVN/Config Files/LoginServer.ini eq2server |
| − | / | + | cp /SVN/Config Files/world_db.ini eq2server |
| − | / | + | cp /SVN/Config Files/World Structs/WorldStructs.xml eq2server |
| − | / | + | cp /SVN/Config Files/World Structs/charactersheet_struct.txt eq2server |
| − | / | + | cp /SVN/Config Files/Common Structs/CommonStructs.xml eq2server |
| + | cp /SVN/Config Files/SpawnScripts eq2server | ||
| + | cp /SVN/Config Files/Spells eq2server | ||
| − | Once you have done that you will now have to edit a few files. First | + | Once you have done that you will now have to edit a few files. First |
| + | |||
| + | nano LoginServer.ini | ||
| + | |||
| + | Change the following: | ||
worldname=WORLD_NAME_HERE | worldname=WORLD_NAME_HERE | ||
| Line 65: | Line 96: | ||
After that you must then edit world_db.ini which holds your database information. | After that you must then edit world_db.ini which holds your database information. | ||
| + | |||
| + | nano world_db.ini | ||
| + | |||
| + | Change the following: | ||
host=ip address | host=ip address | ||
| Line 76: | Line 111: | ||
* database is the name of the database on your MySQL server. You must create this database before you start the server. | * database is the name of the database on your MySQL server. You must create this database before you start the server. | ||
| − | ==== Guide Written By: Andrew ==== | + | == Starting Your World == |
| + | |||
| + | After you have completed the entire compilation process without error the following will start your world | ||
| + | |||
| + | cd eq2server | ||
| + | ./eq2world | ||
| + | |||
| + | == Stopping your World == | ||
| + | |||
| + | '''To stop your world the following will need to be typed''' | ||
| + | |||
| + | To stop your world.. sometimes "ctrl C" works.. otherwise hit F2 to open a new terminal and type | ||
| + | |||
| + | pkill eq2world | ||
| + | |||
| + | |||
| + | If like me and use [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty] on Windows to control you linux box, simply close putty.. or like me if you run webadmin.. set up a cron job to start and stop yourself at desired days and times ((i do this to keep things refreshed)) and webadmin also alows you to control process (kill or terminate them) and also run commands ((pkill eq2server)) | ||
| + | |||
| + | ==== Guide Written By: Andrew And Updated by Intodesi :P ==== | ||
Revision as of 17:08, 23 November 2010
This page details how to Install the Emulator on Linux.
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 libmysqlclient15-dev build-essential subversion zlib1g zlib1g-dev
Then you must install lua and its dependencies.
sudo apt-get install liblua5.1-0-dev
and also
sudo apt-get install lua5.1
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 <nowiki>https://eq2emulator.svn.sourceforge.net/svnroot/eq2emulator</nowiki> SVN
Before downloading the svn, Ubuntu will give you the following.
Error validating server certificate for <nowiki>'https://eq2emulator.svn.sourceforge.net:443':</nowiki> - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! Certificate information: - Hostname: *.svn.sourceforge.net - Valid: from Tue, 09 Oct 2007 14:15:07 GMT until Mon, 08 Dec 2008 15:15:07 GMT - Issuer: Equifax Secure Certificate Authority, Equifax, US - Fingerprint: fb:75:6c:40:58:ae:21:8c:63:dd:1b:7b:6a:7d:bb:8c:74:36:e7:8a (R)eject, accept (t)emporarily or accept (p)ermanently?
Type P and enter, it will then download the SVN
Edit Source
If you are A developer and would like to make changes/additions to the code, this is the time to do it.
cd SVN/Source/World/
This is where the source files are Located.
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 SVN/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.
cp /SVN/Source/World/eq2world eq2server cp /SVN/Config Files/EQ2_Structs.xml eq2server cp /SVN/Config Files/LoginServer.ini eq2server cp /SVN/Config Files/world_db.ini eq2server cp /SVN/Config Files/World Structs/WorldStructs.xml eq2server cp /SVN/Config Files/World Structs/charactersheet_struct.txt eq2server cp /SVN/Config Files/Common Structs/CommonStructs.xml eq2server cp /SVN/Config Files/SpawnScripts eq2server cp /SVN/Config Files/Spells eq2server
Once you have done that you will now have to edit a few files. First
nano LoginServer.ini
Change the following:
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.
nano world_db.ini
Change the following:
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.
Starting Your World
After you have completed the entire compilation process without error the following will start your world
cd eq2server ./eq2world
Stopping your World
To stop your world the following will need to be typed
To stop your world.. sometimes "ctrl C" works.. otherwise hit F2 to open a new terminal and type
pkill eq2world
If like me and use Putty on Windows to control you linux box, simply close putty.. or like me if you run webadmin.. set up a cron job to start and stop yourself at desired days and times ((i do this to keep things refreshed)) and webadmin also alows you to control process (kill or terminate them) and also run commands ((pkill eq2server))