Useful Tips

Stepanoff home network


World of Warcraft - a game that you can easily run under Linux. For this you do not need to configure wine, set Playonlinux or buy Crossover. Enough to use PortBattleNET - which in turn has a convenient graphical installer and is tuned for maximum performance. With the ability to run ALL games from Blizzard onLinux

World of Warcraft Linux Is a multi-player online role-playing game developed and published by Blizzard Entertainment. Fourth game of the series Warcraft.

On January 23, 2007, Blizzard issued a press release stating that the number of game subscribers was more than 8 million people worldwide. In 2008, the Guinness Book of Records called World of warcraft the most popular MMORPG in the world with more than 10 million subscribers. In Q3 and Q4 2010, the number of subscribers reached a maximum of 12 million players. After that, the number of players began to decline and already in the second quarter of 2014 amounted to 6.8 million subscribers. At the end of 2014, after the next update, there was a jump in popularity (10 million players), but within a year the number of subscriptions was halved.

Creating a World of Warcraft game server based on Debian or Ubuntu

The site has not been updated for a long time, it’s time to already write something practical and necessary. In this article, I will describe the process of building and installing the World of Warcraft server based on the open-source Mangos distribution ( which is a free alternative to the product from Blizzard, but is not an exact copy of it, since Blizzard did not open the source code your server. The basis of the server is the mysql database and two small daemons for working with it. I used the Ubuntu 8.04 distribution kit to build.

Install everything necessary for the assembly and further operation of our game server

apt-get install build-essential gcc g ++ cpp automake git-core autoconf make patch libmysql ++ - dev libtool libcurl4-openssl-dev libssl-dev grep binutils subversion zlibc libc6 nano mysql-server unrar-free openssl

Then download the server source code and scriptdev2 which is necessary for its operation

git clone git: //
cd mangos
svn co src / bindings / ScriptDev2 /

Then apply the patches for the sources

git am src / bindings / ScriptDev2 / patches / MaNGOS- *

Then we proceed to build our server, it may take some time

autoreconf --install --force
mkdir objdir
cd objdir
../configure --prefix = / opt / mangos --sysconfdir = / opt / mangos / etc --enable-cli --enable-ra --datadir = / opt / mangos
make -j 2 (if you have a dual-core processor, or -j 4 if you have a quad-core processor)
make install

Now you can start setting up the game server, for this, go to its directory

Copy the configuration files from the ones created automatically when building the server

cp etc / mangosd.conf.dist etc / mangosd.conf
cp etc / realmd.conf.dist etc / realmd.conf

Download the database for our server

wget --no-check-certificate
wget --no-check-certificate
unrar-free e UDB *

Now you can create and populate mysql databases, for this you need your root password to mysql, you specified it during the installation of the mysql-server package, the example shows -pYOURPASSreplace YOURPASS to your password.
Let's create the necessary databases and tables in them

Now fill the server service databases

Then fill the database of the game world

If you have a desire to Russify your database, namely quests, some items, etc., you can install RUDB, which you can download from the link

And finally, apply database updates, for this there is a small python script, replace it YOURPASS to your mysql password

#! / usr / bin / env python
import glob, os
patches = glob.glob ('*. sql')
patches = sorted (patches)
for x in patches:
db = x.split ("_"). replace ('. sql', '')
os.system ("mysql -v -p "+ db +"

Put the script in the directory / opt / mangos / mangos / sql / updates /, then make the chmod + x scriptname executable (replace the scriptname with your script name) and execute it there to apply the database patches.

Then we assign a name to our game world, for this, execute the following commands to the mysql database, replacing them Your realm name in the name of your world and Your ip to your server address

mysql -pYOURPASS
mysql> use realmd,
mysql> UPDATE realmlist SET name = 'Your Realm Name' WHERE> mysql> UPDATE realmlist SET address = 'Your IP' WHERE> mysql> exit

With the database for now, let's move on to getting the files necessary for the server to work, on which the version of the client used to play on the server will depend. We will need a Windows version of the game with the patch we need, for example, take version 3.2.2 (build 10505). You will need to download the directory to the game client machine

/ mangos / contrib (it is located in the Mangos source directory) from your server and find the following files in it

make vmaps.bat

Place these files in the directory with the World of Warcraft client installed, then run the file ad.exe, it will do everything necessary (it will unpack the patch file and extract the necessary from there), the process may take a long time. When the extractor is finished, you will see three new directories, "maps", "dbc", and"vmaps". These directories you need to upload back to your server and put in a directory / opt / mangos / bin.

To start our WoW server we need screen, usually it is already installed, if not, install it, then create a simple start-up script to launch our server in the future.

#! / bin / bash
cd / opt / mangos / bin
echo "Starting mangos-realmd"
screen -A -m -d -S realmd ./mangos-realmd
echo "Done."
echo "Starting mangos-worldd"
screen -A -m -d -S worldd ./mangos-worldd
echo "done"
exit 0

Make the script executable with the command chmod + x scriptname.

Now try to start our server, for a start without screen, open two consoles, in the first run the commands

Then in the second console run the commands

If everything went fine, exit screen and run the script we created earlier to start the server.

World of Warcraft installation

Let's analyze the installation using the example of World of WarCraft: Wrath of the Lich King 3.3.5a version on Ubuntu version 14.04.3 LTE

So, for starters, we will need to download the client, I preferred to download it from the torrent tracker

Next, we need to install the Wine application to launch the installer, as well as the client itself. You can read more about installing Wine. HERE

Then we need to create a clean Wine prefix specifically for Wow, for this in the home directory(/ home) create a This can be done both with pens and from the terminal:

We go into the terminal and execute the following command:

In the window that appears, click OK

Go to the folder with the downloaded torrent, for ease of installation, I will rename the downloaded folder and give it a simple name "wow". By default, our client downloaded to the “/ Downloads” folder.

Run the file Setup.exe which is located in this folder, right-click, select "Open in program"> Wine - Windows program loader. If you do the same as me, then you can do this from the console (ctrl + alt + T): (in other cases, enter your path)

Our launcher started:

Click “Next>.” Here we need to select the .wow directory that we created specifically for the game. Click “Browse”. We go to the root folder (/), then the home folder> username> .wow / drive_c /

Click "OK" and "Next>", "Next>" "Next>", "Install". We don’t touch any checkmarks. The installation process has gone.

Next, you will be prompted to install DirectX and Microsoft Visual C ++. We confirm and install everything.

Installation is complete, for convenience, the installer even brought us a shortcut to the desktop =)

Where to play

Now let's talk about WHERE? play. I'm not very sure that a large number of players play on the official servers 3.3.5 of the client, so for myself I chose the FREE Wowcircle project server, and ratings x1 (4000+ people online). In order to start playing on this server you need to register

And change the contents of the file at: set realmlist

You can find the file in the game folder in the directory / Data / ruRU

If you did everything as suggested in the article, you can open and edit the file by running the command from the console:

It remains only to launch Wow, enter the username and password that we used to register, and on the road through the expanses of Draenor. Lok tar Ogar!

Welcome to the world of World of Warcraft! Have a nice game.