Build a CS1.6 server
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
-
Download the file , unzip it, and find the metamod_i386.so file in addons/metamod
-
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
- 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
-
Download the file , unzip it, and find the engine_i486.so file in bin/linux32
-
cd to the servicefiles folder, use
cp
the command to replace the engine_i486.so file
c. Install reunion
- Download the file , unzip it, and need two files: reunion.cfg and reunion_mm_i386.so in bin/Linux
- Copy reunion.cfg to the servicefiles directory
- Create a directory and put the reunion_mm_i386.so file
mkdir -p cstrike/addons/reunion
- 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
- Server switch operation
//在LinuxGSM目录下执行
//启动服务器
./csserver start
//重启服务器
./csserver restart
- Check server status
./csserver details
- 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 "这里写你的密码"
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.
- The default configuration stored in _default.cfg cannot be changed.
csserver.cfg
It is used to store the actual configuration, and_default.cfg
a specific value can be set according to the comparison.
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
- After entering CS1.6, press
~键
the pop-up console - Console input
connect 服务器IP:27015
, you can connect to the server - Enter again
rcon rcon_password 上面设置的密码
to gain administrator privileges on the server.