-
-
Save filipnyquist/f4a8ab2666aceeff905c67b5927f59c4 to your computer and use it in GitHub Desktop.
Very quick and dirty script to install a CSGO Dedicated server on a Digital Ocean Droplet using User Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y lib32gcc1 unzip | |
useradd -m steam | |
su -c "wget https://gist.githubusercontent.com/Fillerix99/f4a8ab2666aceeff905c67b5927f59c4/raw/79efc1d1351a883a6a51808e894fd2b67f470aa8/csgo-userspace" - steam | |
su -c "chmod +x csgo-userspace" - steam | |
su -c "./csgo-userspace" - steam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Quick and Dirty Userspace install | |
mkdir ~/steamcmd | |
cd ~/steamcmd | |
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz | |
tar -xvzf steamcmd_linux.tar.gz | |
./steamcmd.sh +login anonymous +force_install_dir ../csgo_ds +app_update 740 +quit | |
#Install metamod and sourcemod | |
cd ~/csgo_ds/csgo | |
wget http://mirror.pointysoftware.net/alliedmodders/mmsource-1.10.6-linux.tar.gz | |
tar -xvf mm* | |
rm mm* | |
cd addons/ | |
rm metamod.vdf | |
wget -O metamod.vdf https://www.sourcemm.net/vdf?vdf_game=csgo&vdf_game_manual= | |
cd .. | |
wget https://sm.alliedmods.net/smdrop/1.8/sourcemod-1.8.0-git5967-linux.tar.gz | |
tar -xvf sourcemod* | |
#Install extensions for get5 | |
cd addons/sourcemod/extensions/ | |
wget -O sjansson.zip https://forums.alliedmods.net/attachment.php?attachmentid=105507&d=1340554215 | |
unzip sjansson.zip | |
rm sjansson.zip | |
cd ~/csgo_ds/csgo | |
wget http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git121-linux.tar.gz | |
tar -xvf SteamWorks-git121-linux.tar.gz | |
rm SteamWorks-git121-linux.tar.gz | |
echo "Installation successful, csgo, metamod,sourcemod,smjansson,steamworks are now installed!" > ~/log.txt | |
#ADD here to install out custom version of get5 | |
#tmux new -d -s SRCDS '~/csgo_ds/srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment