Skip to content

Instantly share code, notes, and snippets.

@Vaduz
Last active June 5, 2018 19:06
Show Gist options
  • Save Vaduz/d4dd4cac6374dcb50cbc to your computer and use it in GitHub Desktop.
Save Vaduz/d4dd4cac6374dcb50cbc to your computer and use it in GitHub Desktop.
CSGO Dedicated server setup
# set up host
# execute following commands by root
adduser deploy -g wheel
echo 'deploy ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy
# Connect with deploy
# prerequisite
yum install ld-linux.so.2 glibc.i686 libstdc++.i686 wget unzip
# CentOS 7 oriented
yum install net-tools
# Optional
yum install vim zsh screen
mkdir steamcmd
wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
tar zxvf steamcmd_linux.tar.gz
./steamcmd.sh +login anonymous +quit
./steamcmd.sh +login anonymous +force_install_dir ./csgo +app_update 740 validate +quit
# symlink steamclient.so
mkdir -p /home/vaduz/.steam/sdk32/
ln -s /home/vaduz/steamcmd/linux32/steamclient.so /home/vaduz/.steam/sdk32/steamclient.so
# create steamupdate file
$ cat steamcmd/steamupdate
login anonymous
force_install_dir /home/vaduz/steamcmd/csgo
app_update 740
exit
# create blank gamemode_casual_server.cfg
touch csgo/csgo/cfg/gamemode_casual_server.cfg
# Install gamerulescvars.txt
cp csgo/csgo/gamerulescvars.txt.example csgo/csgo/gamerulescvars.txt
# Fix botprofile.db
sed -i 's/Rank/\/\/Rank/g' csgo/csgo/botprofile.db
# Download metamod, sourcemod
# http://www.metamodsource.net/
# http://www.sourcemod.net/
cd steamcmd/csgo/csgo
wget http://mirror.pointysoftware.net/alliedmodders/mmsource-1.10.4-linux.tar.gz
tar zxvf mmsource-1.10.4-linux.tar.gz
wget http://mirror.pointysoftware.net/alliedmodders/sourcemod-1.6.3-linux.tar.gz
tar zxvf sourcemod-1.6.3-linux.tar.gz
# Download deathmatch mod
# https://forums.alliedmods.net/showthread.php?t=233685
cd addons/sourcemod
wget --content-disposition 'https://forums.alliedmods.net/attachment.php?s=21797bc48192fdd273b28cdb8a81a7b0&attachmentid=141436&d=1420814209'
unzip Deathmatch.zip
# Edit: addons/sourcemod/configs/deathmatch.ini
""
{
"SectionOptions"
{
"AdminMenuName" "Game/Deathmatch"
"PlayerDisplay" "Deathmatch"
}
"LoadRound"
{
"Game Modes" "Deathmatch"
}
"Load"
{
"Configs" "Options Default"
"Configs" "All Guns"
"Configs" "No Nades"
"Configs" "zeus"
}
"Cvars"
{
"mp_teammates_are_enemies" "1"
"mp_randomspawn" "1"
"dm_warmup_time" "0"
"mp_endmatch_votenextmap" "0"
"mp_match_end_restart" "0"
"bot_chatter" "off"
}
}
# Edit: addons/sourcemod/configs/admins.cfg
Admins
{
"Vaduz"
{
"auth" "steam"
"identity" "STEAM_1:0:3799"
"flags" "z"
}
}
# Edit: mapcycle.txt
de_dust2
de_inferno
de_nuke
de_mirage
de_overpass
de_cache
# suppress warnings
# https://forums.alliedmods.net/showthread.php?t=195008
cd csgo/addons/sourcemod
wget --content-disposition 'https://forums.alliedmods.net/attachment.php?attachmentid=111596&d=1351538952'
unzip cleaner.zip
# Install dhook plugin
# https://forums.alliedmods.net/showthread.php?t=180114
wget --content-disposition 'https://forums.alliedmods.net/attachment.php?attachmentid=137863&d=1410532439'
unzip dhooks-1.0.13-alpha.zip
./srcds_run -game csgo -console +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 -tickrate 128 -steam_dir /home/vaduz/steamcmd -steamcmd_script steamupdate -autoupdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment