Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Counterstrike / Condition Zero / Source Installation Guide
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  

Was this guide helpful?
Somewhat
0%
 0%  [ 0 ]
Somewhat
0%
 0%  [ 0 ]
Not at all
0%
 0%  [ 0 ]
Total Votes : 0

Author Message
simulacra
n00b
n00b


Joined: 21 Apr 2004
Posts: 9

PostPosted: Wed Apr 21, 2004 7:46 pm    Post subject: Counterstrike / Condition Zero / Source Installation Guide Reply with quote

[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/halflifeadmin/halflife-admin-2.50.59.tar.gz?download

# wget http://whatever.location.youfind.com/halflife-admin-2.50.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


Last edited by simulacra on Thu Mar 31, 2005 5:57 pm; edited 6 times in total
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Wed Apr 21, 2004 11:37 pm    Post subject: Reply with quote

amxmod is better :p
_________________
John5788
Back to top
View user's profile Send private message
simulacra
n00b
n00b


Joined: 21 Apr 2004
Posts: 9

PostPosted: Thu Apr 22, 2004 12:16 am    Post subject: Reply with quote

I haven't looked at AMXMod. I'll take a look at it.
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Thu Apr 22, 2004 2:55 pm    Post subject: Reply with quote

you get more functions with amx than you do with admin. just how i like it :)
_________________
John5788
Back to top
View user's profile Send private message
simulacra
n00b
n00b


Joined: 21 Apr 2004
Posts: 9

PostPosted: Tue May 11, 2004 5:15 pm    Post subject: AMX Rocks AdminMod Reply with quote

I took the advice of John5788 and found AMX to be a fantastic MOD. I am currently running the Warcraft 3: Frozen Throne Mod through AMX, which is a lot of fun. If you guys haven't checked out the Warcraft Mod you can hit Steam and sort server names and hit a WC3 server. I play on WC3Newbies from time to time. WC3 Mod also has database support which will store your current experience points and your stats.
Back to top
View user's profile Send private message
jgrimm73
n00b
n00b


Joined: 24 Mar 2003
Posts: 9
Location: Atlanta, GA

PostPosted: Thu May 13, 2004 3:27 pm    Post subject: amx mod - wc3 / frozen throne Reply with quote

I assisted Brian in building the tutorial above, and from advice from the posts we also have moved to the amx mod which is awesome, we're also running the wc3/ft mod as mentioned. We got the mysql db support working as well so now we don't lose our xp. We have some hosted czero servers and can provide db support to those of you who want it.
_________________
"In an ever evolving quantam universe those that stand still are actually moving backwards"
~Robert Anton Wilson~
Back to top
View user's profile Send private message
simulacra
n00b
n00b


Joined: 21 Apr 2004
Posts: 9

PostPosted: Fri Jun 04, 2004 7:24 pm    Post subject: Server Address Reply with quote

After a few weeks of tweaking the Condition Zero w/ WC3:FT Mod it is finally ready for play. I set up a new Dell 400sc on my T1 at home and a 'sister server' at work. Oh the perks of being a dork in Corporate America. The 'sister server will probably go away soon, and the IP will change from my home T1 to an office T1 and I'll update the IPs accordingly at that time.

Last edited by simulacra on Tue Mar 01, 2005 8:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
simulacra
n00b
n00b


Joined: 21 Apr 2004
Posts: 9

PostPosted: Tue Sep 14, 2004 1:59 pm    Post subject: Servers down Reply with quote

After having the CS:CZ servers up for a long while it was time to retire them. Since posting of the IP for the server, the entire network has been nailed by hundreds of different IPs trying to access every machine on my network. My one home box has been hit with 25,000 attempts to access in only 5 days. I never got into mass port scanning or any deep hacking, but this is a bit ridiculous. I've got everything NATted and use firewall software set at it's highest setting, so I'm not too worried just annoyed. Thanks for all who had fun on the servers while they were up and good luck to anyone who is building a new server.

Simulacra
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum