Go Back   SharingDVB All Tutorials sharing > Free CCcam Newcamd MDBox OBox > VPS Tutorials

Reply
 
Thread Tools Display Modes
Old 12-30-2014, 07:23 PM   #1
admin
Administrator
 
admin's Avatar
 
Join Date: Dec 2014
Posts: 219
New How to Install Counter Strike 1.6 Server on Centos And Debian



Quote:
Note :- Works on Centos 6
Login to your vps with putty
Making a directory
Code:
mkdir SteamCMD
Change directory to steamcmd
Code:
cd SteamCMD
Download steamcmd tool
Code:
wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
For Centos
Code:
yum -y install glibc.i686 libstdc++.i686
For Debian
Code:
apt-get install ia32-libs
Extracting steam cmd tool
Code:
tar -xvzf steamcmd_linux.tar.gz
Run steamcmd tool
Code:
./steamcmd.sh
Login as anonymous
Code:
login anonymous
Directory in which cs will be installed
Code:
force_install_dir ./cs/
To get the folder of cstrike with valve
Code:
app_set_config 90 mod cstrike
Now install cs 1.6
Code:
app_update 90
To get cstrike folder we have to install HLDS beta
Quote:
Note:-Run this cmd 2 times
Code:
app_update 90 -beta beta validate
Exit
Code:
exit
CD to cs
Code:
cd cs
Run HLDS
Code:
./hlds_run -game cstrike +ip <ip> +port <port> +maxplayers 12 +map de_dust2

Quote:
Note:- As Haphost gives 128mb ram Max players should be 12 to avoid high lagging

Next .. Cs 1.6 control panel Tutorial
admin is offline   Reply With Quote
Old 12-30-2014, 07:42 PM   #2
admin
Administrator
 
admin's Avatar
 
Join Date: Dec 2014
Posts: 219
Default For Cs 1.6 control panel follow this Tutorial



For Cs 1.6 control panel follow this Tutorial
Setup CS 1.6 with webmin
Create a new script on cs directory and type
Code:
nano start.sh
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip your.ip +port 27015 +maxplayers 12 +map de_dust2
echo "Server Started Successfully"
Quote:
Press Ctrl+X and then Y to save
Code:
chmod +x start.sh
Now create Stop Script
Code:
nano stop.sh
screen -r hlds -X stop
echo "Server Stopped"
Quote:
Press Ctrl+X and then Y to save
Code:
chmod +x stop.sh
Now create restart script
Code:
nano restart.sh
screen -r hlds -X stop
screen -A -m -d -S hlds ./hlds_run -game cstrike +ip your.ip +port 27015 +maxplayers 12 +map de_dust2
Quote:
Press Ctrl+X and then Y to save
Code:
chmod +x restart.sh
Now Login to webmin and goto


Click Create new custom command


Quote:
Now type Start on Discriptions
Leave html discriptions
type ./start.sh on command
Change run in directory to your cs directory e.g /root/SteamCMD/cs
Run as user -> yourusername and tick Use user's environment?
Now click on the save
Do the same for the stop script and restart script
Just change command with scipt name
e.g for stop ./stop.sh
for restart ./restart.sh

Now goto Webmin - > Configuration -> Webmin Modules
click on the Clone use the follow setting on the screen shot


And click Clone Module

Now Goto Webmin -> Users -> Create a new Webmin User
Enter your username and password the click Avalible webmin modules and tick on Counter Strike 1.6 Server


Now login again with the user you have created and click on Counter Strike 1.6 Server..


All done...
admin is offline   Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 AM.
SharingDVB@
A vBSkinworks Design