Game Hosting home

7 Days to Die Linux Server Manager: LinuxGSM Setup

Install LinuxGSM’s sdtdserver on Ubuntu, choose the 7 Days to Die branch, update it safely, and test the whole-server backup before relying on it.

Difficulty
HardDifficulty Hard
Time to do
60 min
Reading
9 min
Updated
By
Game Hosting team

You will need

  • An Ubuntu 24.04 LTS server with a dedicated account and sudo or root access for dependencies
  • At least 20 GB of free disk space for the current dedicated-server files, plus room for backups
  • A stable connection to Steam content servers

LinuxGSM’s sdtdserver script can install and maintain a 7 Days to Die dedicated server on Ubuntu. This guide takes you through the LinuxGSM setup, branch selection, first start, updates, backups and scheduled checks. The commands manage a server process; they do not prove that a remote player can join or that a backup can restore until you test those outcomes. If you are still choosing between a game host, a Linux server and other ways to run a world, start with the dedicated-server options guide.

If you want the game settings and server commands in a web panel instead of maintaining Linux accounts and cron jobs, Game Hosting’s 7 Days to Die panel is another route. It documents settings, scheduled restarts, commands and three backup slots; those slots are not the same thing as LinuxGSM’s whole-server archive.

Choose the server branch before installing#

LinuxGSM installs the 7 Days to Die dedicated server through SteamCMD using app 294420. Its default branch is public. On November 3, 2026, the dedicated-server branch list showed public and v3.4.0 at build 26310339; it did not list a latest_experimental branch. Branches can change, so check the current Steam branch table and The Fun Pimps’ official announcements before you install or update.

Choice When to use it Check before inviting players
public The ordinary public server branch Record the build LinuxGSM installed and match the clients to it
A named branch such as v3.4.0 When the server branch list still offers that release and your group needs it Confirm the exact branch and build are still listed
An experimental branch Only when Steam lists a current dedicated-server branch for it Do not assume a client branch name is available for the dedicated server

Set a branch in LinuxGSM’s instance configuration as branch="...". The branch changes which game files SteamCMD installs; it does not configure world settings or make a mod compatible. If your group uses console crossplay, follow the current official crossplay requirements: the server must meet the listed public-server, EAC, mod and player-limit rules.

Install LinuxGSM’s sdtdserver on Ubuntu#

LinuxGSM’s current 7 Days to Die page lists Ubuntu 24.04 LTS as a recommended distribution and identifies sdtdserver as the script name. Use a dedicated Linux account. The account needs sudo access while LinuxGSM installs missing packages, or an administrator can install those dependencies first. SteamCMD downloads about 18 GB of server files in the test environment, so reserve more space for updates and local archives.

  1. Create the server account

    As an administrator, create a separate account and sign in as that user. Do not run the game server itself as root.

    bash
    sudo adduser sdtdserver
    sudo -iu sdtdserver
  2. Download the LinuxGSM script

    From the new user’s home directory, download the official script and create the game-specific wrapper.

    bash
    curl -Lo linuxgsm.sh https://linuxgsm.sh
    chmod +x linuxgsm.sh
    bash linuxgsm.sh sdtdserver

    Confirm the output says it installed 7 Days to Die as sdtdserver and created ./sdtdserver.

  3. Install dependencies and the server

    Run the installer and accept its confirmation prompt. It checks system requirements, installs dependencies through the configured sudo path, and uses SteamCMD to fetch app 294420.

    bash
    ./sdtdserver install

    Verify that serverfiles/ exists and that the install log reports the actual Steam build. The game download takes longer than the script setup and depends on the server’s connection.

The LinuxGSM command-line script is maintained by GameServerManagers, not The Fun Pimps. Keep its sdtdserver account separate from your personal login so ownership, logs and scheduled jobs stay in one place. If you prefer a manual SteamCMD and systemd setup, the Linux dedicated-server guide covers that route without LinuxGSM. If you prefer to run the server in Compose with persistent named volumes, see the Docker dedicated-server guide.

Start the server and check its logs#

After the install finishes, start the server as sdtdserver and inspect the details and log output:

bash
./sdtdserver start
./sdtdserver details

LinuxGSM puts script and server logs under /home/sdtdserver/log/. In the test install, the server log reached GameServer.LogOn successful, which confirmed startup on that machine. It did not establish that a public listing appeared or that an outside client could connect. If startup fails, inspect the newest log before repeating start; compare the installed branch, required libraries and current serverconfig.xml rather than pasting a config from an older release.

./sdtdserver console attaches to the server’s live console. LinuxGSM’s page says to detach with Ctrl+b, then d; Ctrl+c terminates the server. Use stop for shutdown, then confirm the server process exited and inspect its log before backing up or moving a world. In this test container, telnet was disabled, so LinuxGSM’s graceful stop attempt on port 0 failed before its script stopped the tmux session; a successful command exit alone did not establish a graceful game shutdown:

bash
./sdtdserver console
./sdtdserver stop

Keep LinuxGSM settings separate from game settings#

LinuxGSM has its own settings under lgsm/config-lgsm/sdtdserver/. Use common.cfg for values shared by this instance and sdtdserver.cfg for instance-specific overrides. Do not edit the maintained _default.cfg: LinuxGSM can refresh that template.

