Skip to content

Commit

Permalink
updated installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
War3Evo committed Mar 3, 2023
1 parent 413a215 commit ccce192
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 9 deletions.
5 changes: 5 additions & 0 deletions installcsgo.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

# This script was built using Debian 11 OpenVZ server
# This script will download and install Steam Server, Sourcemod, Metamod, and compile and install War3Source-EVO for CSS
# You should install using a SUDO USER and not root user for security purposes.
# SUDO is needed for apt-get install and for getting the public ip address for this server via ifconfig.

# CSS - 232330
# CSGO - 740
# FOF - 295230
Expand Down
15 changes: 8 additions & 7 deletions installcss.sh
Expand Up @@ -36,7 +36,7 @@ CPATH=$PWD
# CSS 3
# FOF 4

spaceREQ=35
spaceREQ=3
HDspace=$(df --output=avail -h ${CPATH} | sed '1d;s/[^0-9]//g')

if [[ $HDspace -le $spaceREQ ]]; then
Expand Down Expand Up @@ -71,7 +71,7 @@ echo 'Know that installing this as root is a security risk! SUDO user is HIGHLY
echo
echo 'You will need to type in your password, even if your not root to exit on some systems. ctrl+c does not always exit.'
echo
read -p "Press ENTER to continue" readTMP
read -p "[${GAME_SWITCHER}] Press ENTER to continue" readTMP
echo
sudo apt-get update
sudo dpkg --add-architecture i386
Expand All @@ -96,7 +96,8 @@ sudo apt-get install linux-libc-dev:i386
#sudo apt-get install libtinfo5:i386
#sudo apt-get install libcurl3-gnutls:i386
#sudo apt-get install libsdl2-2.0-0:i386
#sudo apt-get install libc6-dev-i386echo
#sudo apt-get install libc6-dev-i386
echo
echo 'Some systems may complain about not see all files for apt-get,'
echo 'try to install anyhow, your system may not need them.'
echo
Expand Down Expand Up @@ -193,21 +194,21 @@ rm -rf .git
#read -p "BEFORE SOURCMOE 1.11 ** Press ENTER to continue" readTMP

# Download SourceMod
test -e "sourcemod-1.11-linux.tar.gz" || wget "http://www.sourcemod.net/latest.php?version=1.11&os=linux" -O sourcemod-1.11-linux.tar.gz
test -e "sourcemod-1.11-linux.tar.gz" || wget "http://www.sourcemod.net/latest.php?version=1.11&os=linux" -O sourcemod-1.11-linux.tar.gz

# Extract SourceMod
tar -zxvf sourcemod-1.11-linux.tar.gz --directory "${SourceMetaModWar3InstallPath}"
# uncomment below if you want to stop at this point
#read -p "Press ENTER to continue" readTMP

# Download MetaMod
test -e "metamod-1.11-linux.tar.gz" || wget "https://www.metamodsource.net/latest.php?version=1.11&os=linux" -O metamod-1.11-linux.tar.gz
test -e "metamod-1.11-linux.tar.gz" || wget "https://www.metamodsource.net/latest.php?version=1.11&os=linux" -O metamod-1.11-linux.tar.gz

# Extract Metamod
tar --overwrite -zxvf metamod-1.11-linux.tar.gz --directory "${SourceMetaModWar3InstallPath}"

# Steam Account ID
echo "You can get your Steam Game Server Account from here:"
echo "You can get your ${GAME_SWITCHER} Steam Game Server Account from here:"
echo "https://steamcommunity.com/dev/managegameservers"
read -p "[${GAME_SWITCHER}] Please enter Steam Game Server Account (required):" readSteamAccount

Expand All @@ -228,7 +229,7 @@ if [[ "$readServerPort" ]]; then
fi

