Filex Dragneel Posted July 6, 2020 Posted July 6, 2020 Here you'll learn how to set up a cs 1.6 server on your linux. This is tested on Linux - Ubuntu 16.04.6 LTS , but it should work on other Linux distributions too. End Note ( Spoiler of Part #2 ) : Spoiler In the next tutorial (Part #2 of setting up cs 1.6 server) , i will be showing how to install the following stuffs: Fun fact that u might not know , theese things down are already installed on all csbd servers , with exception of "ReGameDLL" and "VTC" xd ReHLDS - same as HLDS but with thousand of bug fixes & improvements and exploit protections ReGameDLL -uff , too long to explain , i'll explain this one what's for in the next tutorial Metamod ( "addons/metamod" ) - a plugin that allows other plugins like Reunion , AMX MOD X , ReAuthChecker to run and more... Reunion/dproto - a metamod plugin ,installing a patch that allows non-steamers and steamers to play on the same server. ReAuthChecker - a metamod plugin for a protection of xFakePlayers ReVoice / VTC - a metamod plugin to allow non-steamers and steamers to talk via microphone. AMX MOD X ("addons/amxmodx" ) - a metamod plugin that allows you to install plugins like amx_slap , amx_kick , weapon restrictions , zombie plague 6.2... Open Terminal by pressing CTRL+ALT+T The Terminal looks like this : Make sure your system is up to date. Type the following commands in Terminal ( you'll be asked for the password of the current user you have log in with. ) sudo apt-get update sudo apt-get upgrade Install SteamCMD + Counter-Strike 1.6 Server Create a folder "SteamCMD" somewhere you want , i'll create it inside a folder "My Files - Tutorials" on my Desktop mkdir SteamCMD - with this command , you create a folder named "SteamCMD" cd SteamCMD - with this command , you change your current directory to the folder you just created. Now let's install some libs you need for the SteamCMD to run propertly x32 bit (i386) - sudo apt-get install lib32gcc1 x64 bit (amd64) - sudo apt-get install lib64gcc1 Allow the ports used by SteamCMD ( Stupid Firewall shits ? ) sudo iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT sudo iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT Now let's download and install SteamCMD , type the following commands : wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar xvfz steamcmd_linux.tar.gz rm steamcmd_linux.tar.gz Now run SteamCMD and wait untill it install , after that start installing Counter-Strike 1.6 Server with the following commands ./steamcmd.sh Steam> login anonymous Steam> force_install_dir ../Server Steam> app_set_config 90 mod cstrike Steam> app_update 90 validate Steam> exit IMPORTANT: If "app_update 90 validate" command fail to install app '90' , run it AGAIN , sometimes 1st run doesn't work. Last steps of installing the server: ( PS: in my case , in my terminal it says 'File Exists' , because i already have installing all these things ) mkdir ~/.steam ln -s ~/SteamCMD/linux32 ~/.steam/sdk32 Create a hlds_run script to start up your server. Mouse's Right Click on : New Document => Empty Document Save it and rename it to something like "start_server.sh" Now open the file "start_server.sh" with a text editor ( doesn't matters what kind of text editor you'll use ) , im my case i'll use gedit Then put the following lines into the file and click on "Save" - then close it. Edited: before "cd Server" command , add line "killall hlds_run" killall hlds_run cd Server ./hlds_run -game cstrike +ip PUT_YOUR_IP_HERE +port 27015 +maxplayers 32 +map de_dust2 IMPORTANT: Where you see "PUT_YOUR_IP_HERE" , replace it with your ip.IMPORTANT: Before running the script , you need to give it permissions with the following command: chmod +x ./start_server.sh Now final step , run the script and your server should start. ./start_server.sh 3
Recommended Posts