The game’s serverconfig.xml and LinuxGSM’s configuration are separate files with different jobs. Since 7 Days to Die V3.0, many gameplay controls moved from individual XML properties into the game’s SandboxCode. LinuxGSM can install or update the server, but it does not build or validate that code. Check the configuration shipped with your installed build and use the current V3 server-settings guide for the XML-versus-SandboxCode boundary. For the file path and editing precautions, see where to find serverconfig.xml.

If you change the LinuxGSM branch, run its update command afterwards and check the build in the log. A branch value is a Steam selection, not proof that the downloaded server is the version you intended.

Update or validate the server deliberately#

LinuxGSM’s update command checks for a server update and applies it, restarting only when required. force-update skips the check; validate asks SteamCMD to validate installed files. These commands do different things, and none is a world backup.

bash
./sdtdserver update

Use update for the ordinary check. LinuxGSM also provides force-update to skip its update check and validate to ask SteamCMD to validate installed files; run either only when you have a specific reason. SteamCMD validation can replace damaged or mismatched server files, so keep the save separate and make a backup before changing a live installation. After an update, inspect the installed build and make sure every player is using a compatible version. For an update plan that includes a disposable save and a restore check, see how to update a 7 Days to Die server safely.

Create a backup and inspect the archive#

LinuxGSM’s backup command creates an archive of the server directory. Its backup settings include a retention period; stoponbackup can stop the server during compression. A large world and the game files can make the archive take substantial disk space. Check the current LinuxGSM backup documentation and the instance’s config before scheduling it.

bash
./sdtdserver backup

Find the newly created archive in the configured backup directory, record its size, and list its contents. In the Ubuntu 24.04.5 test with LinuxGSM v26.4.0, the command reported 17 GB to compress and wrote a 14 GB .tar.gz under lgsm/backup/, including the active save path. Confirm that your own save appears; do not assume a successful archive command automatically gives you a tested recovery. LinuxGSM stores this archive locally. Copy a backup to another machine or storage account if you need protection from a failed disk or host.

Restore a copy before relying on recovery#

LinuxGSM documents creating an archive, but that does not prove your particular world can be restored. In the test, the archive contained the active save path. Extract a copy into a separate directory and verify the save files there before replacing anything in the live server.

bash
archive=$(ls -1t /home/sdtdserver/lgsm/backup/sdtdserver-*.tar.gz | head -n 1)
mkdir -p /tmp/sdtd-restore-check
tar -xzf "$archive" -C /tmp/sdtd-restore-check

This selects the newest LinuxGSM .tar.gz archive; change the path and glob if your instance config uses another directory or name. In the test, I extracted the active Navezgane save to a separate directory and compared it with the stopped source: all 55 files matched, including main.ttw. That verifies this save copy can be recovered from the archive; it does not prove that the game can load it. To test loading, launch a disposable instance from the restored directory with a separate port and save name. Keep the original stopped and untouched until the test succeeds. This test did not verify player inventories, an internet connection or a third-party mod.

Schedule monitor checks without mistaking them for player tests#

LinuxGSM’s monitor command checks whether the process is running and queries the game server. Its documentation says failed queries retry for 60 seconds before LinuxGSM may restart the process and send an alert. A five-minute cron entry is the documented example:

text
*/5 * * * * /home/sdtdserver/sdtdserver monitor > /dev/null 2>&1

Use crontab -e as the server account to add or inspect scheduled commands. Give a new server time to start before relying on query checks; LinuxGSM documents querydelay for slow startup or map generation. Review the monitor log after the first run so you know whether cron invoked the command and whether the query answered.

A successful query is not a player join test. It does not prove a firewall rule, public listing or client version. If a player cannot connect, troubleshoot that path separately and do not respond by turning on automatic restarts without checking the server log. For tools that add Discord, player administration or community features, see the server-manager comparison; those tools have a different job from LinuxGSM’s process lifecycle.

Decide whether to keep the shell workflow#

LinuxGSM is a good fit when you want a Linux command-line lifecycle tool and are comfortable maintaining the host, config files, disk space, cron and off-host copies yourself. If you would rather use a web panel, Game Hosting’s 7 Days to Die server page documents game settings, commands, scheduled restarts and three free backup slots. Use this panel checklist to compare tasks before choosing. That is a different management and backup model, not a claim that panel backups are LinuxGSM archives.

Before you invite the group, record the server branch and build, verify serverconfig.xml and SandboxCode separately, and keep a restore copy outside the host. If the server process starts but players still cannot connect, diagnose the network and client path rather than treating monitor as proof that joining works.

Quest complete

Before you invite your friends, check that the intended world loaded and that each player can connect. If those checks pass, you're ready for a session; if you'd rather not keep a PC on, that's what we're here for.

Quick answers

What is LinuxGSM for 7 Days to Die?

LinuxGSM is a third-party command-line tool that installs and manages the sdtdserver dedicated server. It is maintained separately from The Fun Pimps.

Does LinuxGSM support 7 Days to Die?

LinuxGSM lists a 7 Days to Die server script named sdtdserver and uses Steam app 294420. Check its current distro and branch notes before installing.

How do you update a 7 Days to Die server with LinuxGSM?

Run ./sdtdserver update to check for a server update. LinuxGSM applies it and restarts the server when needed; use a verified backup before changing a world.

Does LinuxGSM back up a 7 Days to Die world?

Its backup command creates an archive of the server files. Inspect a fresh archive to confirm it contains your active save, then test a restore copy and keep another copy off the host.

Is LinuxGSM monitor a player-join test?

No. Monitor checks the server process and query response. It does not prove that a player can connect from the internet.