-
Notifications
You must be signed in to change notification settings - Fork 0
Ubuntuinstall
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.
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
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
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
cd ~/mangos
git clone git://github.com/mangos/database.git
To update source code and database
cd ~/mangos/server
git pull
cd src/bindings/ScriptDev2
git pull
cd ~/mangos/database
git pull
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