Jump to content



Photo

[Tutorial]Setup 24/7 configured Counter-Strike 1.6 and HL 1 server


  • Please log in to reply
5 replies to this topic

#1 Khevin

Khevin

    Advanced Member

  • Administrators
  • 235 posts
  • LocationMauritius

Posted 05 August 2014 - 04:48 PM

Original thread by redhasouna

 

Hello
This is a friendly tuto for a ready to host and configured and cracked both of games Counter-Strike 1.6 & Half-Life 1 both supports non-steam clients v47
dunno if it's gonna work with steam clients anyway let's stop this story here and start the tuto


If you know how to create user skip this step
Setp 1 :

you need first to create user , its only important to not run under root directory for safety

Code:

Add user cs-hl_server

Let's set password for this user

Code:

passwd cs-hl_server

We STAY as root for this step
Setp2 :

In this step we gonna install tmux on CentOS you can search on google if you have a different linux distribution




 
quote_icon.png Originally Posted by Murderwrecker'
Hello

this tutorial is about the installation of the terminal multiplexer "tmux" which is unhappily not included in the CentOS repos.




Let's start:



  1. Log into your VPS or dedicated server as root or a user with root premissions.
  2. Update your system via Yum with this command "yum update" (Optional but a updated system is recommended to improve security).
  3. Install the libevent libs via Yum with this command "yum install libevent".
  4. Now we will install Tmux for CentOS 5 32Bit:
    Code:

    rpm -Uvh http://pkgs.repoforge.org/tmux/tmux-1.6-1.el5.rf.i386.rpm
  5. CentOS 5 64Bit:
    Code:

    rpm -Uvh http://pkgs.repoforge.org/tmux/tmux-1.6-1.el5.rf.x86_64.rpm
  6. CentOS 6 32Bit:
    Code:

    rpm -Uvh http://pkgs.repoforge.org/tmux/tmux-1.6-1.el6.rf.i686.rpm
  7. CentOS 6 64Bit:
    Code:

    rpm -Uvh http://pkgs.repoforge.org/tmux/tmux-1.6-1.el6.rf.x86_64.rpm
  8. If everything went right you should be finished with the installation.
  9. Test it via the command "tmux" and it should work smile.png.




That's it tongue.png

 

 

For step 3 we logout and we conect with

username : cs-hl_server

password : that we you made on step1


Step3 :
Finally we gonna get and install the configured cs and hl


downloand the game files

Code:

wget https://www.dropbox.com/s/8lngbh0w40bqes4/cs-hl.tar.gz

Extract tar.gz

Code:

tar xzvf cs-hl.tar.gz

Just one file to config go to the dir cs you can cd to there and use nano to config


Or Just connect by FileZilla using sftp port "22" in this tuto I prefere that you use FileZilla
Ip: your server's ip
Username: cs-hl_server
Password : step1 's password
Port: 22


Using FileZilla
Step4 :

- Go to cs folder by double click
-Edit the next files using notepad or any text editor
"run_cs" for Counter-Strike 1.6
"run_hl" for Half-Life


You will get this by opening "run_cs"

Code:

#! /bin/bash
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"


while [ true ]; do
./hlds_i686 -game cstrike -autoupdate +ip 5.231.67.173 -port 27015 +maxplayers 14 +map aa_dima -pingboost 3
echo "Server crashed at '`date`' - Restarting"
echo "Server crashed at '`date`' - Restarting" >> crash.log
sleep 5
done

Change ! :
+ip {your server ip}
-port {as you wish} i prefere default
+maxplayers {amount of your server's players that you like and can support}
+map {the map that the server will start with}


Same thing when you will open "run_hl" you will just notice this command : -game vlave
don't change it just do same thing as the file "run_cs"



That's it!


Last step :
Let's run our server! Login with cs-hl_server user using ssh client like kitty or putty
-Go to cs dir

Code:

cd cs

-Run tmux by only typing this command

Code:

tmux

-Run da server!!!

Code:

./run_cs

to run Counter-strike

Code:

./run_hl

to run hl


Congratulation! now you have 24/7 Counter-Strike 1.6 and Half-Life 1 Cracked servers along with few amxmodx plugins inside


What's spécial about this Tutorial ?
This tutorial is just simplest way to host those tow games if you have noticed this tutorial skipped hldsupdatetool.bin
This tutorial used a cs package used by my server and created by me on CentOS6 i just compressed my game for you guys
So less work & more benificts


What are the benificts?!
Easy let me list
-Already Cracked both of games !
-Already installed metamod and dporto and amxmodx
-tons of maps
-few amxmodx fun plugins for Counter-Strike only:
* TimePass Anti-Cheat version 9 .
* CSDM: to enable CSDM 24/7 edit csdm.ini "enable = 0" to "enable = 1" you can also set ur self admin by editing users.ini file then enable csdm for one round by typing in consol amxmodmenu
* Female ultimate sound
* advenced bans
* rest score command /rs in y
* vote kick ban menu
* Fireworks : type in consol fireworks_menu
* Jetpack : type in consol buyjet to buy one use jp_arena 1 to start massive jetpack war & jp_active 0 to turn jetpack mod off
* Your admin name is colored when you send msg throw chat
& more !! just check out plugins.ini


Undefined/Khevin | Haphost Support Administrator

Grab Your Free VPS And Web Hosting Here!

Follow Us On Facebook Twitter Google+ LinkedIn Youtube


#2 milralze

milralze

    Member

  • Members
  • PipPip
  • 27 posts
  • LocationBrazil - São Paulo

Posted 05 August 2014 - 04:58 PM

I have Counter-Strike 1.6 servers in Africa and Brazil, however VPS located in Brazil is not available at the moment, so I have access to vps in Brazil by ftp and putty, I needed haphost on the panel so I'll awaits eager


VPS BY HAPHOST

Servers Counter-Strike 1.6

www.mestreservidores.com.br


#3 chandradeep

chandradeep

    Member

  • Members
  • PipPip
  • 20 posts

Posted 28 December 2014 - 11:37 AM

Original thread by redhasouna

 

Hello
This is a friendly tuto for a ready to host and configured and cracked both of games Counter-Strike 1.6 & Half-Life 1 both supports non-steam clients v47
dunno if it's gonna work with steam clients anyway let's stop this story here and start the tuto


If you know how to create user skip this step
Setp 1 :

you need first to create user , its only important to not run under root directory for safety

Code:

Add user cs-hl_server

Let's set password for this user

Code:

passwd cs-hl_server

We STAY as root for this step
Setp2 :

In this step we gonna install tmux on CentOS you can search on google if you have a different linux distribution




 
 

For step 3 we logout and we conect with

username : cs-hl_server

password : that we you made on step1


Step3 :
Finally we gonna get and install the configured cs and hl


downloand the game files

Code:

wget https://www.dropbox.com/s/8lngbh0w40bqes4/cs-hl.tar.gz

Extract tar.gz

Code:

tar xzvf cs-hl.tar.gz

Just one file to config go to the dir cs you can cd to there and use nano to config


Or Just connect by FileZilla using sftp port "22" in this tuto I prefere that you use FileZilla
Ip: your server's ip
Username: cs-hl_server
Password : step1 's password
Port: 22


Using FileZilla
Step4 :

- Go to cs folder by double click
-Edit the next files using notepad or any text editor
"run_cs" for Counter-Strike 1.6
"run_hl" for Half-Life


You will get this by opening "run_cs"

Code:

#! /bin/bash
export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH"


while [ true ]; do
./hlds_i686 -game cstrike -autoupdate +ip 5.231.67.173 -port 27015 +maxplayers 14 +map aa_dima -pingboost 3
echo "Server crashed at '`date`' - Restarting"
echo "Server crashed at '`date`' - Restarting" >> crash.log
sleep 5
done

Change ! :
+ip {your server ip}
-port {as you wish} i prefere default
+maxplayers {amount of your server's players that you like and can support}
+map {the map that the server will start with}


Same thing when you will open "run_hl" you will just notice this command : -game vlave
don't change it just do same thing as the file "run_cs"



That's it!


Last step :
Let's run our server! Login with cs-hl_server user using ssh client like kitty or putty
-Go to cs dir

Code:

cd cs

-Run tmux by only typing this command

Code:

tmux

-Run da server!!!

Code:

./run_cs

to run Counter-strike

Code:

./run_hl

when iam try to run both commands getting error |   2014_12_27_19_20_01_Greenshot.png



#4 Ghostovsky

Ghostovsky

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 24 January 2015 - 03:35 PM

Thanks. but 1 question how i can resume screen in my vps to controle the server and restart it  ??



#5 PatrickNL

PatrickNL

    Advanced Member

  • Members
  • PipPipPip
  • 115 posts
  • LocationIn a virtual world

Posted 24 January 2015 - 06:50 PM

Thanks. but 1 question how i can resume screen in my vps to controle the server and restart it  ??

 

Install Screen, that is what i use to keep my server on and i can watch the console when i want



#6 VSnake

VSnake

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 February 2015 - 10:36 AM

Thanks. but 1 question how i can resume screen in my vps to controle the server and restart it  ??

After logging into the VPS you can run this command to resume the screen : tmux attach -t [target-session]

and to know the target session you can use "tmux list-sessions" command






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users