Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
TRENDING TODAY
Home > News > Linux > Other Tips, Tricks and Tutorials

December 26th, 2006, 10:59 GMT · By Mihai Marinof

Wolfenstein: Enemy Territory Server Setup

SHARE:

Adjust text size:

Wolfenstein: Enemy Territory is a World War ll style FPS which is very popular due to the free clients available for Linux, Windows and Mac. The game itself isn't so bad either. This article will explain how to quickly set-up an ET server but also guide you towards an advanced customized server. But before you start anything, you should take a look at the game's requirements. To run a dedicated server, you should have at least:
1.3 GHz processor;
128 MB RAM (assuming no other apps run in the background);
T1 Internet connection (1.5 Mbps);
UDP ports from 27950 to 27965 opened/forwarded.


Getting started

For security reasons, the ET server shouldn't be run as root. To create a new user, run the command:

CODE
adduser etserver
passwd etserver

Next, login as the newly created user and download Enemy Territory installation pack:

CODE
wget ftp://ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run

Install Enemy Territory:

CODE
chmod 775 et-linux-2.60.x86.run
mkdir /home/etserver/bin
./et-linux-2.60.x86.run

NOTE: Choose /home/etserver/enemy-territory as the installation path and /home/etserver/bin for the symbolic links path.


Provide
a Config file for the ET server


Get the config file:

CODE
cd /home/etserver/enemy-territory/etmain
wget http://linux.softpedia.com/et.server.cfg

Open it with your favorite text editor (nano, mceditor, vi etc) and change the general values such as admin mail and web address, server hostname and so on but don't touch the values you don't know.


Start the server

The following command starts the server:
NOTE: You need screen installed on your system. Screen is a program that keeps the ET server running in the background without requiring you to stay logged-in.

CODE
screen -d -m -S etserver /home/etserver/enemy-territory/etded +set vm_game 0 +set sv_pure 1 +set dedicated 2 +net_ip 81.23.245.267 +net_port 27960 +set sv_punkbuster 1 +exec et.server.cfg

Command options details:
+set vm_game 0 - The server starts without a virtual environment.
+set sv_pure 1 - Will ensure that people's pk3s are the same as your servers.
+set dedicated 2 - The server announces itself to the master servers.
+net_port 27960 - The port on which the game server runs.
+set sv_punkbuster 1 - Activates Anti-Cheat program.
+exec et.server.cfg - Executes the config file created earlier.


ETPro

ETPro is a mod for Wolfenstein: Enemy Territory specifically designed for competition play. It offers administration and competition features such as saving XP/ranking/weaponstats etc, private messaging, server configuring for specific skill levels and a lot more.

To install ETPro:

Download the latest version from SOFTPEDIA and save it into your home folder.

Unzip it to the enemy territory directory:

CODE
cd /home/etserver/enemy-territory
unzip /home/etserver/etpro-3_2_6.zip

Start the server with:

CODE
screen -d -m -S etserver /home/etserver/enemy-territory/etded +set vm_game 0 +set sv_pure 1 +set dedicated 2 +net_ip 81.23.245.267 +set fs_game etpro +net_port 27960 +set sv_punkbuster 1 +exec et.server.cfg

Hosting Custom Maps & Mods

If youre running custom campaigns, custom maps or modifications on your server, then the players connecting to your server will need to have those files as well. Unfortunately, the maximum speed a player can download files from a server is capped at around 25 kB/s, which should be enough for small files but it's way too slow for downloading large custom maps.

This is where the web download feature comes in. If you have a web server that can host files for download, you can configure your game server to redirect file request to the web server, this way the clients will download maps and such at the web server's maximum download rate (which is probably 10 times faster than 25 kB/s).

To use this feature, you have to:

Upload the game server files to a new directory (name it etfiles) on the web server but keep the same directory tree. For instance, if a player will request the file pack1.pk3, it should be available at the address http://www.your-webserver.com/etfiles/etmain/pack1.pk3.

