本文最后更新于 359 天前,其中的信息可能已经有所发展或是发生改变。
Debian
To install SteamCMD add the non-free repository and x86 packages must be enabled. In Debian 12 (Bookworm) the apt-add-repository command no longer works, so you will need to create a work-around (See also: https://stackoverflow.com/questions/76688863/apt-add-repository-doesnt-work-on-debian-12).sudo
apt update
apt install software-properties-common
apt-add-repository non-free
dpkg --add-architecture i386
apt update
apt install steamcmd
安装幻兽帕鲁服务器
#进入steamcmd、不能用root用户启动
steamcmd
# 登录匿名帐号
login anonymous
# 下载/更新
app_update 1007 validate
app_update 2394010 validate
# 退出steamcmd
quit
添加服务
cat <<EOF > pal.service
[Unit]
Description=Palworld
[Service]
Type=simple
User=zzh
Restart=on-failure
RestartSec=30s
ExecStart=/home/zzh/.steam/SteamApps/common/PalServer/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
[Install]
WantedBy=multi-user.target
EOF
sudo mv pal.service /usr/lib/systemd/system/
#如果提示没有权限,先root安装sudo,
#然后
nano /etc/sudoers,
#添加
zzh ALL=(ALL:ALL) ALL
sudo cp /home/zzh/.steam/Steamapps/common/Steamworks\ SDK\ Redist/linux64/steamclient.so /home/zzh/.steam/sdk64/
sudo systemctl daemon-reload
sudo systemctl enable pal
sudo systemctl restart pal