How to Set Up a DayZ Standalone Server on Linux
This guide covers the installation of a DayZ server on a Linux machine (Ubuntu/Debian) using SteamCMD.
Prerequisites
- OS: Ubuntu 20.04/22.04 LTS or Debian 11/12.
- RAM: 8GB Minimum, 16GB Recommended.
- Storage: 25GB+ Disk Space.
- Dependencies:
lib32gcc1andsteamcmd.
1. Install Dependencies
sudo apt update
sudo apt install lib32gcc-s1 curl wget
2. Install SteamCMD
mkdir ~/steamcmd
cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
3. Download DayZ Server Files
Run the following command to download the server (App ID: 223350):
./steamcmd.sh +force_install_dir ~/dayzserver +login anonymous +app_update 223350 validate +quit
4. Configuration (serverDZ.cfg)
Navigate to ~/dayzserver and create/edit serverDZ.cfg.
Key Settings:
hostname = "My DayZ Server";password = "";(Leave empty for public)maxPlayers = 60;steamQueryPort = 27016;
5. BattlEye Configuration
Go to ~/dayzserver/battleye/ and copy beserver_x64.cfg. Set your RCon password inside this file to enable remote administration.
6. Launching the Server
Create a startup script start.sh:
#!/bin/bash
./DayZServer_x64 -config=serverDZ.cfg -port=2302 -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
Make it executable: chmod +x start.sh and run it: ./start.sh.
Network Ports
Open the following UDP ports:
- 2302 (Game Port)
- 27016 (Steam Query Port)
- 2303-2305 (Master Server & RCon)