Open the et.server.cfg file and edit these values:
NOTE: The wwwBaseURL address does NOT end with a "/".

CODE
set sv_wwwDownload "1"
set sv_wwwBaseURL "http://www.your-webserver.com/etfiles"
set sv_wwwCheckPath ""
set sv_wwwDLDisconnected "0"
set sv_wwwFallbackURL ""

Enjoy!


127,556 hits · 22 comments
Link to this article · Print article · Send to friend

MUST-READ RELATED ARTICLES:


How to Bind a Range of IPs

Screencast Guide: Capure Your Linux Desktop on Video!

How to Setup an Encrypted Filesystem

FreeNX Installation Guide for Fedora 6

Grant Root Privileges to Regular Users

READER COMMENTS:


Comment #1 by: Bimbo on 24 Sep 2008, 19:22 UTC reply to this comment

wth do I need a program for this or what and where do I need to write the commands and where can I get the programs and can anyone do this or just advanced users ... please help

Comment #1.1 by: Mathias on 08 May 2009, 12:08 GMT

You have to use a Linux operating system. There you have to type those commands in the terminal.


Comment #2 by: Rob on 16 Mar 2009, 18:15 UTC reply to this comment

nice, keep this online!


Comment #3 by: medo on 01 Jun 2009, 07:23 UTC reply to this comment

thx bro i do all this .. but i want to know how can i get screen program ...........You need screen installed on your system. Screen is a program that keeps the ET server running in the background without requiring you to stay logged-in............. where i can download it ... and i want to setup jaymod too ... can u help


Comment #4 by: medo on 02 Jun 2009, 09:48 UTC reply to this comment

bro i get this
3763 files in pk3 files
execing default.cfg
couldn't exec language.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
Bypassing CD checks
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
...loading libGL.so.1: Initializing OpenGL display
...setting mode 4: 800 600
Error couldn't open the X display
...WARNING: could not set the given mode (4)
Initializing OpenGL display
...setting mode 3: 640 480
Error couldn't open the X display
...WARNING: could not set the given mode (3)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem


Comment #5 by: Pure on 09 Jun 2009, 18:37 UTC reply to this comment

@medo A quick google search for 'opengl error' would have given you your answer. Anyway you have to update/install your videocard drivers.


Comment #6 by: Zangetsu on 01 Jul 2009, 15:00 UTC reply to this comment

good tutorial
but some servers have very high download rate even then you're in the game how can i make my server have that without having a web server ?


Comment #7 by: Mathieu_7-7 on 11 Jul 2009, 12:41 UTC reply to this comment

Thanks for this howto, I'll going to do this soon ;o)

Comment #7.1 by: Nemora on 05 Nov 2009, 12:37 GMT

Yeap, good tutorial.
I have a question. Ive got problem with downloading stuff. I have pk3 file which i want other users to download but they cant...I put it into server nq folder and when i go to server, i do
!nextmap to restart server. But the et doesnt drop me into download mod:/ It is as if i hadnt put any pk3 into my server nq folder.
Anyway, i put the same pk3 file into my computer nq folder and when i start the game, out of nowwhere , it is working.:/ Do you have any idea what i can be?


Comment #8 by: wvdestroyer on 08 Jan 2010, 15:31 UTC reply to this comment

I just bought 6 slots from ClanPanel for enemy territory.And I cant figure out how to save my xp.I search all over the internet.One more question Where I punch this command into.Is it into my srever?


Comment #9 by: jay0505 on 04 Mar 2010, 16:09 UTC reply to this comment

i have a problem i am unable to get the above mentioned et.server.cfg file is there another place that i can get the same exact one???

please help


Comment #10 by: heaven on 09 Mar 2010, 17:39 UTC reply to this comment

Hey guys this site looks pretty useful i need some pointers im experienced with running servers. but im makinga special mod can you tell me how to disable weapons Greande,satchel, etc etc :) thanks


