Skip to content
128 changes: 128 additions & 0 deletions content/7days2die-dedicated-server-linux.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
+++
title = "Setting up 7 Days to Die on Linux"
tags = ["7 Days to Die", "7D2D", "guide"]
description_file = "descriptions/7d2d.txt"
+++

This guide will walk you through how to host a 7 Days to Die server on Linux

## Requirements
* **7 Days to Die** - [[steampowered.com]](https://store.steampowered.com/app/251570/7_Days_to_Die/)
* **7 Days to Die Dedicated Server** - [[steampowered.com]](https://store.steampowered.com/app/294420/)

## Documentation
* **7 Days to Die Dedicated Server - Valve Developer Community** - [[developer.valvesoftware.com]](https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server)
* **Server - 7 Days to Die Wiki** - [[7daystodie.fandom.com]](https://7daystodie.fandom.com/wiki/Server)

## Prefer to watch a video?
{{< youtube placeholder >}}

### Server
For this to work, we will be using [SteamCMD](https://developer.valvesoftware.com/wiki/SteamCMD) - here's how to set it up.
We will be using Ubuntu Server 24.04 for this portion of the guide.
From your terminal, enter these commands - to install SteamCMD, the multiverse repository and x86 packages must be enabled.

**Ubuntu**
```bash
sudo add-apt-repository multiverse; sudo dpkg --add-architecture i386; sudo apt update
sudo apt install steamcmd
```

**Debian**
```bash
sudo apt update; sudo apt install software-properties-common; sudo apt-add-repository non-free; sudo dpkg --add-architecture i386; sudo apt update
sudo apt install steamcmd
```

### Setup
You need a place to store the server - create a new directory, for example `7daystodie`
```bash
mkdir ~/7daystodie
```

Start installing the server from [SteamCMD](https://developer.valvesoftware.com/wiki/SteamCMD) using this command:
```bash
/usr/games/steamcmd +force_install_dir ~/7daystodie +login anonymous +app_update 294420 validate +quit
```
This will tell SteamCMD to start installing the 7 Days to Die server inside of `~/7daystodie`.

> If you get `ERROR! Failed to install app '294420' (Missing configuration)`, you should try adding `+@sSteamCmdForcePlatformType linux` to the command:
```bash
/usr/games/steamcmd +@sSteamCmdForcePlatformType linux +force_install_dir ~/7daystodie +login anonymous +app_update 294420 validate +quit
```

### Starting the server
Start by navigating to `~/7daystodie` by using `cd ~/7daystodie`. In here, you will see a bunch of files and folders, and two really important files:
* `startserver.sh`
* `serverconfig.xml`

```bash
playit@server:~/7daystodie$ ls
7DaysToDieServer_Data Data Licenses Mods serverconfig.xml steam_appid.txt steamclient.so
7DaysToDieServer.x86_64 libstdc++.so.6 Logos platform.cfg startserver.sh steamapps UnityPlayer.so
```

To start the server, you must run `startserver.sh` and tell it to use `serverconfig.xml`.
```bash
./startserver.sh -configfile=serverconfig.xml
```

To view the logs, you can look for stuff like `output_log__2026-04-22__05-11-36.txt`. To do this, you can use `tail`:
```bash
playit@server:~/7daystodie$ tail -f output_log__2026-04-22__05-11-36.txt
2026-04-22T05:12:18 40.795 INF Loaded (local): videos in 0.01
2026-04-22T05:12:18 40.808 INF Loading players.xml
2026-04-22T05:12:18 40.828 INF createWorld: Navezgane, MyGame, GameModeSurvival
2026-04-22T05:12:18 40.830 INF Occlusion: Disabled
2026-04-22T05:12:18 40.831 INF Started thread ChunkRegeneration
2026-04-22T05:12:18 40.831 INF Started thread ChunkCalc
2026-04-22T05:12:18 40.838 INF Started thread ChunkMeshBake
2026-04-22T05:12:18 40.838 INF World.Load: Navezgane
2026-04-22T05:12:18 40.847 INF BloodMoon SetDay: day 7, last day 0, freq 7, range 0
2026-04-22T05:12:18 40.864 INF Started thread WaterSimulationApplyChanges
2026-04-22T05:12:31 54.247 INF Started thread GenerateChunks
2026-04-22T05:12:33 55.670 INF Calculating world hashes took 1422 ms (world size 193 MiB)
2026-04-22T05:12:33 55.670 INF Initial ENABLE_FILE_BACKED_ARRAYS == False
2026-04-22T05:12:33 55.885 INF GenWorldFromRaw load dtm took 1637ms
2026-04-22T05:12:33 56.054 INF Biomes image size w= 3072, h = 3072
2026-04-22T05:12:34 56.494 INF GenWorldFromRaw biomes took 608ms
```

If you would like to view logs in real time while running the server, you can use something like `tmux` or `screen` to "split" the terminal. Here's an example command to make the terminal look like this:

{{< image src="post-img/playit-7d2d-tmux.png" alt="7D2D tmux terminal" >}}

```bash
tmux new-session -s "7D2D" "cd ~/7daystodie && ./startserver.sh -configfile=serverconfig.xml; bash" \; \
split-window -v "playit" \; \
select-pane -t 0 \; \
split-window -h "tail -f \$(ls -t ~/7daystodie/output_log__*.txt | head -n 1)"
```
It has the server executable on the left, the logs on the right, and it starts playit at the bottom.

### Creating a tunnel
> This server uses `UDP 26900-26903`, which means that all users can create this tunnel type.

Set up the tunnel as follows:

```text
Tunnel Type: 7 Days
Local IP: 127.0.0.1
Local Port: 26900
```

{{< image src="post-img/playit-7d2d-tunnelconfig.png" alt="7D2D Tunnel Config" >}}

{{< image src="post-img/playit-7d2d-tunnelinfo.png" alt="7D2D Tunnel Info" >}}

### Joining the server
Inside of the game, go to `Join A Game` > `Connect To IP...` and then enter the tunnel information provided by playit. You can use either the hostname or the IP address and port to connect.

{{< image src="post-img/playit-7d2d-serversearch.png" alt="7D2D Join Server" >}}

{{< image src="post-img/playit-7d2d-directconnect.png" alt="7D2D Join Server" >}}

If your server and tunnel have been successfully configured, you should see this screen.


{{< image src="post-img/playit-7d2d-ready.png" alt="7D2D Join Server Ready" >}}
6 changes: 3 additions & 3 deletions content/7days2die-dedicated-server-windows.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
+++
title = "Setting up 7 Days to Die with playit"
title = "Setting up 7 Days to Die on Windows"
tags = ["7 Days to Die", "7D2D", "guide"]
description_file = "descriptions/7d2d.txt"
+++

This guide will walk you through how to host a 7 Days to Die server through playit.gg
This guide will walk you through how to host a 7 Days to Die server on Windows

## Requirements
* **7 Days to Die** - [[steampowered.com]](https://store.steampowered.com/app/251570/7_Days_to_Die/)
Expand Down Expand Up @@ -49,4 +49,4 @@ Inside of the game, go to `Join A Game` > `Connect To IP...` and then enter the
If your server and tunnel have been successfully configured, you should see this screen.


{{< image src="post-img/playit-7d2d-ready.png" alt="7D2D Join Server Ready" >}}
{{< image src="post-img/playit-7d2d-ready.png" alt="7D2D Join Server Ready" >}}
11 changes: 11 additions & 0 deletions content/7days2die.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = 'How to host a 7 Days to Die server'
tags = ["7 Days to Die", "7D2D"]
description_file = "descriptions/7d2d-landing.txt"
+++

There are two versions of this guide, depending on the type of operating system you are using.

## Platform Guides
- Windows: {{< link "7days2die-dedicated-server-windows.md" >}}
- Linux: {{< link "7days2die-dedicated-server-linux.md" >}}
1 change: 1 addition & 0 deletions descriptions/7d2d-landing.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
How to host a 7 Days to Die server
Binary file added static/post-img/playit-7d2d-tmux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.