http://www.urbanterror.info/support/174-linux-server-install/
 Login | Register 
Advertisement
printer


Server Admin

Linux Server Install

This part of the guide assumes the following. You have "SHELL" access to your dedicated Linux system. It also assumes that you have a basic knowledge of the Linux OS.

1 If you do NOT have access to the user root, please skip to Step 4.

2 Login as root and perform the following command:

useradd -m urt

3 Now switch your current user over to urt by using the command:

su - urt
notice: If you are using a different user than urt, please replace all references of the user urt for your own username.
4 Make sure you are in your home directory by typing pwd, if in doubt, use the command:

cd ~

5 Now perform the following command:

wget <MIRROR URL> (please generate following instructions here
e.g. wget urbanterror.info/urbanterror/UrbanTerror_43.tar.gz

Download the zip file NOT the .exe installer.
notice: You need the program wget for this, if you don't have it, please visit their website on how to install it.
You might need to chmod u+x the updater before running it, sometimes files do not come with execute rights after unzip.

6 Issue the command:

cd ~
tar -xvf UrbanTerror43_ded.tar.gz
cd UrbanTerror43/
./UrTUpdater_Ded.i386


The updater will now download all the required files to the location /home/urt/UrbanTerror43/

7 To make the server start and to clean up case sensitive unix paths issue these commands:

mv UrbanTerror43/ urbanterror43/
cd urbanterror43/
chown -R urt:urt urbanterror43/
chmod a+x urbanterror43/Quake3-UrT-Ded.i386


8 To move into the q3ut4 directory issue the command:

cd urbanterror43/q3ut4/

9 Use your favorite linux file editor to edit the server.cfg file as explained in this manual.

10 Write a shell script to start your server.

Issue the command cd ~/urbanterror43/ to make sure you are in the root urbanterror43 directory. Using your text editor, make a file called start.sh. In the file you wish to have the following:

#!/bin/bash
while true
do
/home/urt/urbanterror43/Quake3-UrT-Ded.i386 +set fs_game q3ut4 +set fs_basepath /home/urt/UrbanTerror43/ +set fs_homepath /home/urt/UrbanTerror43/ +set dedicated 2 +set net_port 27960 +set com_hunkmegs 128 +exec server.cfg
echo "server crashed on `date`" > last_crash.txt
done


This script will automatically restart your game server should it crash. Useful also because a /RCON quit command will reset you server the old fashioned way.

11 Make the start script executable by issuing the command:

chmod a+x start.sh

12 You can now start you server by issuing the command:

sh start.sh

13 If you wish to run this as a screen, which you probably do, make sure you have the application screen (if not check their website for details on how to install it), issue the command:

screen -m -d -S UrT-Server sh start.sh

This will then run the server in the screen, and you will not shutdown your server when you terminate your shell.

You are finished, good job! Now go play.
level_none By FrozenSand  -  Friday, 10 June 2011  -  viewed by 3282 members and 54604 visitors

Advertisement

Copyright © 1999-2017 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942