Ubuntu20.04 架设CS1.6服务器
安装关联软件及Steam
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt -y upgrade
sudo apt install -y steamcmd libsdl2-2.0-0:i386
下载HLDS服务端
steamcmd +login anonymous +app_update 90 validate
中间如果出错,可以多执行几次以确保服务端文件完整
app_update 90 validate
运行前准备
mkdir ~/.steam/sdk32/
cp -rp ~/.steam/SteamApps/common/Half-Life/steamclient.so ~/.steam/sdk32/
cd ~/.steam/SteamApps/common/Half-Life/
cp steamclient.so steamservice.so
touch cstrike/listip.cfg
touch cstrike/banned.cfg
运行服务器
./hlds_run -console -game cstrike +servercfgfile server.cfg -pingboost 3 -port 27015 +maxplayers 31 +map de_dust2 +ip 192.168.12.250