Jump to content
COUNTER-STRIKE-BOOST.COM

Recommended Posts

Bellow you can find all the commands that you need to create an Counter-Strike: 1.6 Server and at the end of the zip Archive with the final result.
 
StemCMD
Before you begin, you must first install the dependencies required to run SteamCMD:
sudo dpkg --add-architecture i386 && sudo apt-get update;
sudo apt-get install lib32gcc1 libc6:i386 lib32stdc++6 curl screen -y;
 
1. Create a directory for SteamCMD and switch to it.
mkdir ~/Steam && cd ~/Steam

2. Download and extract SteamCMD for Linux.

curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
 
SERVER

To download the server you need to go in the Steam folder:

cd ~/Steam && ./steamcmd.sh

And you can login anonymously using the command:

login anonymous

Set your app install directory

force_install_dir <path>

E.G. a directory named cs_server inside the current directory:

force_install_dir ./cs_server/

Install or update the app using the app_update command

app_set_config 90 mod cstrike

BUG
HLDS (appid 90) currently requires multiple runs of the app_update command before all the required files are successfully installed.
Simply run app_update 90 validate multiple times until no more updates take place (Success! App '90' already up to date.)

app_update 90;
app_update 90 validate;
app_update 90 -beta beta;
app_update 90 -beta beta validate;
app_update 90 -beta prerelease validate;

Run the commands 2/3 times.
To exit form the steamcmd terminal use:

quit

To stat the server just for an test:

E.G. a directory named cs_server:

cd ~/Steam/cs_server/

To stat the server use this command:

./hlds_run -console -game cstrike +ip <YOUR IP> +port 27015 +map de_dust2 +maxplayers 32
  • You can edit the ip, port, map, maxplayers, with your custom settings.
  • If you get this error 'FATAL ERROR (shutting down): Unable to initialize Steam.' press CTRL+C and try again one more time the command above.

E.G.

Spoiler

./hlds_run -console -game cstrike +ip 192.168.1.2 +port 27015 +map de_dust2 +maxplayers 32
Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 19:52:19 Aug  3 2020 (8684)
STEAM Auth Server
Server IP address 95.111.246.0:27000
scandir failed:/root/Steam/cs_server/./cstrike/SAVE
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
CAppInfoCacheReadFromDiskThread took 7 milliseconds to initialize
RecordSteamInterfaceCreation (PID 26996): SteamGameServer011 / GameServer
RecordSteamInterfaceCreation (PID 26996): SteamUtils005 / Utils
RecordSteamInterfaceCreation (PID 26996): STEAMAPPS_INTERFACE_VERSION005 / Apps
RecordSteamInterfaceCreation (PID 26996): STEAMHTTP_INTERFACE_VERSION002 / HTTP
RecordSteamInterfaceCreation (PID 26996): SteamNetworking005 / Networking
RecordSteamInterfaceCreation (PID 26996): SteamGameServerStats001 / GameServerStats
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

couldn't exec listip.cfg
couldn't exec banned.cfg
Connection to Steam servers successful.
   VAC secure mode is activated.

Login Failure: No Connection

On linux servers, you may experience a "Login Failure: No Connection" error.
This is related to missing iptables rules.
You will want something along these lines:

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT

Done.

ReHLDS or HLDS

If you want to use ReHLDS scroll down to the section, if not use HLDS steps.

HLDS

If you want to customize your server with addons and plugins follow the steps bellow:

  1. AMX Mod X
  2. Metamod
  3. dproto

Done.

ReHLDS

Here you can see what ReHLDS means and how to install it: How to install ReHLDS tutorial - Others - COUNTER-STRIKE-FREE.COM

  1. AMX Mod X
  2. Metamod-p
  3. Reunion

Done.

Sources used in this tutorial:

HLDS, AMX Mod X, Metamod, dproto

ReHLDS, AMX Mod X, metamod-p, reunion

Link to comment
Share on other sites

  • Admin changed the title to [EN] Manual Installation - Counter-Strike: 1.6 Server HLDS and ReHLDS (Linux) - Ubuntu 18.04.4
  • Admin changed the title to Tutorial Installation - Counter-Strike: 1.6 Server HLDS and ReHLDS (Linux) - Ubuntu 18.04.4
  • 9 months later...
COUNTER-STRIKE-BOOST.COM

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...