Everything WarMUX Ubuntu
This guide is only for Ubuntu Users and Compatible Distros.
Working as of revision 10371
WarMUX requires a few installations before we can compile the source code.
Before we get too deep, we are going to do some updates and upgrades to the repository information.
Update repository information:
sudo apt-get update; sudo apt-get upgrade
Now lets begin the fun process and somewhat long, but these steps should be done once and never again (unless you reinstall the os).
Let's begin by installing needed tools to compile and run the server.
*If you are on a Dedicated Server or VPS, Connect to SSH with a root account.
*If you are using Ubuntu Desktop Click on Applications > Accessories > Terminal:
Copy and Paste:
sudo apt-get install nano build-essential autoconf automake g++ libxml2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev libfribidi-dev autotools-dev subversion libsdl1.2-dev libcurl3-dev
Quotation:
Note: If you have problems installing libcurl3-dev with all the other packages, feel free to remove it from the list and install it once everything else has been installed properly. (sudo apt-get install libcurl3-dev)
Press Enter and when it is done calculating the size of the installation, type "y" (without the quotes) and press enter once again.
Once it is done you will see something similar to the image below.
We now have to navigate to the directory where we want the source to be downloaded. In this case, we are going to use /home/warmux.
Go back to the Terminal and type:
sudo mkdir /home/warmux && cd /home/warmux
Now you should be in the right (/home) directory.
Type the following command to obtain the source code from the WarMUX Repository:
svn co http://svn.gna.org/svn/warmux/trunk trunk
Obtaining the source code will take a couple of minutes, relax and wait until it's done.
Quotation:
Side Note: The command above is downloading the files from the WarMUX Trunk Repository to a local folder on your computer/server. In this case we are using /home/warmux, but you may choose any folder you want by simply changing warmux to something else.
Once it's done, you will see something like the image below:
Lets continue, shall we?

Type the following command into the terminal/ssh:
cd trunk
Quotation:
If you want to see what's inside the folder you may type "ls" without the quotes.
Let's get started on the compilation! Woohoo!
We will begin by auto generating, then we will configure, and finally make the binaries.
First step is to type:
sudo ./autogen.sh
When it is done, it will ask you to run configure.
But hold one a bit there!
You have a 2 choices to play with that I will explain (But there are a lot more).
./configure --enable-debug (This lets you debug the application)
./configure --enable-server (This lets you host your own servers)
In this case we will just go ahead and configure without debugging.
Let's continue by typing:
sudo ./configure --enable-servers
A list of files will be checked, created and once it is completed, you will see something like the image below:
The next step is to make and install the source, you can use the binary without making an install, but extra steps are required.
In the terminal/ssh type:
sudo make -j#
Quotation:
Replace # with the number of cores that you have, if unsure simply remove -j#
The make of the source can take a while, when it is done you will see:
If you want to run WarMUX the easy way, simply type:
sudo make install
If you want to run WarMUX from the source code:
Go back to the Terminal/SSH and type:
nano ~/.bashrc
Scroll down all the way to the bottom and add:
export WARMUX_DATADIR=~/warmux/trunk/data/
export WARMUX_LOCALEDIR=~/warmux/trunk/po/
export WARMUX_FONT_PATH=~/warmux/trunk/data/font/DejaVuSans.ttf
Press CTRL + X and then press Y and Enter to save.
To open the game type:
sudo make run
Taaadaa!
This page has been seen 7424 times
Tools
Contribute