From 061f80ccc8188ef71820ea986f780f3ebed0befe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Tue, 18 Mar 2025 09:42:00 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5919abb..cabc28e 100644 --- a/README.md +++ b/README.md @@ -3,32 +3,32 @@ Это daemon, написанный на Python, для сознания группы серверов игры KillingFloor2. -- устанавливаем пакеты -sudo apt install -y git tar wget +> sudo apt install -y git tar wget -- клонируем репозиторий -git clone http://git.alanbox.ru/alan/kf2_server.git /opt/KillingFloor2 +> git clone http://git.alanbox.ru/alan/kf2_server.git /opt/KillingFloor2 -- создаём прользователя -useradd -m -s /bin/bash steam \ +> useradd -m -s /bin/bash steam \ su steam -- включаем поддержку x86 архетектуры -su root -c 'dpkg --add-architecture i386 && apt update && apt install -y ia32-libs 2> /dev/null || apt install -y lib32z1' +> su root -c 'dpkg --add-architecture i386 && apt update && apt install -y ia32-libs 2> /dev/null || apt install -y lib32z1' -- ставим steamcmd -wget http://media.steampowered.com/client/steamcmd_linux.tar.gz \ +> wget http://media.steampowered.com/client/steamcmd_linux.tar.gz \ mkdir -p /home/steam/Steam/ && tar -C /home/steam/Steam/ -xvf steamcmd_linux.tar.gz \ rm -rf ./steamcmd_linux.tar.gz \ su root -c 'mv /opt/KillingFloor2/steamcmd /usr/games/steamcmd && chmod +x /usr/games/steamcmd && chown root: /usr/games/steamcmd' -- загружаем игру -steamcmd +force_install_dir /opt/KillingFloor2/Data +login anonymous +app_update 232130 validate +exit +> steamcmd +force_install_dir /opt/KillingFloor2/Data +login anonymous +app_update 232130 validate +exit -- ставим сервис игры -su root -c 'mv /opt/KillingFloor2/kf2.service /etc/systemd/system/kf2.service && chown root: /etc/systemd/system/kf2.service' +> su root -c 'mv /opt/KillingFloor2/kf2.service /etc/systemd/system/kf2.service && chown root: /etc/systemd/system/kf2.service' -- редактируем параметры сервера, в файле подробно прокоментированн каждый -nano /opt/KillingFloor2/config.ini +> nano /opt/KillingFloor2/config.ini -- добавляем сервис в автозагрузку и запускаем -su root -c 'systemctl enable kf2.service && systemctl enable kf2.service' +> su root -c 'systemctl enable kf2.service && systemctl enable kf2.service'