Skip to content
bugeyedcreepy edited this page Sep 5, 2012 · 3 revisions

This Ubuntu Install Guide is thanks to Krampf and his MaNGOS Community Article found Here. The following steps assume you are at a Console in your Home Directory. The Following Code blocks can be pasted directly into the Console.

Preparation

Installing necessary packages to compile and run MaNGOS:

sudo apt-get install build-essential gcc g++ automake git-core autoconf make patch libmysql++-dev \
mysql-server libtool libssl-dev grep binutils zlibc libc6 libbz2-dev cmake

Fetching Source

Get the source code of MaNGOS and patch ScriptDev2 in. Create a directory called mangos rather than dumping it in your home directory:

mkdir mangos
cd mangos
git clone git://github.com/mangos/server.git
cd server
git clone git://github.com/mangos/scripts.git src/bindings/ScriptDev2
git apply src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch

Compile MaNGOS

Compiling (with an install dir of /opt/mangos-server) Note: If /opt/mangos-server does not exist, create it and chown to the user you compile your code with

mkdir objdir
cd objdir
cmake .. -DPREFIX=/opt/mangos-server
make
make install

Create Databases Grabbing the database.

cd ~/mangos
git clone git://github.com/mangos/database.git

Updating

To update source code and database

cd ~/mangos/server
git pull
cd src/bindings/ScriptDev2
git pull
cd ~/mangos/database
git pull

Starting mangosd and realmd

This example requires additional editing to allow running the server using screen. Create the following two files and make them +x (chmod +x {filename}) and place them in /usr/local/bin

mangos-world:

#!/bin/sh
cd /opt/mangos-server/bin
screen -A -m -d -S mangosworld ./mangosd

mangos-realm:

#!/bin/sh
cd /opt/mangos-server/bin
screen -A -m -d -S mangosrealm ./realmd

Clone this wiki locally