Installing a TrackMania Nations server in Ubuntu

TrackMania is the typical kind of server you'd find on Gandi machines. Following these instructions, you should be able to set one up in only a few minutes.

Step 1: Installing an Apache server

Installing an Apache sever is a necessary step, in order to manage your server via a web interface (if the Apache server is already set up, you can of course skip this step).

apt-get install apache2

You should see the following result:

Type Y to confirm the installation.

Done! The Apache server is installed.

Step 2: Downloading the TrackMania dedicated server

You now need to download the necessary files to launch the server, by typing the following command:

wget http://slig.free.fr/TM/dedicated/TmDedicatedServer_2006-05-30.tgz

Once launched, wait for the download to reach 100%

Once finished, download the second file which is used to set up the web interface, if need be.

wget http://tmweb.123.fr/TMWeb.zip

Then, you need to unzip TmDedicatedServer_2006-05-30.tgz in its definitive emplacement.

tar xzf TmDedicatedServer_2006-05-30.tgz

And do the same for TMWeb.zip

mkdir /home/gandi/public_html/tmw
cp TMWeb.zip /home/gandi/public_html/tmw
unzip TMWeb.zip

Remember to install the tool enabling you to decompress zip files if you haven't already, using the apt-get install unzip command.

Step 3: Settings for dedicated.cgf

This file must be modified so as to customize your server. This is where you give it a name, a password, admin accesses, maximum number of players, port…

nano dedicated.cgf

nano is a classic text editor for Linux (like vi, only more intuitive). To install it, type apt-get install nano

We won't go into detail here, and recommend that you only change the password, name and number of players settings.

All that's left to do now is to go to the TmDedicatedServer folder.

./RunTrackmaniaNations.sh

Installing Trackmania: Give it a go!

Gandi.net provides flexible and dedicated webhosting resources that you can use to host as many domain names/websites as you wish. Our service is without any minimum contractual period and you can create a powerful server in just 10 minutes beginning at just $14 per month. For more on this, go to our hosting page at http://www.gandi.net/hosting/


Last modified: 11/21/2008 at 16:18 by Ryan A. (Gandi)