This is a Automated Guide to Install CS:Promod On Linux
*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
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
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
* taken from CSPromod • View topic - [Guide] CentOS Linux Install Script
*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
Code:
[FONT=Courier New]#!/bin/bash[/FONT] [FONT=Courier New]echo "Welcome We Are Creating Your User For this CSPromod Install"[/FONT] [FONT=Courier New]echo "Adding User"[/FONT] [FONT=Courier New]useradd -d /home/cspromod cspromod[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Making Directory"[/FONT] [FONT=Courier New]mkdir /home/cspromod[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Setting Directory Permissions"[/FONT] [FONT=Courier New]chown cspromod /home/cspromod[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Setting Password"[/FONT] [FONT=Courier New]passwd cspromod[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Time To Login![/FONT]
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
Code:
[FONT=Courier New]#!/bin/bash[/FONT] [FONT=Courier New]echo "Welcome. This will install CS:Promod Server For You"[/FONT] [FONT=Courier New]echo "Downloading Primary Server Software"[/FONT] [FONT=Courier New]wget http://www.steampowered.com/download/hldsupdatetool.bin[/FONT] [FONT=Courier New]chmod +x hldsupdatetool.bin[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Extracting Bin Tool"[/FONT] [FONT=Courier New]./hldsupdatetool.bin[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Removing .bin file"[/FONT] [FONT=Courier New]rm -rf hldsupdatetool.bin[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Update Steam Installer"[/FONT] [FONT=Courier New]./steam[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Install Counter-Strike Source Base"[/FONT] [FONT=Courier New]./steam -command update -game "Counter-Strike Source" -dir ~/[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Verifying Counter-Strike Souce Base"[/FONT] [FONT=Courier New]./steam -command update -game "Counter-Strike Source" -dir ~/ -verify_all[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Downloading CS:Promod Files"[/FONT] [FONT=Courier New]wget http://cspd1.divo.net/cspromod_b104.zip[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Extracting CS:Promod Files"[/FONT] [FONT=Courier New]unzip cspromod_b104.zip[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Cleaning Up CS:Promod Files"[/FONT] [FONT=Courier New]rm -rf cspromod_b104.zip[/FONT] [FONT=Courier New]echo "... Complete"[/FONT] [FONT=Courier New]echo "Command Options for Running Server"[/FONT] [FONT=Courier New]echo "./srcds_run -console -game cspromod +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"[/FONT] [FONT=Courier New]echo "./srcds_run -console -game cspromod +ip 0.0.0.0 -port 27015 +map csp_dust2 -maxplayers 24 -autoupdate -tickrate 100"[/FONT] [FONT=Courier New]echo "... SCRIPT COMPLETE"[/FONT] [FONT=Courier New]echo "Its All Yours Now!"[/FONT]
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
* taken from CSPromod • View topic - [Guide] CentOS Linux Install Script