Call of Duty 2
DragonBe shows you how to install, configure and run a dedicated linux Call of Duty 2 server.
Getting the Call of Duty 2 files
You will need your copy of Call of Duty 2!
Call of Duty 2 dedicated linux server
- cod2-lnxded-1.3-06232006.tar.bz2 (398 KB)
- This is the Call of Duty 2 linux dedicated server
Installation of Call of Duty 2
- Create your COD 2 Directory
- $ cd /usr/local/games
- $ mkdir cod2
- Unpacking cod2-lnxded-1.3-06232006.tar.bz2
- $ cd ./cod2
- $ tar -xvjf /tmp/cod2-lnxded-1.3-06232006.tar.bz2
- Copy the files from CD/DVD
- $ mount /dev/dvd /media/dvd
- $ cp -rv /media/dvd/Setup/Data/* .
- Create a profile account
- This tip comes from TMM World
- $ mkdir ./main/players
- $ mkdir ./main/players/dragonbe
- $ touch ./main/players/dragonbe/config_mp.cfg
- $ echo dragonbe >> ./main/players/active.txt
Configuration of Call of Duty 2
- Before you start up your Call of Duty 2 server, you can modify the default server config file
- $ cd /usr/local/games/cod2
- $ vi ./main/server.cfg
Example battlefield 2 configuration file
Customize your server
// General info sets _Admin "DragonBe" sets _Email "admin@dragonbe.be" sets _Website "http://www.dragonbe.be" sets _Location "Belgium" // Hostname and Message of The Day set sv_hostname "DragonBe COD2 Server" set scr_motd "Come in peace, leave in pieces" // Set the Server IP and Port Address //set net_ip xxx.xxx.xxx.xxx //set net_port 28960 // Set the Server Min and Max Ping set sv_maxPing "250" set sv_minPing "0" // Set the Game type: bel, dm, re, sd, tdm set g_gametype "dm" // Set the Rcon Password: To control the Server Remotely set rcon_password "xxxxxx" // Maximum Players on the Server set sv_maxclients "14" // Setup for Private Player spots on the Server set sv_privateclients "0" set sv_privatepassword "" // Set the Max Rate Per Player on the server // MaxRate = Upload Speed / (# of Players * 8) set sv_maxrate "15000" // Pure on or Off: Pure is basicly an anticheat set sv_pure "1" // Have the Server Show Up on GameSpy set sv_gamespy "1" // Allow Voting on the server: 0=No 1=Yes // It is recommended if you have friendly fire on // that you also enable voting so that players can kick team killers set scr_allow_vote "1" // Friendly Fire: 0=Off 1=On 2=Reflect Damage set scr_friendlyfire "1" // Team Kill Options set g_teamkillwarn "3" set g_teamkillkick "3" // Invulnerable Time After a Respawn set sv_invulnerabletime "3" // Delay in Time Before a Player Can Switch Teams set g_teamswitchdelay "5" // Force Respawn: DM, TDM set scr_forcerespawn "1" // Draws a Team Icon Over Teammates: 0=Off 1=On set scr_drawfriend "1" // 0=Kill Cam 1=Team Spectate set g_forceteamspectate "0" // Enable Developer it Controls the Type of Log File set developer "1" // Allow Downloads from the Server set sv_allowdownload "1" // Flood Protect the Server set sv_floodProtect "1" // Auto Team Balance set scr_teamBalance "1" // Allow Free Spectating set scr_spectatefree "1" // Allow Enemy Spectating set scr_spectateenemy "0" // Allow Voice Communications set sv_voice "0" // Voice Quality set sv_voicequality "" // Weapons Allowed 1=allow // American Weapons // ---------------- // Bar set scr_allow_bar "1" // Grease Gun set scr_allow_greasegun "1" // M1 Carbine set scr_allow_m1carbine "1" // M1 Garand set scr_allow_m1garand "1" // Springfield Sniper set scr_allow_springfield "1" // Thompson set scr_allow_thompson "1" // Russian Weapons // ---------------- // Nagant set scr_allow_nagant "1" // Nagant Sniper set scr_allow_nagantsniper "1" // PPS 42 set scr_allow_pps42 "1" // PPSH set scr_allow_ppsh "1" // Tokarev SVT 40 set scr_allow_svt40 "1" // British Weapons // ---------------- // Bren set scr_allow_bren "1" // Enfield set scr_allow_enfield "1" // Enfield Sniper set scr_allow_enfieldsniper "1" // Sten set scr_allow_sten "1" // German Weapons // ---------------- // Gewehr 43 set scr_allow_g43 "1" // Kar 98k set scr_allow_kar98k "1" // Kar 98k Sniper set scr_allow_kar98ksniper "1" // MP 44 set scr_allow_mp44 "1" // MP 40 set scr_allow_mp40 "1" // Common Weapons // ---------------- // M1897 Trench Gun - Shotgun set scr_allow_shotgun "1" // Fragg Grenades set scr_allow_fraggrenades "1" // Smoke Grenades set scr_allow_smokegrenades "1" // Set the Different Gametype Settings // Capture the Flag set scr_ctf_scorelimit "5" set scr_ctf_timelimit "30" // Deathmatch Settings set scr_dm_scorelimit "30" set scr_dm_timelimit "20" // Headquaters set scr_hq_scorelimit "450" set scr_hq_timelimit "30" // Search and Destroy Settings set scr_sd_graceperiod "15" set scr_sd_roundlength "4" set scr_sd_roundlimit "0" set scr_sd_scorelimit "10" set scr_sd_timelimit "30" set scr_sd_bombtimer "60" // Team Deathmatch Settings set scr_tdm_scorelimit "150" set scr_tdm_timelimit "15" // Set the Allowed Maps and the Rotation set sv_maprotation "gametype dm map mp_brecourt gametype dm map mp_carentan game type dm map mp_farmhouse gametype dm map mp_dawnville gametype dm map mp_burgund y gametype dm map mp_trainstation gametype dm map mp_decoy gametype dm map mp_to ujane gametype dm map mp_matmata gametype dm map mp_railyard gametype dm map mp_ breakout gametype dm map mp_leningrad gametype dm map mp_downtown "
Call of Duty 2 Commandline
- Starting up the Call of Duty 2 server.
- $ cd /usr/local/games/cod2
- $ ./cod2_lnxded +set dedicated 1 +set g_gametype dm + exec server.cfg +map_rotate +sv_punkbuster 1
- ... or using the screen command
- $ screen -A -h 1500 -m -d -S cod2 ./cod2_lnxded +set dedicated 1 +set g_gametype dm + exec server.cfg +map_rotate +sv_punkbuster 1
Call of Duty 2 Firewall Settings
The following ports are used by Call of Duty 2:
- UDP 29900: Default GameSpy port
- UDP 20500: Default Call of Duty 2 CD-Key Validation
- UDP 20510: Default Call of Duty 2 Master Server
- UDP 28960: Default Call of Duty 2 Gameplay port


