Setting up a Day of Defeat server under Linux

Setting up a Day of Defeat server is very simple. If you know how to install a Counter-Strike server, then you are also
able to install a Day of Defeat server.

I assume you already downloaded all the necessary files I mentioned in the client part of this site, so I'll start right away.

The following instructions are the same as I installed my Day of Defeat servers. You can choose your own path/install dir.
They do NOT have to be the same as the ones listed below.

When you SHH to your Linux machine your prompt (all commands should take place from the prompt) probably will look something like this:


From this prompt on we will do the following :

1.  cd /usr/local/games
2.  mkdir halflife
3.  cd halflife
4.  chmod +x hlds_l_3110_full.bin
5.  ./hlds_l_3110_full.bin

Bla bla bla yada yada yada ...

agreement, either oral or written, and any other communications between
Valve and you regarding the subject matter hereof.

Enter 'yes' to accept this agreement, 'no' to decline: yes

extracting hlds_l_3110_full.tar.gz...done

When you have accepted the Valve agreement, the hlds_l_3110_full.bin file will change to hlds_l_3110_full.tar.gz

We'll continue doing the following :

6.  tar zxvf hlds_l_3110_full.tar.gz
7.  cd hlds_l

When the file is extracted completely, you have a fully functional Linux Half-Life dedicated server installation ready.

We'll move on to the Day of Defeat installation next.

Copy or download the Day of Defeat Full Linux Server file to the hlds_l directory (where the HL server is installed after the extraction).

8.  tar zxvf dod_v31_full.tar.gz

And voila! You've now installed the latest Half-Life dedicated server and installed the latest Day of Defeat release. You can finetune 
your motd.txt (welcome text when entering the server) and your server.cfg in your /hlds_l/dod/ directory, using vi or pico.

Now you can follow the same startup instructions as are mentioned in the Counter-Strike part of this HOW-TO.

One quick example of how your startup line and screen session would look like:

9.  cd /usr/local/games/halflife/hlds_l
10. screen
11. export LD_LIBRARY_PATH=/halflife/hlds_l:$LD_LIBRARY_PATH
12. ./hlds_run -game dod +exec server.cfg +ip +port 27050 +maxplayers 16 +map dod_omaha
13. CTRL a + d (detached)

And of course you can also run multiple servers the same way as is mentioned in the Counter-Strike section. Just use different ports 
in your startup lines.

If you have any problem with setting up such a server you can contact me using the  forum.