cs1.6
sudo dpkg –add-architecture i386
sudo apt update -y
sudo apt-get install libstdc++6 libstdc++6:i386 lib32gcc1 screen nano -y
cd /root
mkdir SteamCMD
mkdir csserver
cd SteamCMD
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar xvfz steamcmd_linux.tar.gz
./steamcmd.sh
login anonymous
force_install_dir /root/xashserver/
app_set_config 90 mod cstrike
app_update 90 validate
app_update 90 validate
app_update 90 -beta beta validate
app_update 90 -beta beta validate
xash
cd /root
mkdir xashserver
cd xashserver
apt update
apt install lib32z1 libstdc++6:i386 rar unrar zip unzip
dpkg –add-architecture i386
echo ‘deb http://download.opensuse.org/repositories/home:/a1batross/xUbuntu_16.04/ /’ | sudo tee /etc/apt/sources.list.d/home:a1batross.list
curl -fsSL https://download.opensuse.org/repositories/home:a1batross/xUbuntu_16.04/Release.key | gpg –dearmor | sudo tee /etc/apt/trusted.gpg.d/home_a1batross.gpg > /dev/null
sudo apt update
sudo apt-get update
sudo apt install xashds
xashds -console -game cstrike +port 27020 +map de_dust2 +maxplayers 22 -pingboost 3
root登录
使用命令: vi /etc/ssh/sshd_config 打开这个文件
找到PermitRootLogin,将其改为yes.如果找不到,可直接在文件最后面加上
PermitRootLogin yes
wq!保存文件后,重启ssh.重启命令如下
sudo reboot
reboot