[edit] I believe this guide will suffice for Counterstrike, CZero, CS Source, etc.
If anyone has any additions please feel free to post them here. I spent a few days installing and configuring a Counter Strike : Condition Zero server and thought that it would be helpful to outline my process and the snags that came with it.
Here is v1.0 of the installation guide as well as instructions to get AdminMod working without Segmentation Fault errors from MetaMod.
RUNNING CZERO SERVER ON LINUX WITH ADMINMOD
Requirements For Your Server:
1) Acces to a Linux server with ssh, or your own server
2) An Internet connection on the linux server.
3) A home dir where you have write access.
4) 600-800mb of disk space.
5) wget or ftp software.
6) Gzip unpack program.
Downloading Update Tool:
Go to your /home directory and create a folder called hlds_l
# cd /home
# mkdir hlds_l
# cd /home/hlds_l
You will have to locate the next file for download and wget it into your current directory. You can locate this file by going to goole.com and searching hldsupdatetool.
# wget ftp://whateverftp.youchoose.com/hldsupdatetool.bin
Once you have this downloaded run these commands:
# chmod +x hldsupdatetool.bin
# ./hldsupdatetool.bin
This will create a file called steam, which we want to make executable
# chmod +x steam
Creating Steam Account:
The format for creating a steam account via command line is:
# ./steam command create -[username] -[password] -[question] -[answer]
Example:
# ./steam command create username MyBigUsername email myemail@csr0x.com password 1337pasS question slay next round for tk? answer yes
Once you run this command Steam will update its database with your new account.
Retype the earlier command (or up arrow) and begin the newest Steam Client installation.
Installation of Server Files:
The format to update your server is similar to creating your Steam account. If you created the hlds_l directory as /home/hlds_l use the below line to update your server files:
# ./steam command update game czero dir /home/hlds_l/ -username MyBigUsername password 1337pasS remember_password
That command will install all Czero files to your created directory and remember your password for the next update that you run.
The file installation is now done. You can now run a dedicated server with the commands included below.
Hlds_run command line options:
Sample hlds_run command:
# ./hlds_run game czero +map de_dust -autoupdate
1) -game = the game you want to run, ex. game czero
2) +map = the map you want to use, ex. +map de_dust
3) +maxplayers = the maximum number of players, ex. +maxplayers 24
4) autoupdate = automatically update before starting the game, ex. autoupdate
5) +ip = the address you want to run the server on, ex. +ip 172.17.207.199
6) +port = the port you want to run the server on, ex. 27015, 27025, 27035, etc.
7) +motdfile = the message of the day file you want to use, ex. +motdfile motd.27015
8) +mapcyclefile = the mapcycle file you want to use, ex. +mapcyclefile mapcycle.27015
9) +servercfgfile = the server config file you want to use, ex. +servercfgfile server.27015
Sample Server.cfg file:
// Use this file to configure your DEDICATED server.
// This config file is executed on server start.
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// default server name. Change to "Bob's Server", etc.
hostname "Yeah Buddy CZero Server
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
mp_limitteams 0
mp_autoteambalance 0
mp_startmoney 16000
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg
// Execute Admin Mod configuration file
// This will install when you install AdminMod
exec addons/adminmod/config/adminmod.cfg
// Bots are allowed only in Czero
bot_join_team t //t, ct, any
bot_quota 18 //1-32
bot_difficulty 0 //0-3
bot_defer_to_human 0 //0-1
bot_chatter normal //off, minimal, radio, normal
bot_allow_grenades 0 //0-1
bot_allow_machine_guns 0 //0-1
bot_allow_pistols 1 //0-1
bot_allow_rifles 0 //0-1
bot_allow_shield 0 //0-1
bot_allow_shotguns 0 //0-1
bot_allow_snipers 0 //0-1
bot_allow_sub_machine_guns 0 //0-1
bot_join_after_player 1 //0-1
bot_prefix BOT //Can be any prefix
//These values can be left alone
bot_nav_edit 0
bot_nav_zdraw 4
bot_traceview 0
bot_show_danger 0
bot_show_nav 0
bot_debug 0
bot_quicksave 0
bot_walk 0
bot_zombie 0
bot_stop 0
bot_auto_vacate 1
bot_quota_match 0
AdminMod and Metamod Installation:
First you must create a directory to download AdminMod to.
# cd /home
# mkdir adminmod
As before, we have to locate the adminmod installation files. You can find them by visiting Sourceforge.net here:
http://prdownloads.sourceforge.net/half ... z?download
# wget http://whatever.location.youfind.com/ha ... .59.tar.gz
After downloading the file we need to extract the install script by punching in these commands:
# tar xzvf halflife-admin-2.50.59.tar.gz
Navigate to the new directory Adminmod and run the install script.
# cd Adminmod
# ./install_admin
You will then see the screen below and the automated installation will begin.
Setting up installation... ok
Admin Mod Installation Script
Version 2.50.50
This script will install Admin Mod version 2.50.50 on your
system. It will ask you for the directory that you installed
the Half-Life server in. To accept defaults just press Return.
After the binaries are installed you should read the docu-
mentation and configure Admin Mod before you use it for the
first time.
Shall I proceed with the installation? (y/n) [y]
Your Installation is complete. Adminmod should be configured now to your liking. Configuration will not be included in this file, but is accessible at www.adminmod.org.
Troubleshooting Metamod for Gentoo:
During this installation the Gentoo build did not like the version of Metamod that we used. To correct the issue we used MetamodX, which is found at http://www.amxmodx.org/metamodx.php and is specifically designed with Steam in mind. MetamodX uses the same filename that Adminmod autoinstalls. You can edit your liblist.gam file that is found in your game directory such as /home/hlds_l/czero. You can either overwrite this file (make sure you back it up first) or edit the liblist.gam to point to the right metamod_i386.so file. The old metamod_i386.so file is located in your /hlds_l/czero/addons/metamod directory. When installing MetamodX they recommend that you create a new directory called amxx in the addons directory. The section of the liblist.gam file that is important should look something like this:
//gamedll_linux dlls/cs_i386.so
//gamedll_linux addons/metamod/dlls/metamod_i386.so
gamedll_linux addons/amxx/metamod_i386.so

