First of all, you should get some more maps (tracks) e.g. from or similar and test them on your server. That is why the creation of the tracklist is being automated by file listing, “upgrading” the map list remains more easy with this guide then.

# adduser tm2
# su - tm2

$ mkdir TM2
$ cd TM2
$ wget
$ unzip

$ vim UserData/Config/dedicated_cfg.txt

* change SuperAdmin, Admin, User password (not the name) in authorization_levels
* go to your player account and create a new dedicated server login, and add those credentials to the masterserver_account section (login and password).
* change the name of the server in server_options
* change the connection up and download rate in system_config section
* don’t change the ports, but keep them in mind for later firewall configuration

We will use our own tracklist for matchsettings (generated by a small perl script). Change dnscloud.txt to anything you want.

$ vim

./ManiaPlanetServer /game_settings=MatchSettings/dnscloud.txt /dedicated_cfg=dedicated_cfg.txt /title=TMCanyon

Now let’s create the sources for the automated generation of dnscloud.txt – to see an example how the config settings look like, check UserData/Maps/MatchSettings/Beta1.txt or similar. The folder is named like the tracklist txt we will be creating.

$ mkdir UserData/Maps/dnscloud

Now copy that perl script to somewhere applicable and adapt $maindir if you changed dnscloud from above.

$ vim UserData/Maps/MatchSettings/
#!/usr/bin/perl -w
my $maindir="dnscloud";
chdir "/home/tm2/TM2/UserData/Maps/$maindir/";
my @files=<*>;
my $file;

print "<?xml version="1.0" encoding="utf-8" ?>
                <game_mode>2</game_mode> <!-- 2 = TimeAttack -->




foreach $file (@files) {
        print "

print "

Now it’s time to place your tracks into UserData/maps/dnscloud – after that run the script to generate a new config. Make sure that the filenames don’t contain special chars or white spaces. Windows doesn’t mind, but this is targetted against Linux.

$ cd UserData/Maps/MatchSettings
perl > dnscloud.txt

Now we need to make sure that all needed ports are opened in iptables – 2350, 3450 and 5000 for xmlrpc, all tcp and udp.

-A INPUT -p tcp -m tcp --dport 2350 -j ACCEPT
-A INPUT -p udp -m udp --dport 2350 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3450 -j ACCEPT
-A INPUT -p udp -m udp --dport 3450 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p udp -m udp --dport 5000 -j ACCEPT

Change to tm2 user again, cd into ~/TM2 and run the server.

$ cd ~/TM2
$ ./

If you are adding new maps, just re-run the steps on map list generation and restart the server (ps aux | grep ./ManiaPlanetServer and kill the pid, re-run the and watch out for future init scripts).

%d bloggers like this: