In 2021, use LinuxGSM to build a CS1.6 server tutorial on the Linux system (debian11)

build tutorial

1. Use LinuxGSM to download the genuine server

The full name of LinuxGSM is Linux Game Service Manager, which is a command-line tool for one-stop installation and management of game servers for Linux systems. a.
According to the guideline, download dependencies
b. According to the guideline, if you choose Y/N during the download process of LinuxGSM
, all Just choose Y without thinking.
Wait until Success! App’90’ fully installed.the installation is complete Install the servicefiles folder
in the LinuxGSM directory

2. Use plug-ins to support non-genuine login

  • The dproto plug-in was generally used to crack the server, but unfortunately the author of this plug-in has not updated it for a long time and it is now invalid. Instead, Rehlds + Reunion. Reunion is a plug-in, which has the same function as dproto, but it also needs the support of Rehlds.
  • metamod is a HL plug-in manager, with which you can install various plug-ins.

a. Install metamods

  1. Download the file , unzip it, and find the metamod_i386.so file in addons/metamod

  2. cd to the servicefiles folder, add a new directory, and move the metamod_i386.so file into this directory

mkdir -p cstrike/addons/metamod/dlls
  1. cd to servicefiles folder, edit liblist.gam file to enable metamod
nano cstrike/liblist.gam

Bundle

gamedll_linux "dlls/cs.go"

changed to

gamedll_linux "addons/metamod/dlls/metamod_i386.so"

Then add a line below:

gamedll_chain "dlls/cs.so"

b. Install Rehlds

  1. Download the file , unzip it, and find the engine_i486.so file in bin/linux32

  2. cd to the servicefiles folder, use cpthe command to replace the engine_i486.so file

c. Install reunion

  1. Download the file , unzip it, and need two files: reunion.cfg and reunion_mm_i386.so in bin/Linux
  2. Copy reunion.cfg to the servicefiles directory
  3. Create a directory and put the reunion_mm_i386.so file
mkdir -p cstrike/addons/reunion
  1. Edit metamod's plugin configuration file to enable reunion
nano cstrike/addons/metamod/plugins.ini
//写入下面这行配置
linux addons/reunion/reunion_mm_i386.so

3. Configure the server

  • When the following operations are performed for the first time, the script must be downloaded and agreed
  1. Server switch operation
//在LinuxGSM目录下执行
//启动服务器
./csserver start
//重启服务器
./csserver restart
  1. Check server status
./csserver details
  1. Configure the OP password (administrator password) and edit the csserver.cfg
    in the cstrike directory . ( Note: not the server.cfg file ) and write it as shown below:
    rcon_password "这里写你的密码"

    insert image description here

Change ports etc.

  • Under the LinuxGSM installation directory, there is a lgsm folder, where all game configuration files are stored.
  • Enter config-lgsm/csserver, the startup configuration of the cs1.6 server stored here.
    insert image description here
  • The default configuration stored in _default.cfg cannot be changed.
  • csserver.cfgIt is used to store the actual configuration, and _default.cfga specific value can be set according to the comparison.
    insert image description here

other settings

You can refer to here to set other

4. Set the startup

1. Create a new systemd service file

sudo nano /lib/systemd/system/csserver.service

2. Write configuration

[Unit]
Description=cs 1.6 server
[Service]
Type=simple
User=这里写当前用户
Group=这里写当前用户组
WorkingDirectory=这里写LinuxGSM目录
ExecStart=./csserver start
Restart=always
[Install]
WantedBy=multi-user.target

3. Enable configuration

sudo systemctl start csserver
sudo systemctl enable csserver

5. Enter the server

  1. After entering CS1.6, press ~键the pop-up console
  2. Console input connect 服务器IP:27015, you can connect to the server
  3. Enter again rcon rcon_password 上面设置的密码to gain administrator privileges on the server.

References

  1. Debian10 builds CS1.6 server
  2. CentOS7 builds CS1.6 47/48 dual-protocol piracy server in detail

Guess you like

Origin blog.csdn.net/Reven_L/article/details/120895876