Comment #11 by: havenforme on 20 Mar 2010, 11:31 UTC reply to this comment

hey guys i have a aussie jaymod server i created and i am trying to get my download rate up to atleast around 200 kb/sec any ideas on how to do this?


Comment #12 by: hippo on 24 Mar 2010, 15:47 UTC reply to this comment

Where i can download that program called "screen" ?


Comment #13 by: grady on 15 Apr 2010, 15:51 UTC reply to this comment

how i add the spree record ??


Comment #14 by: chris on 11 May 2010, 22:21 UTC reply to this comment

where do we type in the commands for double jump etc? what is server .cfg? and where can i find it? wish people would explain things properly see.


Comment #15 by: John Woodcock on 09 Jun 2010, 11:45 UTC reply to this comment

WVDestroyer said:

"I just bought 6 slots from ClanPanel for enemy territory.And I cant figure out how to save my xp.I search all over the internet.One more question Where I punch this command into.Is it into my srever" *quoting*.

*Answer*: Well, sorry for all this, I never actually made a server before, But I know a lot of information about one. Go into your Server.cfg / ETPub.cfg / JayMod.cfg or w.e you have, and find "g_xpsave" It should have a "1" next to it, not a "0". Right under it or in front of it, should say "g_xpmax" or something along the lines of that. That means the maximum xp you want until their XP get's reset. So, probably around "25000" (25 thousand) thousand xp. The last, I forget what its called, I think thats how many days / hours you want even if they dont get 25 thousand xp until it gets reset. I'm not sure though. *Answer = Finished*


chris said:

**Question**: where do we type in the commands for double jump etc? what is server .cfg? and where can i find it? wish people would explain things properly see."

**Answer**: Well, Double jump can be found in your JayMod.cfg / ETPub.cfg. I don't belive the command would be in ETMain, as etmain doesn't ahve the command that you can optimize from double jump to single. So, if you have / want a JayMod server, go into your JayMod.cfg and then find.. damnit, I forgot the command. :@. Second, server.cfg is where the server executes that .cfg into the server, so the custom commands you put into it, will now show up (hopefully) into your server. A cfg is a "ConFiGuration" file. Note: I highlighted where the "CFG" is in it. You can make a cfg for yourself, thats not for server too! I have 3 :) One for each of my favorite 3 classes, the other 2 (ammo dude, and the heavy weapons dude) I don't like to use. You can find server.cfg's all over Google.com. But their will probably be one at the creators of ET's website. I believe it is: http://activision.com :)
**Answer Given**

Enjoy, hope that sorta helped :)

Comment #15.1 by: Herp on 20 Aug 2010, 05:22 GMT

No you didn't helped me at all. Can you say how I can get XP forever and how to enable double jump? On JayMod


Comment #16 by: k!Ng0R on 31 Aug 2010, 03:47 UTC reply to this comment

Well,
to create the user with home directory i have to use

$> useradd -m etserver

and... why Log in as newly created user? if i do this i get an error i have to switch as root O.o

$> cd /home/etserver

and then use wget command otherwise my server tells me i don't have the flags

Plz, someone, write a small addition to that in the tutorial :)

thx...


Comment #17 by: eishv on 22 Sep 2010, 18:44 UTC reply to this comment

Great howto. however the et.server.cfg doesnt seem to exist anymore at softpedia. pooh! :(


Comment #18 by: sAuri on 20 Dec 2010, 16:15 UTC reply to this comment

Maybe tell us where to find the ip of the server etc???

Comment #18.1 by: sonic656 on 26 Jul 2011, 11:47 GMT

I tried to install it.......i ran .run file........and just that appeared:

root@etserver:~# ./et-linux-2.60.x86.run
Verifying archive integrity... All good.
Uncompressing Enemy Territory 2.60 Full Install...
./setup.sh: line 191: /root/.setup872: No such file or directory



please how to fix it???

Copyright © 2001-2013 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM