WIP
sudo dpkg --add-architecture i386; sudo apt update; sudo apt install -y mailutils postfix curl wget file bzip2 gzip unzip bsdmainutils python util-linux ca-certificates binutils bc jq tmux lib32gcc1 libstdc++6 libstdc++6:i386
sudo adduser csgoserver
sudo su - csgoserver
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh csgoserver
# https://steamcommunity.com/dev/managegameservers 730
./csgoserver install
# http://www.metamodsource.net/downloads.php?branch=stable
wget https://mms.alliedmods.net/mmsdrop/1.10/mmsource-1.10.7-git971-linux.tar.gz
tar -xf mmsource-*-linux.tar.gz -C serverfiles/csgo/
# https://www.sourcemod.net/downloads.php
wget https://sm.alliedmods.net/smdrop/1.9/sourcemod-1.9.0-git6282-linux.tar.gz
tar -xf sourcemod-*-linux.tar.gz -C serverfiles/csgo/
# Type 0, mode 1 = Competitive
echo 'gametype="0"' >> lgsm/config-lgsm/csgoserver/csgoserver.cfg
echo 'gamemode="1"' >> lgsm/config-lgsm/csgoserver/csgoserver.cfg
echo 'updateonstart="on"' >> lgsm/config-lgsm/csgoserver/csgoserver.cfg
echo 'hostname "mths dynamic temp"' >>serverfiles/csgo/cfg/csgoserver.cfg
echo '"STEAM_1:0:15323391" "99:z"' >> serverfiles/csgo/addons/sourcemod/configs/admins_simple.ini
./csgoserver start
# https://github.com/splewis/csgo-retakes/releases
wget https://github.com/splewis/csgo-retakes/releases/download/v0.3.4/retakes_0.3.4.zip
unzip retakes_*.zip -d serverfiles/csgo/
git clone https://github.com/splewis/csgo-retakes
cp -r csgo-retakes/configs/retakes/. serverfiles/csgo/addons/sourcemod/configs/retakes/.
# https://github.com/b3none/retakes-autoplant/releases
wget https://github.com/b3none/retakes-autoplant/releases/download/2.3.0/retakes_autoplant.smx -O serverfiles/csgo/addons/sourcemod/plugins/retakes_autoplant.smx
# https://forums.alliedmods.net/showthread.php?t=302657
wget "https://forums.alliedmods.net/attachment.php?attachmentid=167862&d=1515748575" -O serverfiles/csgo/addons/sourcemod/plugins/instadefuse.smx
cp serverfiles/csgo/addons/sourcemod/plugins/disabled/retakes_standardallocator.smx serverfiles/csgo/addons/sourcemod/plugins/.
echo 'sm_retakes_maxplayers "10"' >>serverfiles/csgo/cfg/sourcemod/retakes/retakes.cfg
echo 'bot_quota 0' >> serverfiles/csgo/cfg/gamemode_competitive_server.cfg
echo 'sv_allow_votes 0' >> serverfiles/csgo/cfg/gamemode_competitive_server.cfg