Skip to content

Instantly share code, notes, and snippets.

@theraw
Last active March 23, 2022 21:05
Show Gist options
  • Save theraw/01e7def572791e69a8f34573e00b6880 to your computer and use it in GitHub Desktop.
Save theraw/01e7def572791e69a8f34573e00b6880 to your computer and use it in GitHub Desktop.
#!/bin/bash
# SRCDS Base Installation Script
#
# Server Files: /mnt/server
apt -y update
apt-get install curl lib32gcc1 ca-certificates unzip wget -y
apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 -y
mkdir -p /mnt/server
cd /mnt
wget http://1.1.1.1:81/hlds_build_7882.zip
unzip hlds_build_7882.zip && rm -Rf hlds_build_7882.zip
mv /mnt/hlds_build_7882/ /mnt/server/cstrike
chmod 555 /mnt/server/cstrike/hlds_run && chmod 555 /mnt/server/cstrike/hlds_linux
mkdir -p /mnt/steamcmd
chown -R root:root /mnt
cd /mnt/steamcmd && curl -sqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar zxvf -
chown -R root:root /mnt
/mnt/steamcmd/steamcmd.sh +quit
mkdir -p /mnt/server/cstrike/.steam/sdk32
cp -v /mnt/steamcmd/linux32/steamclient.so /mnt/server/cstrike/.steam/sdk32/steamclient.so
cd /mnt/server/cstrike
export HOME=/mnt/server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment