Counter Strike 1.6 - Vanilla Counter-Strike: 1.6 is a multiplayer first-person shooter video game developed by Valve Corporation.
Counter-Strike 1.6
Play the world's number 1 online action game. Engage in an incredibly realistic brand of terrorist warfare in this wildly popular team-based game. Ally with teammates to complete strategic missions. Take out enemy sites. Rescue hostages. Your role affects your team's success. Your team's success affects your role.
Component | Minimum | Recommended |
---|---|---|
Processor | - | - |
RAM | 1 GB | 2 GB |
Storage | 2 GB | 5 GB |
Ports required to run the server in a table format.
Port | default |
---|---|
Game | 27015 |
Source TV | 27020 |
Client | 27005 |
Steam | 26900 |
27015 is the default port, but any port can be used. The only required port is the Game port, server can run perfectly fine without other allocations.
Name | Tag |
---|---|
ghcr.io/ptero-eggs/games:source | ghcr.io/ptero-eggs/games:source |
This sets the hostname of the server. Example: "My Custom CS 1.6 Server"
The ID corresponding to the game to download and run using HLDS. The HLDS server ID is 90. This should not be changed.
Leave empty for the public branch, for the legacy version select steam_legacy.
Username associated wanted to be used. Not needed.
Steam Password for account. Not needed.
Steam authenticator code for the account. Not Needed.
#!/bin/bash
# steamcmd Base Installation Script
#
# Server Files: /mnt/server
## download and install steamcmd
# Ensure Steam credentials are set
if [[ -z "${STEAM_USER}" ]] || [[ -z "${STEAM_PASS}" ]]; then
echo -e "Steam user is not set."
echo -e "Using anonymous login."
STEAM_USER=anonymous
STEAM_PASS=""
STEAM_AUTH=""
else
echo -e "User set to ${STEAM_USER}"
fi
cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
cd /mnt/server/steamcmd
# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server
## install game using steamcmd
./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6
# Needed for cs 1.6
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /mnt/server +app_update "90 -beta Beta" validate +quit ## looking at cs 1.6
# Ensure listip.cfg exists
if [[ ! -f "/mnt/server/cstrike/listip.cfg" ]]; then
echo "// This file stores banned IPs" > /mnt/server/cstrike/listip.cfg
echo "Created listip.cfg..."
else
echo "listip.cfg already exists."
fi
# Ensure banned.cfg exists
if [[ ! -f "/mnt/server/cstrike/banned.cfg" ]]; then
echo "// This file stores banned Steam IDs and IPs" > /mnt/server/cstrike/banned.cfg
echo "Created banned.cfg..."
else
echo "banned.cfg already exists."
fi
# Ensure server.cfg hostname is up-to-date
SERVER_CFG_PATH="/mnt/server/cstrike/server.cfg"
if [[ -f "$SERVER_CFG_PATH" ]]; then
sed -i "s/^hostname .*/hostname \"${HOSTNAME}\"/" "$SERVER_CFG_PATH"
fi
## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so
## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so
echo "-----------------------------------------"
echo "Installation Complete!"
echo "-----------------------------------------"
Installation Image | ghcr.io/ptero-eggs/installers:debian | Installation Entrypoint | bash |
---|