if [[ "$readSteamAccount" ]]; then
echo "screen -mS css ${gameInstallPath}/srcds_run -game cstrike -secure -console -usercon +map de_dust +ip ${ServerIP} +port ${ServerPort} -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount ${readSteamAccount} -steam_dir ${installPath} -steamcmd_script ${steamcmdFile}" > "${installPath}/startCSS.sh"
echo "screen -mS css ${gameInstallPath}/srcds_run -game cstrike -secure -console -usercon +map de_dust +ip ${ServerIP} +port ${ServerPort} -autoupdate +sv_consistency 0 +sv_pure 0 +map de_dust2 +maxplayers 32 +exec server.cfg +sv_setsteamaccount ${readSteamAccount} -steam_dir ${installPath} -steamcmd_script ${steamcmdFile}" > "${installPath}/start${GAME_SWITCHER}.sh"
chmod a+x "${installPath}/start${GAME_SWITCHER}.sh"
echo "*******************************************************************"
echo "${installPath}/start${GAME_SWITCHER}.sh has been created for you:"
Expand Down
45 changes: 43 additions & 2 deletions installfof.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

# This script was built using Debian 11 OpenVZ server
# This script will download and install Steam Server, Sourcemod, Metamod, and compile and install War3Source-EVO for CSS
# You should install using a SUDO USER and not root user for security purposes.
# SUDO is needed for apt-get install and for getting the public ip address for this server via ifconfig.

# CSS - 232330
# CSGO - 740
# FOF - 295230
Expand All @@ -25,6 +30,22 @@ GAME_SWITCHER="FOF"
# if you prefer the home path.
CPATH=$PWD

# spaceREQ
# CSGO 35
# TF2 10
# CSS 3
# FOF 4

spaceREQ=4
HDspace=$(df --output=avail -h ${CPATH} | sed '1d;s/[^0-9]//g')

if [[ $HDspace -le $spaceREQ ]]; then
echo "You will need at least ${spaceREQ}GB of hard drive space before installing ${GAME_SWITCHER}!"
echo "You only have ${HDspace}GB hard drive free space on ${CPATH}"
df -h
exit
fi

# example /home/steamgameserver/hlserver
installPath="$CPATH/$RNAME"

Expand Down Expand Up @@ -54,8 +75,28 @@ read -p "[${GAME_SWITCHER}] Press ENTER to continue" readTMP
echo
sudo apt-get update
sudo dpkg --add-architecture i386
sudo apt-get install wget tar nano git screen
sudo apt-get install clang lib32gcc1 lib32gcc-s1 lib32stdc++-7-dev lib32stdc++6 lib32z1 lib32z1-dev libc6-i386 libbz2-1.0:i386 libncurses5:i386 libtinfo5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 linux-libc-dev:i386 libc6-dev-i386
sudo apt-get install wget
sudo apt-get install git
sudo apt-get install tar
sudo apt-get install screen
sudo apt-get install nano
sudo apt-get install lib32gcc1
sudo apt-get install lib32gcc-s1
sudo apt-get install lib32stdc++6
sudo apt-get install libc6-i386
sudo apt-get install linux-libc-dev:i386
#
# You may need these libraries for your linux server
# Uncomment if you want to see if they help you install or run the steam server
#
#sudo apt-get install clang
#sudo apt-get install lib32z1
#sudo apt-get install libbz2-1.0:i386
#sudo apt-get install libncurses5:i386
#sudo apt-get install libtinfo5:i386
#sudo apt-get install libcurl3-gnutls:i386
#sudo apt-get install libsdl2-2.0-0:i386
#sudo apt-get install libc6-dev-i386
echo
echo 'Some systems may complain about not see all files for apt-get,'
echo 'try to install anyhow, your system may not need them.'
Expand Down
5 changes: 5 additions & 0 deletions installtf2.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

# This script was built using Debian 11 OpenVZ server
# This script will download and install Steam Server, Sourcemod, Metamod, and compile and install War3Source-EVO for CSS
# You should install using a SUDO USER and not root user for security purposes.
# SUDO is needed for apt-get install and for getting the public ip address for this server via ifconfig.

# CSS - 232330
# CSGO - 740
# FOF - 295230
Expand Down

0 comments on commit ccce192

Please sign in to comment.