Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 3.35 KB

README-no.steam.md

File metadata and controls

82 lines (62 loc) · 3.35 KB

Tutorial for Debian without .steam folder in /home/steam


Follow this part of the tutorial after starting on the main one because your folders structure is not the same.

Important

Make sure you have a fresh Debian 12 server up and running with a SSH access.

Log in as steam:

sudo -u steam -s && cd /home/steam

Create the .steam folder and create the correct symlinks for the server to start:

mkdir /home/steam/.steam && cd /home/steam/.steam && ln -s /home/steam/.local/share/Steam/steamcmd/linux32 sdk32 && ln -s /home/steam/.local/share/Steam/steamcmd/linux64 sdk64

Launch server for creating configuration files:

cd ~/Steam/steamapps/common/PalServer && ./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS

If the server launch correctly (= no spam of steamclient.so missing), close the server.

Continue the process by copying server settings file in the right directory then edit the settings as you wish (details in YouTube video):

cp DefaultPalWorldSettings.ini Pal/Saved/Config/LinuxServer/PalWorldSettings.ini && nano Pal/Saved/Config/LinuxServer/PalWorldSettings.ini

Setup a service to automize the management of the server

Important

Make sure all the commands below are executed as root.

1. Setup the maintenance script for server backups and updates (watch the videos for more details).

Create the maintenance script, make it executable and give it the right user permissions:

wget https://raw.githubusercontent.com/A1RM4X/HowTo-Palworld/main/palworld-backup.sh-no.steam -P /home/steam/ && mv /home/steam/palworld-backup.sh-no.steam /home/steam/palworld-backup.sh && chmod +x /home/steam/palworld-backup.sh && chown steam:steam /home/steam/palworld-backup.sh && wget https://raw.githubusercontent.com/A1RM4X/HowTo-Palworld/main/palworld-update.sh -P /home/steam/ && chmod +x /home/steam/palworld-update.sh && chown steam:steam /home/steam/palworld-update.sh

Create the backup folder and give it the right permissions:

mkdir -p /home/steam/Palworld_backups && chown steam:steam /home/steam/Palworld_backups

Download the Palworld service file:

wget https://raw.githubusercontent.com/A1RM4X/HowTo-Palworld/main/palworld.service-no.steam -P /etc/systemd/system/ && mv /etc/systemd/system/palworld.service-no.steam /etc/systemd/system/palworld.service 

Enable and start the service file (watch the videos for more details):

systemctl enable palworld.service && systemctl daemon-reload && systemctl start palworld.service

2. Backing up and restoring server data localy

Stop the palworld server before restoring the backup

systemctl stop palworld.service

Delete the previous server data

Caution

Make sure you have a backup before doing this!

test -d /home/steam/Steam/steamapps/common/PalServer/Pal/Saved && rm -rf /home/steam/Steam/steamapps/common/PalServer/Pal/Saved

Select the backup you want to restore (check video on YouTube for details) and extract it

tar -xzvf /home/steam/Palworld_backups/Palworld_MODIFY-DATE-HERE.tar.gz -C /

Verify all went well

if test -d /home/steam/Steam/steamapps/common/PalServer/Pal/Saved ; then clear ; echo "RESTORATION SUCCESS" ; else clear ; echo "RESTORATION FAILED" ; fi