_______ _______ _______ __ ___ __ __ _______ ___ _______
/ _____|| ____|| ____|| |/ / | | | | | ____| / \ | \
| | __ | |__ | |__ | ' / | |__| | | |__ / ^ \ | .--. |
| | |_ | | __| | __| | < | __ | | __| / /_\ \ | | | |
| |__| | | |____ | |____ | . \ | | | | | |____ / _____ \ | '--' |
\______| |_______||_______||__|\__\ |__| |__| |_______/__/ \__\ |_______/
# sudo su
# apt update && apt upgrade
# add-apt-repository multiverse && apt update
# dpkg --add-architecture i386
# apt update
# apt install lib32gcc-s1
# apt install steamcmd
# vi /etc/sysctl.conf
fs.file-max=100000
# sysctl -p /etc/sysctl.conf
# vi /etc/security/limits.conf
* soft nofile 100000
* hard nofile 100000
# ulimit -n 100000
# useradd --create-home --shell /bin/bash --password sism1234 steam
# su - steam
# ln -s /usr/games/steamcmd steamcmd
# steamcmd +login anonymous +force_install_dir /home/steam/palworld +app_update 2394010 validate +quit
# steamcmd +force_install_dir '/home/steam/Steam/steamapps/common/steamworks' +login anonymous +app_update 1007 +quit
# mkdir -p /home/steam/.steam/sdk64
# cp '/home/steam/Steam/steamapps/common/steamworks/linux64/steamclient.so' /home/steam/.steam/sdk64/
# exit
# vi /etc/systemd/system/palworld.service
[Unit]
Description=PalworldServer
Wants=network-online.target
After=syslog.target network.target nss-lookup.target network-online.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=/home/steam/steamcmd +login anonymous +force_install_dir /home/steam/palworld +app_update 2394010 validate +quit
ExecStart=/home/steam/palworld/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s INT $MAINPID
WorkingDirectory=/home/steam/palworld/
LimitNOFILE=100000
[Install]
WantedBy=multi-user.target
# systemctl daemon-reload
# systemctl enable palworld
# systemctl start palworld
# su - steam
# cp /home/steam/palworld/DefaultPalWorldSettings.ini /home/steam/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
# vi /home/steam/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
edit ServerPassword, AdminPassword, ServerName
# exit
# systemctl restart palworld
# systemctl status palworld
--- NAT Portforward
8211