Skip to content

Instantly share code, notes, and snippets.

@andrewl3wis
Last active December 20, 2016 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrewl3wis/1fefc8e139fd92c61a13 to your computer and use it in GitHub Desktop.
Save andrewl3wis/1fefc8e139fd92c61a13 to your computer and use it in GitHub Desktop.
Very quick and dirty script to deploy a Dust2 competitive rules CSGO server on a Digital Ocean Droplet using User Data
#!/bin/bash
sudo apt-get update
sudo apt-get install -y lib32gcc1
useradd -m steam
su -c "wget https://gist.githubusercontent.com/Punkbob/1fefc8e139fd92c61a13/raw/c6b9074e92a00c7c0bd24ac6c4f630ced9edeee0/csgo-userspace" - steam
su -c "chmod +x csgo-userspace" - steam
su -c "./csgo-userspace" - steam
#!/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
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