User Tools

Site Tools


howtos

Setting up a CS beta 5.2/6.1 linux server

Required files

Requirements

  • A 32 bits operating system
  • 128 Mb / 1Gb swap
  • A single CPU/core machine (virtualization is advised). Please see here to grab a 32 bits Wheezy Xen image.

Installing files

  • Copy all required files and decompress them
cd /your_halflife_directory
tar xvfz hlds_l3016.tar.gz
tar xvfz cs_beta52.tar.gz
  • Apply nowon patch
cd /your_halflife_directory
./hlds_l.3016.nowon.sh

Configuration

In /your_halflife_directory/cstrike/server.cfg modify the settings you need. Now you can launch the server with the following :

export LD_LIBRARY_PATH=/your_halflife_directory/:$LD_LIBRARY_PATH
cd /your_halflife_directory/
/your_halflife_directory/hlds_l -game cstrk61 +exec server.cfg +ip 192.168.1.2 -port 27016 +sv_lan 1 +map de_train +maxplayers 24 -heapsize 1024000

:!: In the above a local class C address is used. Specify whatever IP you may need depending on your network configuration.

:!: Default heapsize is 32Mb, it may not be enough for some maps. Raise it to 1 Gb.

Setting up a CS beta 7.1/1.1 linux server

Required files

Hardware and software requirements

  • A 32 bits operating system
  • A single CPU/core machine (virtualization is advised)

Installing files

  • Copy all required files and decompress them
cd /your_halflife_directory
tar xvfz hlds_l3104.tar.gz
tar xvfz cs_beta71.tar.gz
  • Compile hlds_nowon.c file and copy .so file in /your_halflife_directory

You may need to install following packages : g++-multilib

gcc -m32 -D_GNU_SOURCE -fPIC -g -shared -ldl -o hlds_nowon.so hlds_nowon.c

Configuration

In /your_halflife_directory/cstrike/server.cfg modify the settings you need. Now you can launch the server with the following :

export LD_LIBRARY_PATH="/your_halflife_directory"
cd /your_halflife_directory
LD_PRELOAD=/your_halflife_directory/hlds_nowon.so ./hlds_run +sv_lan 1 -port 27017 -game cstrk71 +ip 192.168.1.3 +maxplayers 24 +map cs_militia

Using screen command

One way to do this is to perform the following :

  • start_cstrk52.sh
export LD_LIBRARY_PATH=/your_halflife_directory/:$LD_LIBRARY_PATH
cd /your_halflife_directory/
/your_halflife_directory/hlds_l -game cstrk61 +exec server.cfg +ip 192.168.1.2 -port 27016 +sv_lan 1 +map de_train +maxplayers 24 -heapsize 128000
  • launch_cstrk52.sh
screen -A -m -d -S cstrk52 /home/hldsbeta/scripts/start_cstrk52

Simply run launch_cstrk52.sh to start your CS server.

howtos.txt · Last modified: 2014/08/20 16:12 by ben