January 26, 20233 yr Administrator Bellow you can find all the commands that you need to create an Counter-Strike: 1.6 Server on Ubuntu 22.04.1 Requirements Default sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc1 lib32stdc++6 libsdl2-2.0-0:i386 steamcmd Add the multiverse repository and the i386 architecture: sudo add-apt-repository multiverse sudo dpkg --add-architecture i386 Update the repository to make sure new packages can be installed: sudo apt update Install the 32 bit libraries that steamcmd requires: sudo apt install lib32gcc-s1 lib32stdc++6 libc6-i386 libcurl4-gnutls-dev:i386 libsdl2-2.0-0:i386 Security Secure your game server add new user and set new password adduser cstrike_server Change to the new user sudo su cstrike_server You can find his directory on /home/cstrike_server Security tips for your server here: soon Server files Download the latest version of the server use the command: curl -sqL "https://github.com/oldstyle-community/cstrike_steamcmd/archive/refs/tags/8684.tar.gz" | tar zxvf - Set permissions: chmod -R 777 ~/cstrike_steamcmd-8684 Test if the server starts using this command, remember edit the <IP> with your vps/vds ip address: ./hlds_run -console -game cstrike +ip <IP> +port 27015 +map de_dust +maxplayers 32 +pingboost 2 +sys_ticrate 1000 In case of 'FATAL ERROR (shutting down): Unable to initialize Steam.' press CTRL+C and try again one more time the command above. Now if is working you can start the server with the command screen and if you close your ssh console the server will be on always. cd ~/cstrike_steamcmd-8684 && screen -S CSTRIKE_SERVER -X quit && screen -S CSTRIKE_SERVER -d -m ./hlds_run -console -game cstrike +ip <IP> +port 27015 +map de_dust +maxplayers 32 +pingboost 2 +sys_ticrate 1000 To leave the console wihout closing the server press: CTRL+A+D If you want to open the console back use the command: screen -r CSTRIKE_SERVER E.G. Reveal hidden contents ./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 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: AMX Mod X Metamod dproto Done. ReHLDS Here you can see what ReHLDS means and how to install it: https://olds.ro/topic/14729-how-to-install-rehlds-tutorial/ AMX Mod X Metamod-p Reunion Done. Sources used in this tutorial: https://olds.ro HLDS, AMX Mod X, Metamod, dproto https://developer.valvesoftware.com/wiki/SteamCMD https://www.amxmodx.org/downloads-new.php https://wiki.alliedmods.net/Installing_AMX_Mod_X_Manually CS.RIN.RU - Steam Underground Community • View topic - dproto [0.9.582] - HLDS serverside crack (22/09/2017) ReHLDS, AMX Mod X, metamod-p, reunion https://github.com/dreamstalker/rehlds https://github.com/jkivilin/metamod-p http://www.dedicated-server.ru/vbb/showthread.php?t=26486 OLD STEAMCMD NOT WORKING ANYMORE 1. Create a directory for SteamCMD and switch to it. mkdir ~/Steam && cd ~/Steam 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 - curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - To download the server you need to go in the Steam folder: cd ~/Steam && ./steamcmd.sh cd ~/Steam && ./steamcmd.sh And you can login anonymously using the command: login anonymous login anonymous Set your app install directory force_install_dir <path> force_install_dir <path> E.G. a directory named cs_server inside the current directory: force_install_dir ./cs_server/ force_install_dir ./cs_server/ Install or update the app using the app_update command app_set_config 90 mod cstrike 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; 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 quit To stat the server just for an test: E.G. a directory named cs_server: cd ~/Steam/cs_server/ cd ~/Steam/cs_server/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.