PDA

View Full Version : [OLD] [Guide] CentOS Linux Install Script for BETA 1.04



bmcghee
01-31-2010, 05:16 PM
This is a Automated Guide to Install CS:Promod On CentOS
*Note: I SUGGEST NOT USING ROOT FOR RUNNING CSP SERVER. This Tutorial Will Create a New User. If you have already created a user then skip Step 1.


Step 1:
a) Log Into Root
b) Type
# nano createuser.sh
c) Paste In The Code Below

#!/bin/bash
echo "Welcome We Are Creating Your User For this CSPromod Install"
echo "Adding User"
useradd -d /home/cspromod cspromod
echo "... Complete"
echo "Making Directory"
mkdir /home/cspromod
echo "... Complete"
echo "Setting Directory Permissions"
chown cspromod /home/cspromod
echo "... Complete"
echo "Setting Password"
passwd cspromod
echo "... Complete"
echo "Time To Login!
d) Press CTRL + X to close editor
e) Press Y to confirm
f) Press Enter to save to filename specified earlyer
g) Type
# chmod +x createuser.sh
h) Type
# ./createuser.sh

Step 2:
a) Log Into cspromod
b) Type
# nano install-cspromod.sh
c) Paste In The Code Below

#!/bin/bash
echo "Welcome. This will install CS:Promod Server For You"
echo "Downloading Primary Server Software"
wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
echo "... Complete"
echo "Extracting Bin Tool"
./hldsupdatetool.bin
echo "... Complete"
echo "Removing .bin file"
rm -rf hldsupdatetool.bin
echo "... Complete"
echo "Update Steam Installer"
./steam
echo "... Complete"
echo "Install Counter-Strike Source Base"
./steam -command update -game "Counter-Strike Source" -dir ~/
echo "... Complete"
echo "Verifying Counter-Strike Souce Base"
./steam -command update -game "Counter-Strike Source" -dir ~/ -verify_all
echo "... Complete"
echo "Downloading CS:Promod Files"
wget http://cspd1.divo.net/cspromod_b104.zip
echo "... Complete"
echo "Extracting CS:Promod Files"
unzip cspromod_b104.zip
echo "... Complete"
echo "Cleaning Up CS:Promod Files"
rm -rf cspromod_b104.zip
echo "... Complete"
echo "Command Options for Running Server"
echo "./srcds_run -console -game cspromod +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"
echo "./srcds_run -console -game cspromod +ip 0.0.0.0 -port 27015 +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"
echo "... SCRIPT COMPLETE"
echo "Its All Yours Now!"
d) Press CTRL + X to close editor
e) Press Y to confirm
f) Press Enter to save to filename specified earlyer
g) Type
# chmod +x install-cspromod.sh
h) Type
# ./install-cspromod.sh
*Go Eat/Grab a Coffee/Watch TV

CentOS Errors You May Encounter:
1) sh: uncompress: command not found
Option 1
# yum install gzip
Option 2 (if already installed) (*from root login)
# ln -s /usr/bin/gunzip /usr/bin/uncompress

yuri
01-31-2010, 05:29 PM
Nice one, should be STICKED ;)

Droogie
01-31-2010, 09:47 PM
what does centOS have anything to do with this?
name it "Linux Install Script"...

redex
02-01-2010, 06:14 PM
what does centOS have anything to do with this?
name it "Linux Install Script"...
agree its suitable for any linux distro

Strika
02-01-2010, 07:32 PM
what does centOS have anything to do with this?
name it "Linux Install Script"...
well the "yum" commands etc. :D wont exatcly work or any linux

Droogie
02-02-2010, 08:53 PM
what does centOS have anything to do with this?
name it "Linux Install Script"...
well the "yum" commands etc. :D wont exatcly work or any linux

That has nothing to do with setting up the server.. there are multiple ways to compile or obtain a pre-compiled binary depending on what package manager you're using on which distro.

zero
02-06-2010, 07:34 AM
Hello all :) my first post here...

I would like to correct one thing -
install-cspromod.sh script will not work correctly if you are skipping step 1


#!/bin/bash
echo "Welcome. This will install CS:Promod Server For You"
echo "Downloading Primary Server Software"
wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
echo "... Complete"
echo "Extracting Bin Tool"
./hldsupdatetool.bin
echo "... Complete"
echo "Removing .bin file"
rm -rf hldsupdatetool.bin
echo "... Complete"
echo "Update Steam Installer"
./steam
echo "... Complete"
echo "Install Counter-Strike Source Base"
./steam -command update -game "Counter-Strike Source" -dir .
echo "... Complete"
echo "Verifying Counter-Strike Souce Base"
./steam -command update -game "Counter-Strike Source" -dir . -verify_all
echo "... Complete"
echo "Downloading CS:Promod Files"
wget http://cspd1.divo.net/cspromod_b104.zip
echo "... Complete"
echo "Extracting CS:Promod Files"
unzip cspromod_b104.zip
echo "... Complete"
echo "Cleaning Up CS:Promod Files"
rm -rf cspromod_b104.zip
echo "... Complete"
echo "Command Options for Running Server"
echo "./srcds_run -console -game cspromod +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"
echo "./srcds_run -console -game cspromod +ip 0.0.0.0 -port 27015 +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"
echo "... SCRIPT COMPLETE"
echo "Its All Yours Now!"

Here is the correct script if you wanna use it and you don't want to create a new user for CSPromod server, but i really recommend you do.

So the thing is that ~/ in steam update line basicly looks for a game in user home directory (for testuser - directory is /home/testuser/ and for root directory is just / ). So you need to put . and not ~/ if you want to Steam to update the directory you are currently in with SSH.

Hope that helps :) cheers!

Kawa
02-17-2010, 02:31 PM
Hey guys,
I've got a problem.
If I use the following commands to start the server:

./srcds_run -console -game cspromod +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100

I get

Invalid game type 'cspromod' sepecified.
Wed Feb 17 19:29:00 UTC 2010: Server Failed

Anyone knows how I can get it work?

Thank you for your attention.

ma3a
03-28-2010, 08:41 AM
Same problem.

StaticFrost
02-05-2011, 02:52 AM
Did anyone figure how to fix the problem from above as im getting the same error :S

amogan
02-10-2011, 07:55 AM
This is also old (even from before the 1.04 hotfix). See http://wiki.cspromod.com/Install#Linux_Server_Setup for reference.